« first day (57 days earlier)      last day (836 days later) » 

4:05 AM
0
Q: "Handles" and global variable avoidance

mike4ty4I've got this program where I'll need to be able to serialize large, complex structures which may contain pointers to different objects (it's a game, where you need to save and load the game). But then it becomes difficult to reconstruct the pointer connection structure when reloading. One appro...

 
 
8 hours later…
12:00 PM
@Zoidberg I couldn't deal with Unity. Now I'm back to Xubuntu which uses Xfce :)
 
 
3 hours later…
user142019
2:40 PM
 
user142019
4:56 that face.
 
2:50 PM
@Zoidberg 2:50 is already quite funny.
 
user142019
:P
 
user142019
Elixer solves the first two "problems".
 
5:28 PM
> Scala is a hybrid language, with great support for both object-oriented and functional programming, both of which I’m fairly comfortable with. That’s not to say everything went smoothly however - danger lies in overfamiliarity. At first I was writing Java in Scala, then when I tried to fix it I realized I was now trying to write Haskell in Scala. Neither approach felt very good.
 
user142019
Java is a hilarious joke.
 
We should make a room about that. Oh, wait.
 
user142019
restart:
    pid_t pid = fork();
 
user142019
I hate how this is illegal.
 
user142019
A label cannot be followed by a declaration.
 
user142019
5:34 PM
restart:;
    pid_t pid = fork();
 
user142019
This does work.
 
Why is that illegal?
 
user142019
Do I know.
 
user142019
Because C's syntax is terrible.
 
I'm having rice pudding now, om nom nom... :)
 
user142019
5:40 PM
I'm having air with human tongue and slime.
 
Your own tongue, or someone else's?
 
user142019
My own.
 
user142019
lol
 
306
Q: Scala vs. Groovy vs. Clojure

James FassettCan someone please explain the major differences between Scala, Groovy and Clojure. I know each of these compiles to run on the JVM but I'd like a simple comparison between them.

weird question
 
user142019
Clojure is great.
 
user142019
5:44 PM
I was thinking about making a 2D MMORPG with line-based graphics. :v
 
> Though my tip though for the long term replacement of javac is Scala. I'm very impressed with it! I can honestly say if someone had shown me the Programming in Scala book by by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy. interesting
 
user142019
Does Scala/JVM have green threads?
 
user142019
> As green threads have some limitations compared to native threads, subsequent Java versions dropped them in favor of native threads.
 
user142019
:(
 
Never heard of green threads, WTF is that?
 
user142019
5:52 PM
It's threads that are managed by the VM rather than the OS.
 
user142019
So you don't get context switches at random moments but only when they make sense.
 
6:09 PM
@Zoidberg you are thinking too much
 
@Zoidberg When do context switches make sense?
 
user142019
6:53 PM
@FredOverflow when a thread is waiting for data from a socket and data is finally available.
 
user142019
For example.
 

« first day (57 days earlier)      last day (836 days later) »