Better HN
topnewbestaskshowjobs
Log inSign up

GyrosOfWar

43 karma · joined Sep 2, 2013 (13y ago) · 24 submissions

https://github.com/GyrosOfWar
Submissions

comment 11y ago · link · parent

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).

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Really a fantastic performance. The recording quality of both video and audio are excellent too.

comment 12y ago · link · parent

You could try Fauxbar, which is a Chrome extension version of the Firefox Awesomebar. I really like it.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

I see, that makes sense.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

There really is porn for everything, huh?

comment 12y ago · link · parent

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).

comment 12y ago · link · parent

I like Programming Praxis (http://programmingpraxis.com/), it has mostly algorithmic problems and the questions also include solutions.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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)

comment 13y ago · link · parent

> 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.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

> 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?

comment 13y ago · link · parent

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.