Better HN
topnewbestaskshowjobs
Log inSign up

Scriptor

1,852 karma · joined Nov 10, 2008 (18y ago) · 533 submissions

Github: http://github.com/Scriptor
Submissions

comment 16y ago · link · parent

Javascript needs a lot of attention on its own since it has different best practices from other languages. At the same time, apps can be made more fun to play with if you know basic DOM manipulation. It will also be necessary to teach how to properly organize an ajax app (don't just send html or eval code, use json and separate concerns between client and server).

comment 16y ago · link · parent

Also, I'm not really a fan of reading text in monospaced fonts. Others may disagree, but reading code and reading regular text are very different things.

comment 16y ago · link · parent

Is that for writing entire applications in C or C++ or just parts of them?

comment 16y ago · link · parent

SPOILERS:

It wasn't too much though, the top two were just sleeping in a plane and a falling van, which isn't too much to remember. The elevator scene was just him setting up charges, much more action was happening at the hospital and the limbo level.

comment 16y ago · link · parent

I think he left it very ambiguous on purpose. The kids looking exactly like in the dream might just be an artistic thing to connect everything together. Also, the top was starting to jerk around a little bit at the end, so we can't be sure if it was about to fall.

comment 16y ago · link · parent

Can you list some of the incoherencies? I found that things that seemed odd at first can actually be reasoned out pretty easily.

Spoilers!

For example, a friend was confused how Fischer could be revived. They explained that death with the heavy sedation would lead to limbo, so it could be concluded that dying was actually just a shortcut to go into a deeper dream state, he wasn't actually "dead". When they woke him up from that dream, he came back.

Another oddity I found was that they needed to synchronize all the kicks, wouldn't one kick in the deepest dream suffice? Well, in one level of dreaming if you think you're falling, you can actually feel it (whether the falling feeling happens in the sleeping environment (dude sleeping in a chair and being tipped) or in the dream (dude being thrown out of a building)), but at 2 levels of dreaming, the falling would be too abstract to cascade all the way up.

You probably found different glitches in the movie, but the above shows the process I used to answer some questions.

comment 16y ago · link · parent

Exactly, the dreamers in the van are feeling 0g, so they're dreaming in 0g as well. However, it's still a dream so when you reach the dream-within-a-dream level, the brain probably defaults to what it's more used to.

comment 16y ago · link · parent

Another cs-related theme was the massively parallel capabilities demonstrated by the unconscious. It's also interesting that it's decentralized and actor-based. No two projections were aware of each others' knowledge or events unless they directly communicated.

comment 16y ago · link · parent

I wrote a Python script using a Cleverbot library that got it to talk to itself. The conversations actually weren't bad and you could sometimes see personalities form between the two. It makes me wonder whether the AI is designed so small differences early on between the two bots will eventually cause large divergences.

Also, it was funny to see them both call each other bots.

280.

Proggitquiz: Let's all solve facility location!(proggitquiz.com ↗)

3 points · by Scriptor · 16y ago · discuss

comment 16y ago · link · parent

Could be done well. He should write a formal contract asking for 20 goats and 5 cows, then have him sign it. :)

comment 16y ago · link · parent

I'm readying up a Lisp to PHP compiler for release of the next version. Ideally it'll be done soon today while I add finishing touches to the website and do some final testing.

comment 16y ago · link · parent

Because the vast majority of people will not be accepting donations because they aren't content creators. If a content creator puts $10 in per month, he could quickly get much more back if a hundred non-content creators each give $1.

comment 16y ago · link · parent

The stacked C code requires much less jumping around with your eyes and it's easier to quickly get an overall idea of what the code is doing. The other version just looks too scattered, which is fine if you're working on a particular line, but most of the time I'm just glancing at major portions of code.

comment 16y ago · link · parent

The D language actually is an example of a good site, in that there's a large chunk of code on the front page.

comment 16y ago · link · parent

