Better HN
topnewbestaskshowjobs
Log inSign up

substack

1,135 karma · joined Mar 22, 2009 (17y ago) · 212 submissions

Whatever.
Submissions

comment 16y ago · link · parent

I couldn't see how anything could possibly stay in orbit when gravity pulled everything together until I wrote a computer program to simulate orbits in 2d: http://ln-s.net/7oFZ

It was really enlightening to fiddle with the constants and to create events that show how kinetic and potential energy interact in space.

comment 16y ago · link · parent

Yes but Android is a competitor to WebOS, so I was thinking more about how Google "feels" about its technologies being used in competitor's products.

comment 16y ago · link · parent

I wonder how Google, with its competing Android platform must feel about this. That is to say, are chrome and android for that matter more like the Nexus 1: designed to push other companies forward, or more like standalone products of their own? Or maybe Google is being even more forward thinking about it and realizing that they can derive competitive advantage from both scenarios.

comment 16y ago · link · parent

Glad you like it! Doing node-chess has given me a ton of ideas for the dnode web framework I have planned too. The framework will provide a more structured and out-of-the-box way to organize code that spans the server and client, since it can be hard to remember which functions belong to which side of the connection. It will also have some routines to synchronize objects between the server and client since sometimes you want a low-latency mirror of an object on the browser side, as we found in node-chess.

comment 16y ago · link · parent

For fun I was whipping up some haskell one-liners as I read along.

You can just do:

    let fibs = 1 : 1 : [ fibs !! n + fibs !! (n - 1) | n <- [1..] ]
for the Fibonacci sequence and

    take 10 $ iterate (succ . recip) 1
for the first 10 iterations of the continued fraction.

To me these read much more clearly but then I haven't written anything big in a lispy language yet.

comment 16y ago · link · parent

