tubes
Re:μLithp - a Lisp in 27 lines of Ruby
on Saturday January 05, 2013 @04:54PM (#5014213)
Scheme has set-car!, vector-set!, hash-set! etc to modify its standard containers. In clojure those containers are immutable. However, you could create equivalent immutable containers in Scheme, perhaps that's why he said "by default".
Re:Shall We Use Clojure?
on Tuesday July 03, 2012 @08:28AM (#4193741)
Why would anyone do that? We use immutable collections, immutable value objects, unmodifiable views and deep/shallow copies, but never serializing data to a string just for passing it around. I think most experienced Java developers would go for the type-safe alternatives.
Re:First draft of HTML img srcset for responsive images
on Tuesday May 15, 2012 @11:14AM (#3976918)
Not a good idea. Browsers that do not support imgset would show all three images using that syntax. A new element name like "<set>" would be ignored by them.
Re:Notch's next game is an MMO
on Wednesday April 04, 2012 @04:13PM (#3799608)
With a couple of simple macros, the code could be fraction of its size and much more readable. Code with that property is atrocious in my mind. For example these "argument reading" bits are repeated over and over again:
ram[PC++0xfff]&0xff
((ram[PC++0xfff]&0xff)|((ram[PC++0xfff]&0xff)<<8))
Of course Notch said it has been generated, so he probably had a neat definition that barfed this garbage out. But it's strange that so many commentators here are defending the output as a reasonable coding style for a VM!
Re:Kevin Fox on recent Google UX changes: from strange-to-me to just-p...
on Wednesday February 22, 2012 @12:59PM (#3621781)
I think in a couple of months there will be a "+1" button at the top bar of Chrome so you can click it to "like" any page.. And having a "+" button next to it would've been confusing.
Re:This game was made entirely in css (no javascript)
on Thursday January 19, 2012 @02:49PM (#3486289)
gzipped base64-encoded data is about the same size as the original data, though. It only requires more processing to be done.