Better HN
topnewbestaskshowjobs
Log inSign up

tomstuart

2,961 karma · joined Aug 27, 2009 (17y ago) · 370 submissions

Computer scientist, technical leader, Ruby & JS hacker, http://computationbook.com/ author, &c. https://tomstu.art/, hi@tomstu.art
Submissions

comment 3w ago · link · parent

> The person who wrote this is themself a rich person. But of course they would never give up their own money.

https://blog.codinghorror.com/stay-gold-america/

comment 4mo ago · link · parent

At the risk of straying into forbidden metacommentary: look, I understand (and also feel) the temptation to have a go at Stephen Wolfram every time he posts something wacky, but… he’s just a guy with a fun hobby, isn’t he? Sure it’s all a bit eccentric and self-indulgent, but so are most hobbies, and in contrast to basically every other rich tech man he isn’t actually hurting anyone. Live and let live I reckon.

comment 5mo ago · link · parent

Among a strong field, this is the single most depressing comment I’ve ever read on Hacker News. Several grim components but it’s the “I don’t understand why” which seals the deal.

comment 6mo ago · link · parent

The game’s difficult to understand so it’s too punitive to not offer even a single practice/example puzzle to use for learning. One puzzle a day is nice once you’ve got the hang of it, but it’s discouraging to “waste” today’s puzzle on learning the rules and not be able to try for real until tomorrow.

comment 8mo ago · link · parent

I had to look this up: https://doi.org/10.7155/jgaa.00370

comment 1y ago · link · parent

Congratulations on the new adventure, Steve, and good luck!

comment 1y ago · link · parent

What do you mean by “Pagemorphs”? A quick Google search suggests you’re the only person using this term so it’s hard to know what you’re recommending. I think it must mean e.g. https://turbo.hotwired.dev/handbook/page_refreshes?

comment 1y ago · link · parent

Do you want another person (or yourself in the future) to be able to read your commits, in order, to get a clear account of what changed & why? If so, you should fix up those commits to address mistakes. If not, it doesn’t matter.

comment 1y ago · link · parent

https://www.hyrumslaw.com/

comment 2y ago · link · parent

Yes, it is.

comment 2y ago · link · parent

This sounds intuitively true, but it’s a (very persistent) myth: https://www.viget.com/articles/just-use-double-quoted-ruby-s...

comment 2y ago · link · parent

The branding is incredibly confusing, but: Hotwire (https://hotwired.dev/) is a set of ideas about how to build dynamic web UI (“HTML over the wire”), and the Turbo, Stimulus and Native frameworks are complementary implementations of those ideas in JavaScript and native mobile code. You can use all, some or none of them to build a Hotwire-style app.

The three frameworks originated in Rails apps, so they have good Rails integrations, but there’s nothing Rails-specific about them and you can use them in any environment where HTML is sent from server to client, even a static web site.

comment 2y ago · link · parent

Rails’ nightly CI already needed a fix: https://github.com/rails/rails/pull/52937

14.

Switch Ruby's default parser from parse.y to Prism(github.com ↗)

5 points · by tomstuart · 2y ago · 3 comments

15.

Switch Ruby's default parser from parse.y to Prism(github.com ↗)

3 points · by tomstuart · 2y ago · discuss

comment 2y ago · link · parent

Here’s the PR. I don’t know whether it was discussed elsewhere. https://github.com/ruby/rdoc/pull/1157

comment 2y ago · link · parent

That’s the joke.

comment 2y ago · link · parent

I’m pretty sure you’re talking to an LLM.

comment 2y ago · link · parent

Definitive reference: https://www.urbanautomaton.com/blog/2015/08/10/the-pledge-to...

comment 2y ago · link · parent

I did read your comment but I don’t really understand what you mean by “the memory system”. A linear bounded automaton is by definition a finite state machine for a given input (i.e. fixed tape size) because the number of possible configurations is finite. A Turing machine’s infinite tape is what stops it being a finite state machine.

comment 2y ago · link · parent

Real-world computers are equivalent to linear bounded automata, not true Turing machines, because they have finite memory. This technicality is mostly ignored because a computer with a large finite memory is a decent enough approximation to a Turing machine for practical purposes. But, for example, the halting problem is decidable for linear bounded automata — because there are only finitely many states, every computation must either halt or eventually revisit an earlier state and get stuck in a loop — so in theory it’s an important distinction.

comment 2y ago · link · parent

Mike Dalessio, the maintainer of Nokogiri, gave an excellent talk about this at Rails World 2023: https://youtu.be/USPLEASZ0Dc?t=939

comment 2y ago · link · parent

You’re taking the use of the word “state” too literally. The original comment was complaining about how Ruby `require` adds names (constants) to a global namespace; Python `import` only binds names in the local scope.

comment 2y ago · link · parent

You might be interested in Chris Salzberg’s Im [0], already usable on Ruby 3.2, or the discussion about the speculative “namespace on read” feature [1].

[0] https://github.com/shioyama/im

[1] https://bugs.ruby-lang.org/issues/19744

comment 2y ago · link · parent

The target audience for this hack are people who carefully weigh their beans (and then put them into the empty hopper for grinding) each time they make coffee.

comment 3y ago · link · parent

I wouldn’t defend the idea that it’s “clear”, but the idea is to build a machine that combines the axioms of ZF set theory in all possible ways to generate all possible conclusions, checking each one for contradiction as it goes. If it never generates a contradictory conclusion from those axioms, it’ll run forever.

comment 3y ago · link · parent

It’s a student project, so the primary intent is to do the work necessary to graduate.

comment 3y ago · link · parent

https://www.ycombinator.com/legal/#tou

comment 3y ago · link · parent

Phew, thanks!
12345
13