Neat. This style of code reuse is a lot like perl6 roles (http://search.cpan.org/~rkinyon/Perl6-Roles-0.01/lib/Perl6/R...) or haskell typeclasses: instead of describing how objects fit into a taxonomic hierarchy, objects or typeclasses are described by what behaviors they fulfill. For instance, in haskell a Complex type has an instance of Num in order to define numeric operations like (+) and (-). The emphasis is on what something does rather than on what it is.

comment 16y ago · link · parent

Isn't it common in countries outside of the US for the younger generation to stay in the same home as the older generation? Perhaps this 20-something phenomenon is just a sign that Americans are becoming more established in their communities and closer to the world norm.

comment 16y ago · link · parent

Not at all! The reason we haven't rolled out our demo yet is because hosting virtual machines takes a lot of server power to do. All of our code is up on github, so anybody can give it a spin for themselves, provided they can get it all running.

http://github.com/substack/stackvm

http://github.com/pkrumins/stackvm

comment 16y ago · link · parent

These are pretty great and it looks like an interesting project, but why "4+ years of experience"? First of all, what exactly is a "year of experience"? You spent the entire year using some piece of tech? You used the tech once a year ago? I hate how commonplace these sorts of non-verifiable claims are in job postings.

Edit: I've been thinking about this some more and perhaps "hours of experience" is a better metric, given the 10,000-hours-to-mastery correspondence.

comment 16y ago · link · parent

Can any individual government agent in such a capacity ever really be "just like me"? I don't take orders from anyone. They do. In that respect, they are nothing like me at all.

A large part of what makes tales of government harassment like this one so troubling is how similar, reasonable, and even pleasant the agents are. If they are just like us, then why is there so much injustice?

comment 16y ago · link · parent

Modal dialog boxes make me sad/depressed/angry.

comment 16y ago · link · parent

We plan to offer some kind of rdesktop or vnc backend for powerusers, since our software hooks into these on the backend anyways. This is a useful point!

comment 16y ago · link · parent

Wow I had no idea! StackVM is all html and javascript and we've taken great care to make sure it works on all browsers without any silly plugins.

comment 16y ago · link · parent

Yeah, it is one of the big unknowns we are testing with this startup, but for us it makes a lot of sense. By being open about our technology, we hope to gain eyeballs, traction, and goodwill from fellow hackers who might be our future customers. By being open about our ideas, we expose them to criticism so that we can reform them to be more realistic and to exploit new opportunities that we hadn't considered.

comment 16y ago · link · parent

Thanks for pointing this out! Spoon seems to have found a nice niche in hosting up individual applications. StackVM right now is more about the entire operating system and geared towards hackers for the time being, but we may pivot into other areas. There are a lot of potential niches in this domain which is part of the reason why the problem is so exciting!

comment 16y ago · link · parent

I prefer:

    my_variable or raise 'Hey dude! Where's My Variable Assignment'
or else:

    my_variable.nil? and raise 'Hey dude! Where's My Variable Assignment'
since it puts what's being tested in front like with if/then but is also syntactically light-weight.

comment 16y ago · link · parent

I second the Sinatra recommendation. When I tried rails for the first time, it felt very large and unwelcoming, with a bunch of files that I didn't create sitting in my directory hierarchy doing unknowable things. Sinatra behaves just like any other library and requires far less of a time investment to pick up and start using.

comment 16y ago · link · parent

The language is absolutely important, since in haskell I could just:

    > reverse [1,2,3,4]
or if I couldn't use the Prelude (yikes!)

    reverse [x] = [x]

    reverse (x:xs) = reverse xs ++ [x]

    > reverse [1,2,3,4]
The problem is that linked list traversal is a solved problem. Why not throw a novel and interesting problem at candidates? That way you could gain some insight into how they go about solving problems instead of how good the candidate is at memorizing other people's solutions that they could just as easily look up in a search engine in a few minutes.

comment 16y ago · link · parent

The point of releasing open source software for me is that I am contributing in my own small way to the state of human technological progress and to the massive canon of free software that I benefit from every day. Plus it's exhilarating to see other people become as excited about the code I've written as I was when I wrote it!

comment 16y ago · link · parent

This is a good point but at the same point not many employers have this strategy so I suspect there is plenty of underemployment among people writing open source given the level of skill. The hiring strategy that pkrumins advocates seems pretty sensible for a business that is already deeply familiar with the open source world.

comment 16y ago · link · parent

Thanks for this response and the parent question too. I updated the article to make this point more clear.

202.

DNode: Asynchronous Remote Method Invocation for Node.js and the Browser(substack.net ↗)

17 points · by substack · 16y ago · 4 comments

comment 16y ago · link · parent

When advance() in BufferList gets called, the linked list of buffers behind the scene advances so that all the unused buffers can get garbage collected. Binary has a flush() method too that calls advance().

204.

More one-liners from commandlinefu explained(catonmat.net ↗)

51 points · by substack · 16y ago · 2 comments

comment 16y ago · link · parent

This reminds me of a story from all the way back in high school algebra. I had just got a ti-83 calculator that year and was having fun writing basic programs for it. One of the class topics towards the end of the semester was the normal distribution and we were expected to memorize the percentages up to 3 standard deviations. I hated having to remember fixed quantities, so I wrote a program to calculate what I later learned were Riemann sums on the equation for the normal distribution I saw tucked away in the textbook.

I wrote a lot of programs like that one throughout high school and into college, and for me it was far more educational to solve a problem once and for through automation than to memorize constants, formulas, or to solve particular instances over and over.

comment 16y ago · link · parent

I really hate years of experience used as a metric because it doesn't distinguish between people who did are actually experienced in a technology and people who have merely been around a technology for a long time but never bothered to probe its internals.

Not that I'm looking for a job, but this advert doesn't exactly sell the position, either. What sorts of technical problems are you solving? What is your development environment like? How does your team collaborate? You mention PHP, javascript, and linux, but what are you doing with these technologies specifically?

comment 16y ago · link · parent

Light your lamp before going south and you'll be fine.

comment 16y ago · link · parent

I ran the source through jsbeautifier.org yielding this: http://gist.github.com/351418

Some fun stuff:

* there is a MUD

* find kitten launches a mini-game

* apt-get moo

* i read the source code

209.

An average half-kilometer S-type asteroid is worth more than $20 trillion.(googlelunarxprize.org ↗)

61 points · by substack · 16y ago · 61 comments

210.

This winter break, I built a python-powered robot telescope.(substack.net ↗)

16 points · by substack · 16y ago · 1 comment

1
45678