News for hackers. Stuff that matters.

GyrosOfWar

Re:Rust web framework, Iron on Monday August 17, 2015 @04:49AM (#10071896)
Small correction: Rust doesn't have exceptions. panic!() crashes the current thread with an optional error message, but it doesn't do stack traces and there's no try/catch in the language (there's the try!() macro, but it works with Result<T, E> values, has nothing to do with panics).
Re:IntelliJ IDEA 14 Early Preview is Available on Saturday June 28, 2014 @06:43AM (#7957926)
Yeah, that's definitely an issue. The Scala auto-complete is not very responsive, which makes the whole IDE experience with Scala pretty undesirable, sadly. I've been using IDEA with Java in the last ~2 months and it was perfectly smooth all the time. I guess Scala is a lot more complex as a language than Java, which makes parsing it on the fly much harder.
Re:Das Referenz: Wikipedia Redesigned for iPad on Saturday June 07, 2014 @08:10PM (#7863533)
Yeah.. If you're gonna give your app a name from a foreign language, at least look it up in a dictionary. "Die Referenz" would be correct.
Re:The International – Dota 2 Championships on Sunday May 11, 2014 @05:25PM (#7730065)
Also to note, the American qualifiers for the tournament will start tomorrow and run until Thursday. There's a good mix of North and South American teams in the qualifier and the stuff that is planned for the broadcast seems pretty exciting.
Re:All of Bach on Friday May 09, 2014 @02:40PM (#7722577)
Really a fantastic performance. The recording quality of both video and audio are excellent too.
Re:Firefox 29 on Tuesday April 29, 2014 @11:38AM (#7667701)
You could try Fauxbar, which is a Chrome extension version of the Firefox Awesomebar. I really like it.
Re:.NET JIT and SIMD are getting married on Tuesday April 08, 2014 @06:46PM (#7556508)
How would immutability help with performance? (I'm not trying to ask a leading question, just curious) Value types are obviously nice for better cache performance (less pointer chasing, more linear data) but I generally associate immutability with better correctness but worse performance (not much worse, but worse).

edit: On topic, this is really, really cool. I was playing around with SIMD intrinsics in C++ a few days ago (and realized that the compiler was in most cases generating equal or better code with the auto-vectorizer than me using intrinsics) so I have kind of a new-found interest in the topic.

Re:DEC64: Decimal Floating Point on Saturday March 08, 2014 @06:05PM (#7366757)
I see, that makes sense.
Re:DEC64: Decimal Floating Point on Saturday March 08, 2014 @03:00PM (#7366187)
It's addressed, but in the wrong way. IEEE 754 has positive and negative infinity for a reason. Why do there have to be 255 zero values? Also, what about rounding modes? Floating point math is really, really hard and this specification makes it look too easy.
Modern C# and C++ both have facilities that make the languages much more concise (lambdas in combination with std::algorithm resp. LINQ, type inference and the like). Java 8 will also have some of that and I can see it becoming a much nicer language to work with because of those changes.
Re:CSS 'frameworks' are missing the point (2008) on Tuesday January 21, 2014 @11:58AM (#7096498)
Exactly. For someone like me who likes building websites for fun (and by myself), but sucks at design and CSS, Bootstrap is a godsend. Because of it, I can concentrate on the stuff that's fun for me while having a pretty reasonable-looking website.
Re:Computer Science Erotica on Tuesday January 21, 2014 @11:08AM (#7096085)
There really is porn for everything, huh?
Re:Fake Name Generator on Tuesday January 21, 2014 @11:06AM (#7096075)
The German names are all rather convincing, except for the sometimes lacking umlauts. (interestingly, only in the surnames) No one is called Jager here, unless they anglicized their name for some reason (Jäger is German for Hunter).
Re:Project Euler on Wednesday January 15, 2014 @07:49AM (#7063021)
I like Programming Praxis (http://programmingpraxis.com/), it has mostly algorithmic problems and the questions also include solutions.
Re:'Carmack Lines': Playing with Javascript on Saturday January 04, 2014 @02:58PM (#7012616)
With ((x | y) % 7) != 0), I get this result in Processing: http://i.imgur.com/K35xxI7.png

I think I know what I'll do for the rest of the evening.

Re:How to write a great research paper [pdf] on Tuesday December 31, 2013 @05:59AM (#6989954)
It's also great advice. I especially liked the part at the end about using simple and direct language and the active voice. This alone makes a paper much easier to digest even if the subject matter is hard.
Re:Spelunky Procedural Level Generation on Saturday December 07, 2013 @10:02AM (#6866508)
The site crashes my browser (rather, the tab it's running in, Chrome 32) I see a loading bar, then I see something resembling a Spelunky level for a few seconds and then it crashes.
Re:FizzBuzz solved using only bit twiddling on Monday October 28, 2013 @03:17PM (#6629146)
Very cool. This really makes me want to get better at Haskell. I know enough of it to understand what's going on here, but not enough to be able to come up with something like this.
What do you even mean with that? Marking all JVM languages as unsafe? Marking JavaScript as unsafe (because it has so much to do with Java, right?) The issues Mozilla has with Java are limited to browser applets and the lack of security updates from Oracle (which, coincidentally, mainly affect the browser applets)
> One thing I would like to see: MS should ban FF because it is insecure :)

Any follow-up on that? FF is, to my belief at least, one of the more secure browsers.

Re:Akka, Spray and Play to come Together on Friday October 18, 2013 @10:14AM (#6571449)
From what I've read in the Play documentation, this is intentional. [0] They say:

> SQL is already the best DSL for accessing relational databases.

I have no real opinion on the matter, as someone who doesn't like working with databases very much, I appreciate the comfort a ORM mapper gives me, but so far, all my web apps have been very small and basically trivial, so I don't know how they work with bigger projects.

[0]: http://www.playframework.com/documentation/2.2.x/ScalaAnorm

Re:UTF-8 – "The most elegant hack" on Saturday September 28, 2013 @05:48PM (#6463271)
Brady Haran's videos are in general very good. All of his videos are in this style, concentrated on a single topic and in general shorter than ten minutes. I especially like the SixtySymbols channel (Physics and Astronomy). He seems to have a talent for asking the right questions and/or finding the right people to answer his questions.
Re:Effective Scala on Thursday September 05, 2013 @01:54PM (#6335689)
> Also note that there is a HUGE performance difference between appending and prepeding to a list. :-)

If you're going to do a lot of appending, might I suggest a ListBuffer or a Vector?

Re:Things You Should Never Do, Part I (2000) on Wednesday September 04, 2013 @11:32AM (#6328247)
Modern statically typed languages (cough cough not Java cough) generally have static type inference, which removes a lot of redundancy from the code. Being able to do

val object = MyObject(someOtherObject(12, "hello")) // Scala

instead of:

MyObject object = new MyObject(new someOtherObject(12, "hello")); // Java

saves a lot of time and it just looks nicer. All the while retaining the advantages that static, strong typing have (great potential for refactoring, a lot of errors can't happen at all). Of course, there are some things that will still take up more space than they do in Python or Ruby but it's a great improvement. Languages like Rust, Scala or C# also have a good variety of functional programming tools that can make your life a lot easier.