HNHacker News
TopNewBestAskShowJobs

happy_dino

145 karma · joined February 10, 2013

submissionscomments
happy_dino··on Indie game Haunts unable to compile its Go code
Interestingly, the only ecosystem which suffers from such issues is Go.
happy_dino··on Indie game Haunts unable to compile its Go code
Amazingly, other communities manage to do that without being so utterly condescending.
happy_dino··on Indie game Haunts unable to compile its Go code
"The developer should have done X!", well, then why doesn't Go just do it by default instead of choosing an approach which has been discarded by pretty much every other modern language/ecosystem?

I think the fact that every Go proponent attacks the developer of the game is one thing which keeps me from using Go. The community seems to be incredibly closed-minded and hostile.

happy_dino··on VP9 Codec Nears Completion
Yes. It's as basic as that the license on your device is explicitly limited to usage for non-commercial stuff.

Uploading to YouTube (which serves ads to earn profits) is not non-commercial.

Don't trust me. Read the license agreement which came with your device.

happy_dino··on What's New in Scala 2.10 [video]

    Adriaan Moors, Scala Tech Lead at Typesafe starts his talk
    with a straightforward and possibly controversial idea:

                    Scala is simple.

    To support his argument, he offers evidence to the contrary,
    and then refutes that evidence in order to make a full circle 
    connection to his claim.
    
    This talk is a comprehensive look at Scala 2.10 featuring 
    multiple examples, code demos, and aspects worth highlighting.
    What has changed, and upgraded in 2.10, and what are the
    details of those changes?
happy_dino··on Linux is not about choice (2008)
> why Linux can't win the OS wars

It can't win, because it pretty much already has.

Embedded: Linux. Smartphones: Linux. Appliances: Linux. Desktop: Windows. Server: Linux. HPC: Linux.

happy_dino··on Show HN: Java 7 Features Backported to Android
Facebook didn't use Scala and they managed do hit a lot of same issues, too, like this one: http://code.google.com/p/android/issues/detail?id=22586

Anyway, the presentation is almost two years old now.

happy_dino··on Show HN: Java 7 Features Backported to Android
I think it is pretty similar to Java. Java has the native keyword, Scala has the @native annotation.
happy_dino··on Show HN: Java 7 Features Backported to Android
There are pretty much no issues using Scala on Android. After running ProGuard, the Scala library takes up a few dozen kilobytes.

Execution is as fast as Java. I remember running my Scala app on one of the first tablets (Android 2.x) without issues.

The build system support is impressive and there is a whole community which focuses on Scala running on Android.

happy_dino··on Google and Adobe team up to improve fonts on iOS and Linux
> Doesn't Ubuntu and other out-of-the-box desktop friendly distros come with good font settings from the get go?

Yes, exactly!

happy_dino··on Google and Adobe team up to improve fonts on iOS and Linux
The good thing is that it only has to be figured out once, then the information can be spread almost freely ... there is something called “the internet” which excels at this.
happy_dino··on Google and Adobe team up to improve fonts on iOS and Linux
> Is it true that iOS uses a different font renderer than Mac OS?

Yes, iOS uses (parts of) FreeType. Imagine the shitstorm if they shipped their fuzzy, washed-out default rendering! The issue is that most people buying smartphones are not die-hard Apple fans like the buyers of their other offerings, so the font rentering would be pretty hard to sell.

> I thought that the fonts on an iPhone looked pretty good actually.

That's because FreeType (with the right patches and settings) is already pretty much the best font renderer (with a few exceptions).

happy_dino··on Why SICP Matters
Trying to have a small language sometimes results in allowing (or having to allow it in the sense of not outlawing it) multiple ways to do the same thing, especially as the expressiveness increases.

As an example, I don't think Python's “there's only one way to do it”-approach would have a chance of surviving if the language was as expressive as Scala.

In the end, as long as Scala stays simpler than Java 8 and vastly simpler than F#, C# and C++, it's good enough for me.

happy_dino··on Why Maybe Is Better Than Null
Why do you consider this a debt? It's pretty much the only sane thing to do.