I don't think strlen is being accurate by saying its "Ruby fanboys" who are the source of a lot of criticism. Clojure does have a lot of former Java developers who aren't used to non-IDE development on the JVM. Others don't like the apparent complexity Emacs comes with (Emacs, Slime, Swank, Paredit? All I want to do is enter some ascii characters and run a compiler!) That said, I think Clojure is improving in those fronts with broader editor support, guides to getting Emacs set up, and a growing list of libraries.

comment 16y ago · link · parent

The main difference here is between action and puzzle games. I personally disliked the pure puzzles because they felt too restrictive. Large-scale strategy games like simcity were a better fit for me. The same pattern shows up in my coding. I really don't like simple puzzles, but love challenges where I feel like I'm building something, not just solving it.

comment 16y ago · link · parent

Let's stop throwing around the word ADHD. It encourages people who just don't have the discipline to focus to give themselves an excuse, while lessening the perception of the problems for people who are actually debilitated by it.

There's no media-driven conspiracy to alter your mind. There has been an evolutionary trend to favor the animal who could quickly notice the approaching bear versus the animal too intent on its task. Conversely, human evolution has needed intense concentration to drive innovation in things like tool development, construction, and art.

There's media that caters to both. WIth action-packed movies and games thriving on quick attention-shifting, and grinding-based MMO's relying on the ability of players to do repetitive tasks for hours on end.

One could give the same attention-reducing arguments against books and for oral stories. That said, you shouldn't just make a blanket statement against all screen media. Teach your kids how to discriminate between what's good for them and what's not.

comment 16y ago · link · parent

The repo is available at http://github.com/tarcieri/reia

Is it just too unusable right now?

comment 16y ago · link · parent

Only a small number of the language websites listed on the emerging langs camp site have any code on them, and that includes those with maybe just a couple of lines for an edge case scenario.

I guess a bunch of those languages are highly academic and the meat is in the implementation as opposed to the syntax. But language developers need to start putting some effort into the non-code parts of their projects. I'm not going to get inspired to pick up a new language by bullet points. At the same time, I'm working on my own language project so I know it can be challenging to use just the right code to give the best first impression.

comment 16y ago · link · parent

They are: http://emerginglangs.com/speakers/

First one in the list :)

comment 16y ago · link · parent

I'm curious, what interesting features does it have?

comment 16y ago · link · parent

Something like this could be very feasible, especially when combined with the array interfaces so that the fact it's an object with a moving pointer isn't even noticed.

comment 16y ago · link · parent

Incorrect. The SPL is entirely implemented in C.

comment 16y ago · link · parent

FWIW, there's an implementation of a doubly linked list in the SPL.

http://www.php.net/manual/en/class.spldoublylinkedlist.php

LispHP seems to use ArrayObject, though I'm not really sure how its performance is (googling indicates iteration is slow).

comment 16y ago · link · parent

It could be mitigated in some cases as long as the garbage collector is working fine. For example, in a tail-recursive function that uses a first/rest pattern to go through an array a new copy would normally be allocated with each recurse. If LispHP can do some form of tail recursion elimination, it will theoretically take up constant memory and hopefully the GC takes care of the practical part.

comment 16y ago · link · parent

An alternative syntax for that is to cast $this as an array:

    array_slice((array)$this, 1);
I'm not sure if this will be faster though. Is the source of the slowness getArrayCopy or array_slice itself?

comment 16y ago · link · parent

The fact that it's interpreted makes it a little unrealistic to directly deploy a whole web application with it. However, the sandboxing and embedding features look really cool.

comment 16y ago · link · parent

It's interesting how South Asian English uses many British words as well (such as "dustbin" instead of the American "trashcan"). I was young enough to relearn the American words when I moved to the US. However, it's still the British words that I use when English occasionally pops up in my native language.

comment 16y ago · link · parent

Any reason why it hasn't? What parts of the language are the biggest obstacles?
1
91011
18