Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Hoppetosse
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
Hoppetosse
4y ago
Bob Nystrom describes his language Wren through number of semicolons, which I find interesting. Doesn't work for every language, though =P
2.
▲
by
Hoppetosse
5y 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 el
3.
▲
by
Hoppetosse
5y 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
4.
▲
by
Hoppetosse
5y 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.
5.
▲
by
Hoppetosse
5y ago
The @Vector provided is actually a reference to SIMD vectors and there has been discussion to rename it to something that reflects this more clearly. https://github.com/ziglang/zig/issues/7305
6.
▲
by
Hoppetosse
6y ago
In many ways, it already has. Zig has been under development for several years now and its syntax and semantics have change a lot since its first iterations. There are still some breaking changes coming that you can find at https:/&#x
7.
▲
by
Hoppetosse
6y ago
The standard library has a General Purpose Allocator that can catch some of the errors that ASAN can, like memory leaks.
8.
▲
by
Hoppetosse
7y ago
Zig was started with that exact use case at the forefront of its design. - Zig has no hard dependency on libc, it's the user's choice whether he wants to link it or not. It ships musl libc and can build/link it for most (all?
9.
▲
by
Hoppetosse
7y ago
I forked a project, didn't even realize it didn't have a license. I'll ask the original creator to decide.
10.
▲
by
Hoppetosse
7y ago
More than one person has mentioned this. Maybe an audio cue will make it more obvious it's on purpose...
11.
▲
by
Hoppetosse
7y 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!
12.
▲
by
Hoppetosse
7y 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.
13.
▲
Tetris clone written in Zig running on WebGL and WebAssembly
(raulgrell.github.io)
215 points
by
Hoppetosse
7y ago
|
69 comments