Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
levodelellis
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
levodelellis
4y ago
I'm not familiar with those
122.
▲
by
levodelellis
4y ago
Usually I don't reply to rude comments but why would someone bother to steal zig and call it zen? https://zen-lang.org/ja-JP/docs/ch04-defer-errdefer/
123.
▲
by
levodelellis
4y ago
I'm not sure what details you want. The easy one to explain is itoa. Since 64bit ints can be at most 20 digits the function returns a fixed length array. Currently it's u8[21] because I've wanted an extra byte for null (for t
124.
▲
by
levodelellis
4y ago
Yes self referential data structures are forbidden. No threading at the moment.
125.
▲
by
levodelellis
4y ago
The first sentence explains why. You don't need to be a jerk
126.
▲
by
levodelellis
4y ago
> I think it could use some side-by-side examples to show how it makes ordinary programming easier/more readable/etc. That's a fantastic idea. I'll focus to improve this by the next release. Do you want short side by
127.
▲
by
levodelellis
4y ago
I'll explain why there's a EULA and write another comment for the rest At the point that it was clear we're going to have a usable compiler I asked my entire team what license we should release this under. Absolutely everyone
128.
▲
by
levodelellis
4y ago
Thank you
129.
▲
by
levodelellis
4y ago
Would you accept a short answer? The 'short' answer is the compiler tracks various things such as memory owner (for alloc) and lifetime (for constructors/destructors). The compiler enforces rules so it's clear (to the co
130.
▲
by
levodelellis
4y ago
I won't speak for teammates but I found everytime I list features people don't really think about it. Maybe it's because they never seen it so they never thought about it and as a consequence don't think it's notewo
131.
▲
by
levodelellis
4y ago
Funny that you wrote `break if v == 11`. In a prototype I wrote 5 years ago (to learn syntax handling) I implemented this. What ended up happening is if I could do `break if ...` then I'd wanted to do expr if. Like `fn() if v == 1`. Bu
132.
▲
by
levodelellis
4y ago
Whenever my compiler comes up the first question tends to be why? I found that everyones "why" are specific. Some people want to know how many libraries exist, others want to know specifically how many high level (or low level) li
133.
▲
I've been designing a language since 2009 – friends and I implemented a beta
(bolinlang.com)
47 points
by
levodelellis
4y ago
|
80 comments
134.
▲
by
levodelellis
4y ago
I remember reading this back in the day. It put what I was doing into words better than I could
135.
▲
by
levodelellis
4y ago
I see. I should check again because things can change but my app is performance sensitive and when I checked last it seemed to give myself a boost since I was writing to the memory so quickly. One of the reasons why I use MAP_GROWSDOWN is b
136.
▲
by
levodelellis
4y ago
This is great If you like I can run pledge against my more complicated app to see if it complains. I did it on a simple app and it seemed to not like how I used memory map (MAP_PRIVATE | MAP_ANONYMOUS | MAP_POPULATE). I also do MAP_PRIVATE
137.
▲
by
levodelellis
4y ago
I think I would have prefer the scroll being correct, it would have made the discovery more rewarding. Good video
138.
▲
by
levodelellis
4y ago
I read the original write up by Max Kellermann, it's a fun read. I think I'll refresh my memory and read this write up before bed tonight. It's an interesting vulnerability