HNHacker News
TopNewBestAskShowJobs

stephth

1,140 karma · joined December 8, 2010

submissionscomments
stephth··on Primary pupils 'need nine hours of sleep'
Bummer that it requires a headband. Has anyone had success with Wakemate?

http://wakemate.com

stephth··on Primary pupils 'need nine hours of sleep'
Have you experimented 9 hours of sleep + nootropics?
stephth··on Primary pupils 'need nine hours of sleep'
I've been doing the same, it's been really helpful. My wife has been very patient with me through this. Any day I get up before I feel like I'm ready, my sharpness and work endurance is substantially worse.
stephth··on Primary pupils 'need nine hours of sleep'
Did you track your performance beyond 8.5 hours?
stephth··on Home-made bombs are being sent to physicists in Mexico
thanks for taking the time to write this. it was quite an epic read, while listening to radiohead's 'everything in it's right place'.

That deleted comment was mine. My intention was to trigger some argumentation, but then @feral wrote something that sounded like he had a much more formed opinion that I did, so my comment felt unneeded. anyway, deleting it was such a bad call, sorry about that. lesson learned.

anyway, for the record and the curious, here it is (snatched it back from my cache):

--

But to imagine that that self-aware technology will be anything but symbiotic with us is truly crazy.

Why is it absurd? I'm not arguing one way or the other, I'm just interested. I know very little about Ray Kurzweil's singularity theory (or AI research for that matter), the little I know doesn't sound that implausible. But it does sound quite dark, so if there's a reason why it's truly crazy then I would joyously hear it.

Edit: to be clear here, crazy or not crazy, I do not endorse violence.

--

stephth··on “C#, it’s just not portable”
Oddly enough it seems like C++ is the only language all three platforms support natively.

Indeed. But it's also quite harder than those to develop in.

I hate to keep on button-mashing, but it would be a big win to have a PlusPlusScript language - as in same philosophy and approach as CoffeeScript, but targeting C++ [1].

[1] http://news.ycombinator.com/item?id=2989936

stephth··on A beginners guide to using Python for performance computing
"Obviously it would have to come with some lower level semantics, like memory management."

Why?

Once again: this approach means zero dependencies. And in a way, you answered it yourself:

Might not be fine for real time systems or games

And there are more examples where it might not be fine, here's a major one: building a C++ library. It's true, this article is not about real time systems (I do apologize for diverging...), but this language could be one solution to problems approached in this article (it would replace the C++ example).

I am interested in projects like shedskin or pypy, but they have dependencies. The bottom line to me is: a higher level language that compiles to C++ code with zero dependencies. Think about it: this language could be used for any application, deployed in virtually any codebase and any system.

stephth··on A beginners guide to using Python for performance computing
The C++ code it generates depends on a Python runtime, doesn't it? That means you can't use it to write - for example - C++ libraries.
stephth··on A beginners guide to using Python for performance computing
It's just not possible to get it via the means you've described.

Why not? it might harder to implement than coffeescript, but ooc is proof that it's possible. Remove GC and dependent libs, and you still have a substancially higher level language than C (or C++).

As for ooc and garbage collection: How would you write a compiler for a high level garbage collected language without including a garbage collector?

I didn't say it should be garbage collected: Obviously it would have to come with some lower level semantics, like memory management. The coffeescript approach is it shouldn't have dependencies. By high level, I meant higher level than c++. it will always be lower level than a language like python, without dependencies we can't escape all the semantics underlying in the target language. That said like I mentioned before, memory management could possibly be handled by something similar to Apple's ARC (and to answer your last question, I don't think it's that black and white, look at how Apple is investing on ARC instead of GC; also GC's unpredictability make it a no-go for low level routines in videogames).

stephth··on A beginners guide to using Python for performance computing
I often wonder why there is so little interest in a high level language that would compile to pure C++, with a syntax that makes code more succinct and friendlier, just like CoffeeScript compiles to JavaScript. We have a clear problem: higher level languages make programmers more productive, but they have performance issues. Because of those, developers that need performance fall back to C++ (look at videogame development, C++ is there to stay).

So why not make a language that is high level, but compiles to pure, cross platform, C++? Think of the productivity win: a higher level language that rarely needs optimizations. Obviously it would have to come with some lower level semantics, like memory management (although it could maybe be solved somehow like Apple did with Automatic Reference Counting, which is basically a preprocessor) or static typing (although the compiler can sometimes be instructed to guess the type, see the := operator in ooc [1]), but even if some lower level semantics are unavoidable, it still seems like a huge win. Yet every time I saw the idea mentioned online it's been either mostly ignored or treated as stupid idea, and the very few projects that attempted to go in that direction never took off. Maybe I'm missing something? If so I'd love to know what it is.

No matter how fancy and awesome higher level languages are, we keep going back to C++ for performance, and that's probably never going to change (at least until processors are stupidly fast). So why not make it easier? The CoffeeScript approach has largely been proven to work.

[1] http://docs.ooc-lang.org/language/syntax.html#declarations (note that ooc is a good step in this direction, it compiles to C99, but then takes step back: it depends on a garbage collector)

stephth··on Indie Game Devs Post Own Game on The Pirate Bay
Wow. I think you're painting a way overly negative picture.

I'm not sure what your definition of success is (so Minecraft is not good enough for you?) but I know many - just look around - indie developers that are making a good living and growing their business out of selling good games and being reasonably clever about business, they're nothing like a burning sheet of paper. They may not all have made 3 million bucks - a handful obviously have and that's great -, but they're able to live doing what they love. I'm not saying it's easy, it takes a lot of talent, passion and endurance.

And I don't think you should try to beat EA at their own game. You should be playing a different game. The simple fact that you're not EA could be one of your best cards.

stephth··on Indie Game Devs Post Own Game on The Pirate Bay
How is it the lottery of indie games? All the games sold on HIB - that I've played - are good, original, well polished games. Some, I believe, are some of the best games ever made, indie or non indie. It wasn't luck that put them in the HIB shelf.
stephth··on Teagueduino solderless electronic board
A "shoebox videogame" made with Teagueduino:

http://www.joystiq.com/2011/09/09/teagueduino-used-to-create...

And its source code:

http://teagueduino.org/index.php?p=/discussion/22

stephth··on With Apologies to John Gruber
Yes. If this is what Daring Fireball was like [1], then it's better off today.

That said, I feel like John Gruber used to be more of a curator that showed cool projects and things, and less of a market share analyst. I kinda miss that.

Anyway, you can't just replace John Gruber. As a writer, he's kind of one of a kind.

[1] http://www.oldfireball.com/apps.html

stephth··on Ask HN: I am wasting so much of time, what can I do?
Lots of good comments I think, but before considering all those options, I think the first thing you should try is to push yourself in the "zone" [1]. To me entering the zone can be hard sometimes - my brain is inventing all sorts of distractions, why it does that is still a mystery to me since I love my job - but it's not that hard: I just need to force myself to get in the zone, and I do that by ignoring my desires and by getting started with my tasks. Once I get started, very quickly I'm in the zone, and it's quite easy, natural and mostly enjoyable to stay inside the zone, as long as I avoid interruptions (short breaks every hour or so are good, as long as they are mental rest, like lying down and/or watching the clouds, short breaks are not a good time to read hacker news).

If this fails for you, then it could be a multitude of reasons, and you should consider some of the options recommended here (maybe change your job?).

http://en.wikipedia.org/wiki/Flow_(psychology)

stephth··on IOS source code for Wolfenstein 3D & Doom classic
yes, id software is notorious for open sourcing all their games a while after release.

John Carmack took a few months break from Rage development to work on these (at least on Wolfenstein, not sure about Doom) [1], so there will definitely be substantial differences to adapt to iOS, like - I'm guessing - OpenGL-ES code and touch controls.

here's a write-up from Carmack about his Wolfenstein iPhone development adventures: http://www.idsoftware.com/wolfenstein3dclassic/wolfdevelopme...

[1] http://www.youtube.com/watch?v=4zgYG-_ha28

stephth··on The Architecture of Open Source Applications
This is an such an awesome initiative. But it could do with more games. I'm surprised that none of the open source Quake engines are in there.
stephth··on Apple phasing out developer access to the UDID in iOS 5
Another example of legit usage of UDID: TestFlight.
stephth··on How LinkedIn used Node.js and HTML5 to build a better, faster app
Inline conditionals on the left and the function keyword? From all the features that CoffeeScript offers it's kinda odd to focus on those minor details of taste and habit.
stephth··on How to put your logo in a QR code
Is there any iPhone code scanner that shows the result in an overlay on the camera feed, instead of screen jumping the second it detects something? The latter behavior is obnoxious when playing with QR codes.
stephth··on How to put your logo in a QR code
Are you sure that comment applies here though? The QR codes it referred to and these are like night and day.
stephth··on MoonScript - A programmer friendly language that compiles to Lua.
It's human readable as far generated code goes. It's not always practical to read (specially with classes), but you can if you have to. It's one of the philosophies behind CoffeeScript. As you can see its translation of OOP is verbose too, but readable [1], and the verbosity of the generated code is balanced by the power added on the CoffeeScript side.

My point/question was: it doesn't add a runtime or new libraries/routines, you can read the generated code if something goes wrong, so why wouldn't it be ok to use in production?

[1] http://jashkenas.github.com/coffee-script/#classes

stephth··on MoonScript - A programmer friendly language that compiles to Lua.
Lua is fast as scripting languages go, but saying it's in the same performance ballpark as native code is a stretch [1]. Game developers that use Lua commonly rely on C/C++ for low level routines.

There's a space for innovation there. ooc [2] has been a step in that direction, although its usage of garbage collection makes it much less flexible than CoffeeScript or MoonScript. I don't think developers need to be abstracted from memory management at low level. What they could use is getting rid of a lot of cruft, to be able to write/read/think more quickly.

[1] http://attractivechaos.github.com/plb [2] http://ooc-lang.org/

stephth··on MoonScript - A programmer friendly language that compiles to Lua.
Why wouldn't this be used for production? It compiles to human readable Lua.
stephth··on MoonScript - A programmer friendly language that compiles to Lua.
This looks very promising. Congrats on the launch.

I am enjoying this wave of new programming languages that compile down to existing ones in a human readable way. They are pleasant to write and read and yet performant and don't require a special runtime, making them easy to integrate anywhere in their parent language.

I hope someone talented will build one of these for C/C++. Mobile an game developers could use it.

stephth··on MoonScript - A programmer friendly language that compiles to Lua.
That's quite a bit of an exaggeration in this case. Look at the simple syntax for OOP or default argument values. That's a lot of cruft removed compared to Lua. The less you need to read the better, as long as it's readable.
stephth··on MoonScript - A programmer friendly language that compiles to Lua.
-- is the Lua syntax for comments. I'm curious about why the author kept it.
stephth··on A recipe for App Store profit: Take game idea from small devs iOS profit.
More coverage: http://multiplayerblog.mtv.com/2011/07/21/radical-fishing-an...

Quote: Moral of the story: If you want to support creative, independent developers, avoid "Ninja Fishing" and wait for "Ridiculous Fishing." The only way to discourage this sort of action is to hurt copycats in the wallet, so make your voice heard.

stephth··on A recipe for App Store profit: Take game idea from small devs iOS profit.
This is not just borrowing a few ideas, it's a blatant ripoff. And it was released while Vlambeer was developing an iOS version to start monetizing their success. You can be competitive and morally correct, they're not exclusive.
stephth··on A recipe for App Store profit: Take game idea from small devs iOS profit.
Certainly, Gamenauts gets a design that has already proved popular with audiences, but is that really enough incentive to destroy your reputation?

I think he's overestimating how much people in general care about clones. Sure, in indie game developer circles, their reputation is stained. But most people are not aware, and even if they are, most don't give a shit. Ninja Fishing is now the top #13 paid app on the App Store.

That said, maybe with this backlash the press and distribution channels will start giving a fuck.

← PreviousPage 6 of 12Next →