|
jfc how did i go four years without seeing shaggar's masterpiece? edit: nsfw https://www.youtube.com/watch?v=kLO1djacsfg
|
# ? Sep 9, 2014 01:58 |
|
|
# ? May 15, 2024 02:13 |
|
Would never have guessed Shaggar's real name is William Windows.
|
# ? Sep 9, 2014 02:03 |
|
Stringent posted:Would never have guessed Shaggar's real name is William Windows. It seems obvious in retrospect, tbh
|
# ? Sep 9, 2014 02:34 |
|
Resharing this truly hilarious trailer video, just because Java is really not one of my favourite languages (except for certain toy problems including GUI). And since this is Norwegian, I do happen to understand it without its subtitling. How about you?
|
# ? Sep 9, 2014 03:32 |
|
56k milli posted:jfc how did i go four years without seeing shaggar's masterpiece? i don't think i want to see any of the people in this picture naked so i'm gonna give it a pass
|
# ? Sep 9, 2014 04:07 |
|
Mr Dog posted:i don't think i want to see any of the people in this picture naked so i'm gonna give it a pass how wrong you are https://www.youtube.com/watch?v=kLO1djacsfg&t=152s
|
# ? Sep 9, 2014 06:34 |
|
Mr Dog posted:i don't think i want to see any of the people in this picture naked so i'm gonna give it a pass it's not really nsfw, it just looks like it for a couple of seconds
|
# ? Sep 9, 2014 11:48 |
|
is JavaScript supposed to be functional or just dumb why is the "object" implementation so bad why is for (index in array) so bad??? why does it iterate through all members of an object, making things like adding a function to an array prototype useles if you ever use it who thought that would be useful why is array[array.length] faster than array.push why can I not pass by reference
|
# ? Sep 9, 2014 15:01 |
|
ahmeni posted:just dumb
|
# ? Sep 9, 2014 15:10 |
|
if you've got a choice, use a wrapper language (typescript is the best of the three ive played with, the other two being coffeescript and dart)
|
# ? Sep 9, 2014 15:11 |
|
whatever happened to gwt anyway, that seemed like a good idea but apparently it's OMG like, soooo last Tuesday wrap the worst language (JavaScript) by writing your code in the best language (Java) and then compiling down (i think this-Tuesday is node.js because people somehow forgot that javascript is loving terrible, also because programming a webserver as if it was a microcontroller with only enough RAM for one stack is totally hardcore!!)
|
# ? Sep 9, 2014 15:39 |
|
GWT turned out to be a horrendous frustrating nightmare for a bunch of a reasons
|
# ? Sep 9, 2014 15:57 |
|
sorry you can't hang with the grown ups, javascript is the past, present and future
|
# ? Sep 9, 2014 17:06 |
|
Mr Dog posted:whatever happened to gwt anyway, that seemed like a good idea but apparently it's OMG like, soooo last Tuesday GWT is still going strong. You just can't expect the HN community to get excited about Java. It's also a terrible idea.
|
# ? Sep 9, 2014 17:14 |
|
gwt was a good idea at the time cause no developer wanted to subject themselves to javascript. now theres an unending pool of web "developers" you can contract to excrete some javascript as you need it so gwt isn't needed.
|
# ? Sep 9, 2014 17:59 |
|
ahmeni posted:is JavaScript supposed to be functional or just dumb it was designed in 10 days actually when you consider that it could have been much worse
|
# ? Sep 10, 2014 00:21 |
|
ahmeni posted:is JavaScript supposed to be functional or just dumb nothing related to any of those questions was a consideration during the development of javascript. javascript was created to pop up windows and close windows and to make alert messages appear. then a bunch of people started abusing it to do other stuff it was never intended for.
|
# ? Sep 10, 2014 00:23 |
|
everyone look up wmlscript and imagine if that was what we had to work with
|
# ? Sep 10, 2014 00:34 |
|
HappyHippo posted:everyone look up wmlscript and imagine if that was what we had to work with everything related to WAP is basically the worst and i lust for its death
|
# ? Sep 10, 2014 00:45 |
|
iirc, the visibility of prototype properties comes out of how the first DOM bindings were written (computed or reflected properties were only defined on the prototype to save memory). like many things in JS, it was then frozen by success. somewhere in mozilla's bug system there is a record of the carnage I wrought when I accidentally made them not enumerated under the JIT, for a couple of days. (sure sped up the benchmark I was targeting, though!) also like many things in JS, it got better over time, so you can defineProperty non-enumerate things on the prototype, and Object.keys to just get the directly-defined properties, or hasOwnProperty to filter inside a classic for-in loop. ES6 (and its shims) provides better iteration sugar, at long last. we had them in firefox in 2007, but it was too big a bite for the rest of ES5-né-ES3.1's committee to swallow.
|
# ? Sep 10, 2014 00:45 |
|
when is es6 coming this language is just too close to the metal for me
|
# ? Sep 10, 2014 01:02 |
|
ahmeni posted:why is array[array.length] faster than array.push it isn't in v8, there is tedious micro-benchmark somewhere.
|
# ? Sep 10, 2014 02:34 |
|
I used to be really excited about ES6, but now I'm disappointed in it. It's a big spec, nobody's sure what's going to happen to it, and it's being plonked into the biggest web runtime of all time. I wish we had an ES5.2 that had iterator sugar, destructuring assignment, and let/const bindings. And the updated stdlib with Map, WeakMap, Promise, Proxy and proxy. And then maybe generators. Really, that's all I need. The rest of ES6 is insane. Module system is overcomplicated and will mean we get CommonJS modules alongside ES6 modules alongside AMD modules alongside Google modules, alongside blah blah it's not a good idea. Templated strings seem cool, but they might be a bit too much on the sugar or magic side of things. Make one of those cool transpilers, then get a team inside Yahoo and a team inside Google to dogfood templated strings. I don't want that poo poo in direct-to-spec garbage when nobody's written code that uses it yet, and nobody knows how it might be the next JS feature everybody rants about. R&D is R&D. R&D helps you develop a product, but don't confuse R&D output with the product.
|
# ? Sep 10, 2014 04:29 |
|
MrMoo posted:it isn't in v8, there is tedious micro-benchmark somewhere. if Array methods aren't self-hosted, the thunk out to the host ABI and function overhead usually dominate. if they are self-hosted, then a good compiler can see through the function call and then they're basically equivalent. you can also just specialize if you're about to call that native, but it's hard to actually optimize away the whole difference: you need to perform or fake the scope traversal, and unless you hoist that guard out of the loop you'll incur some overhead, even if small. it would be surprising if it were the other way around, certainly, since push has to do strictly more work as defined, and can't possibly do less. Suspicious Dish posted:Make one of those cool transpilers, then get a team inside Yahoo and a team inside Google to dogfood templated strings. I don't want that poo poo in direct-to-spec garbage when nobody's written code that uses it yet, and nobody knows how it might be the next JS feature everybody rants about. quasi-literals have been in demand for a long time, and not just because they address the format string lack and provide much-needed sugar for localization. I don't know what a transpiler for es6 syntax would really tell you that isn't well known. there have been libraries doing substitution along these lines (though clumsily) for some time, more modern transpilers like the react team's jsx (which is very much used in high-volume production), and even lesson from other mainstream languages like C++11's custom literals. if it makes IBM shut up about syntactic support for decimal it's worth the price of admission right there. I agree that the module design might be trying to thread too many needles, but I think the language needs modularity support at a core level, so I don't know that it's avoidable. at least nobody is trying to bring back E4X! (right?) Subjunctive fucked around with this message at 04:45 on Sep 10, 2014 |
# ? Sep 10, 2014 04:35 |
|
code:
|
# ? Sep 10, 2014 13:55 |
|
well you see, that makes sense when you consider that
|
# ? Sep 10, 2014 14:01 |
|
AlsoD posted:
uhhh
|
# ? Sep 10, 2014 14:10 |
|
Suspicious Dish posted:I wish we had an ES5.2 that had iterator sugar, destructuring assignment, and let/const bindings. And the updated stdlib with Map, WeakMap, Promise, Proxy and proxy. And then maybe generators. Really, that's all I need coroutines look pretty nice.
|
# ? Sep 10, 2014 16:26 |
|
Zaxxon posted:coroutines look pretty nice. unlike your posting!
|
# ? Sep 10, 2014 16:39 |
|
AlsoD posted:
error: modifier static not allowed here static void theMethod() {} trap sprung, i guess
|
# ? Sep 10, 2014 20:41 |
|
Brain Candy posted:error: modifier static not allowed here oh i didn't test it :/ i even removed the link to the article because it turned into shilling for their java library or preprocessor or whatever within a paragraph.
|
# ? Sep 11, 2014 00:08 |
|
other than that, though, it was a great post
|
# ? Sep 11, 2014 00:14 |
|
an interface with static members
|
# ? Sep 11, 2014 00:18 |
|
hosed around in the lab experimenting today instead of working on either of my projects and wound up fixing two bugs by accident
|
# ? Sep 11, 2014 02:12 |
|
Blotto Skorzany posted:hosed around in the lab experimenting today instead of working on either of my projects and wound up fixing two bugs by accident my boss calls this galumphing
|
# ? Sep 11, 2014 03:00 |
|
fart simpson posted:well you see, that makes sense when you consider that interfaces are meant to be implemented
|
# ? Sep 11, 2014 03:01 |
|
I have been learning swift and I guess the language itself is no problem but iOS is a pretty big learning curve from web poo poo
|
# ? Sep 11, 2014 03:06 |
|
PleasureKevin posted:I have been learning swift and I guess the language itself is no problem but iOS is a pretty big learning curve from web poo poo why
|
# ? Sep 11, 2014 03:12 |
|
PleasureKevin posted:I have been learning swift and I guess the language itself is no problem but iOS is a pretty big learning curve from web poo poo iOS and objC are both bad poo poo from the 1980s web poo poo is at least 1990s turds
|
# ? Sep 11, 2014 03:36 |
|
|
# ? May 15, 2024 02:13 |
|
ahmeni posted:is JavaScript supposed to be functional or just dumb javascript isn't object oriented it just renamed hash as object
|
# ? Sep 11, 2014 03:38 |