Konrad Borowski

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Jul 20, 2018 10:15
i hope it isn't a problem that my challenge pretty much demands big integer support, due to what it does
Jul 4, 2018 19:17
(Java is often shorter)
Jul 4, 2018 19:17
yeah, probably the most verbose programming language you could use in code golf
Jul 4, 2018 19:14
@dzaima i don't know, map is pretty much free in Java as long you require Stream<T> as a function argument
Jul 4, 2018 10:19
like tree::Map is shorter than std::collections::HashMap, but at the same time you need to declare a dependency in another file
Jul 4, 2018 10:19
i'm looking forward to Rust 2018, where you will be able to use external dependencies without using extern crate declarations, but at the same this is yet another tricky issue in terms of rules.
Jul 4, 2018 10:14
HashMap is like std::collections::HashMap however and it's not imported by default
Jul 4, 2018 10:13
@dzaima Okay, I suppose Rust also has ArrayList in prelude, as opposed to having to import java.util.*, but otherwise more verbose
Jul 4, 2018 10:07
to print the results
Jul 4, 2018 10:06
as i do println!("{:?}", f(10).collect::<Vec<i32>>());, where i specify i32 explicitly, not requiring me to specify the type for parse method
Jul 4, 2018 10:06
not sure if it's acceptable
Jul 4, 2018 10:06
i sorta depend on type inference later on in test code with parse here however
Jul 4, 2018 10:05
it is verbose, as i said
Jul 4, 2018 10:05
|n|(0..n).map(|n|format!("{}{}",n,n+1).parse().unwrap())
Jul 4, 2018 10:05
from 39 bytes to 56 bytes
Jul 4, 2018 10:04
it's 56 bytes now
Jul 4, 2018 10:03
yeah, i guess .. is nicer than IntStream, but literally everything else is more verbose
Jul 4, 2018 09:59
yeah, it's wrong
Jul 4, 2018 09:59
oh, i see
Jul 4, 2018 09:56
for a language more verbose than Java it's way too short, and i have a feeling i may have misunderstood something
Jul 4, 2018 09:55
can somebody verify whether codegolf.stackexchange.com/a/167882/3103 is a valid solution
Mar 21, 2018 22:34
okay, using an explicit block complains about variable not being effectively final (as it forces it to be a local variable)
Mar 21, 2018 22:33
i suppose it has to do with local variables being actually class static variables due to how Java REPL was implemented
Mar 21, 2018 22:32
which is nice, could shorten code golf programs (i wonder if that's a bug, but i mean, it's a feature)
Mar 21, 2018 22:31
oh, this is interesting, jshell doesn't require effectively final bindings for lambdas
Mar 21, 2018 22:19
Java 10's var isn't even a big deal as far jshell code golfing is concerned because there is Shift-Tab V combination for declaring variables
Mar 21, 2018 22:17
i sorta want to try more Java 9/10 codegolfing, because jshell has so much codegolf potential (especially due to keybindings)
Mar 21, 2018 22:12
5 bytes
Mar 21, 2018 22:12
0
A: Produce the number 2014 without any numbers in your source code

xfixjshell, 5 bytes How to make Java an useful code golf language? Simple, just remove the need to declare classes, methods, make things automatically print and so on. +'ߞ'

Mar 21, 2018 22:12
although i recently posted a solution for Java 9, so dunno
Mar 21, 2018 22:11
although i suppose List.of, Map.of and Set.of is meaningful for codegolf
Mar 21, 2018 22:11
i sorta suspect it has to do with extremely short support period and rather minor improvements
Mar 21, 2018 22:06
although i think specifically saying "PHP 7.1" or whatever is fine, right?
Mar 21, 2018 22:06
disappointing, so a future version of PHP won't support unquoted strings
Mar 16, 2018 20:36
for instance, H[Tab] won't work, because Http classes
Mar 16, 2018 20:36
but also not so nice, because it means more conflicts when you tab, oh well
Mar 16, 2018 20:35
oh, it imports quite a lot, nice :)
Mar 16, 2018 20:35
|    import java.io.*
|    import java.math.*
|    import java.net.*
|    import java.nio.file.*
|    import java.util.*
|    import java.util.concurrent.*
|    import java.util.function.*
|    import java.util.prefs.*
|    import java.util.regex.*
|    import java.util.stream.*
Mar 16, 2018 20:30
it's Java REPL in this case, jshell
Mar 16, 2018 20:28
although i wonder if using REPL keybindings is a legitimate strategy
Mar 16, 2018 20:28
HashMap is Ha[Tab]M[Tab] (by the way it's cool that java.util is automatically imported)
Mar 16, 2018 20:27
i mean, you can write i[TAB] instead of int, for instance
Mar 16, 2018 20:26
i wonder if using a Tab key is a legit strategy for Java REPL codegolf however
Mar 16, 2018 20:26
quite boring honestly
 

 talk.tryitonline.net

For general discussion and feature requests regarding tryitonl...
Jul 17, 2018 07:35
or that exceptions don't have to be of Exception anymore which would affect set_exception_handler - unimportant for codegolf, no reason to use exception handlers for code golf
Jul 17, 2018 07:32
because changes like "you cannot name your classes int" are unimportant - you wouldn't call your classes int in code golf even if you could, when there are better names like A
Jul 17, 2018 07:28
i was going to say that PHP 7 wasn't that major from code golfing point of view, but then i realized it removed ereg and split functions
Jul 17, 2018 07:24
@Dennis sounds fair, then :)
Jul 16, 2018 07:37
And this feature is really useful for code golfing.
Jul 16, 2018 07:36
Is it possible to add PHP 7.1 to TIO.run? My reasoning is that using undeclared constant is deprecated in PHP 7.2 (and I think it will be removed in PHP 8).