If people want to pass lazy NullPointerExceptions, it's their fault.

happy_dino··on Why Maybe Is Better Than Null
The null object pattern and Maybe/Option are different concepts. The most important point: A NOP for some type T exposes T's API directly, while Maybe/Option has its own API (and the type system enforces that Option[T] can't be treated as a T).
happy_dino··on Rust will likely not support tail call optimization
> Because the security manager needs to be able to introspect the stack.

Not allowing certain “optimizations” in security-sensitive contexts is perfectly fine. In fact, this is exactly what Avian, the CLR (and pretty much everyone else) is doing.

> Avian isn't a JVM; it's "designed to provide a useful subset of Java's features" and can run some Java code.

Now you're talking about legal aspects. Frankly, I'm not interested in discussing those.

Avian is a JVM for all practical purposes. If you disagree, please provide a test-case which runs on HotSpot but not on Avian.

happy_dino··on Rust will likely not support tail call optimization
For instance oss.readytalk.com/avian. Why should it?
happy_dino··on Rust will likely not support tail call optimization
There is no need or reason to change or add any bytecode instructions to support proper tail calls.

Take standard class files and execute them on a runtime with proper tail calls. Done. Works.

happy_dino··on Rust will likely not support tail call optimization
Which I more or less already said with

> If one cares about proper tail calls, use an implementation which supports it.

Right?

happy_dino··on Rust will likely not support tail call optimization
The “JVM” can use any instruction it wants to use.

If you want a runtime with proper tail calls, use a implementation which supports it.

happy_dino··on Rust will likely not support tail call optimization
> it needs to keep it around for the security manager to do its thing

Haha. As if the JVM needed proper tail calls to get owned every other week. :-)

Anyway, the discussion is pretty much moot, because "JVM" doesn't really refer to specific implementation. If one cares about proper tail calls, use an implementation which supports it.

happy_dino··on Choosing a Programming Language
I'd say that this sounds pretty too slow, too. My REPL starts in less than a second.
happy_dino··on Firefox Nightly Gets New Baseline JIT Compiler
Of course. I know his nick from the work on Rust.
happy_dino··on Firefox Nightly Gets New Baseline JIT Compiler
Again, these are C/C++ use-cases. That's exactly what asm.js was made for.

Apart from the potential of making some of Mozilla's insane ideas like implementing a PDF reader in JavaScript easier/faster, it's applicability is pretty much limited.

No one out there who is waiting for a sane language for the web will rejoice that he can now use C/C++ instead of JavaScript.

> That is being worked on with the Binary Data spec: http://asmjs.org/faq.html

I'll believe it when I see it working. Most likely they will still find a way to make it next to useless, forcing people to keep writing/targeting JavaScript.

happy_dino··on Firefox Nightly Gets New Baseline JIT Compiler
I had high hope, but no, it isn't.

It would only let you build your own asm.js-based VM on top of the existing JavaScript-like VM which could implement some bytecode format and interpret it.

I have seen something like that already. Let me tell you, you don't want to download 20 MB for some simple web-based Tetris-clone.

asm.js is useless for pretty much any modern language which relies on garbage collection.

I want less indirections, not more.

happy_dino··on Firefox Nightly Gets New Baseline JIT Compiler
... which finally adds support for a common bytecode format, usable as a compilation target for various languages.

Oh wait, that would actually be useful.

Better just design yet-another JIT compiler to speed up that language design train wreck that is Java Script.

</s>

happy_dino··on Java Developers: Need to know vs Nice to know?
Agree. More like “mandatory”.
happy_dino··on Java Developers: Need to know vs Nice to know?
> [...] which would be the libraries that would be nice to know to separate them from the competition?

scala-library.jar, scala-reflect.jar, scala-compiler.jar

happy_dino··on Go 1.1 beta 1 Released
Could you please identify the ad hominem? I don't see it.
happy_dino··on Go 1.1 beta 1 Released
That's pretty much wrong on all accounts. I recommend getting a basic grasp of the topic before trying to defend Go in such an awkward way.
← PreviousPage 4 of 5Next →