Recent submissions

Comment · 4 years ago
Bob Nystrom describes his language Wren through number of semicolons, which I find interesting.

Doesn't work for every language, though =P

Comment · 4 years ago
If you want to handle the error and also bubble it up, maybe even changing the what error bubbles up, you can just return an error from within the catch block after doing whatever handling you want. Either the captured error or something else.

Specifically for recursive descent parsers, I pass around a reference to an regular struct that acts as an ErrorInfo object, and use that to pass diagnostic information up the stack. Control flow is still managed by the error returns, any additional info goes in the parameter.

There is (was?) a proposal to add that capability to the language but Im not sure it had much traction.

Comment · 5 years ago
It can also be an artifact of a foreign language. The french interrogatory form can be the same as the declarative. It seems likely in this case, their use of "therefore" is equivalent to the fench "alors" which is often employed to "interrogate a declaration"
Comment · 5 years ago
There are a few similar open source projects, like Tic-80 and Liko-12. Both can be programmed with Lua, but Tic-80 can also be programmed with others like Javascript and Wren and the porting process can be fairly simple.
Comment · 5 years ago
Comment · 5 years ago
Comment · 5 years ago
The standard library has a General Purpose Allocator that can catch some of the errors that ASAN can, like memory leaks.
Comment · 7 years ago
Comment · 7 years ago
I forked a project, didn't even realize it didn't have a license. I'll ask the original creator to decide.
Comment · 7 years ago
More than one person has mentioned this. Maybe an audio cue will make it more obvious it's on purpose...
Comment · 7 years ago
Thanks for the feedback. I've reworked the page so that it's less likely that the game does not fit in a screen without scrolling - not ideal, but it'll help!
Comment · 7 years ago
This is actually a port of the demo made by Andrew Kelley, which was originally written for the desktop using GLFW.

My plan is to integrate my changes into the original project so that it can export to desktop and web.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton