Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alain_gilbert
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
alain_gilbert
2mo ago
The other day, I told claude that my physical wifi door unlock push buttons is a security risk because someone could run away with it and then unlock the door from outside whenever he wants. Then I told it that I want to introduce a concept
2.
▲
by
alain_gilbert
5mo ago
I was actually thinking of making a similar app for hacker news comments. Should we all quit hacker news too?
3.
▲
by
alain_gilbert
10mo ago
reminds me of an project I made many years ago to manage dependencies in between repositories. So if project A was waiting for a fix in project B to be in production, you could draw a line between the two commits (from project A to project
4.
▲
by
alain_gilbert
10mo ago
I worked on a toy programming language (that compile down to golang), which is a fork of the go lexer/parser, but it changes how functions can only return one value allowing the use of Result[T]/Option[T] and error propagation ope
5.
▲
by
alain_gilbert
11mo ago
@tinfoilhatter if that's the example of an `hostile and abrasive member of the Nim community` looks to me like the nim community is doing just fine.
6.
▲
by
alain_gilbert
11mo ago
> ...and views he expressed to me regarding climate change... Is that for real? I bet I can find some chocolate chip cookie recipe that the Go team would disagree with me. I ain't ever using Go again.
7.
▲
by
alain_gilbert
11mo ago
> Even after reading the article, it's not clear why that particular expression is so egregiously poor. I'm glad I'm not the only one wondering why this is not instant to type check.
8.
▲
by
alain_gilbert
11mo ago
Seems like it got fixed just now. Thanks for doing it. It looks much better now :)
9.
▲
by
alain_gilbert
11mo ago
I'm well aware of it. But I don't think I have ever seen an editor/website which would display it as 9 spaces. Github for example default to 4 spaces width.
10.
▲
by
alain_gilbert
11mo ago
I like how he kept "tabs" (and display it as 9 spaces) to make it as ugly as possible for the bad example, then proceed to use 4 spaces for the other examples.
11.
▲
by
alain_gilbert
11mo ago
61 dependencies, no codegen. Nothing special really.
12.
▲
by
alain_gilbert
11mo ago
I have a fairly small go project (100k loc) and it takes ~30sec to build. I'd be thrilled to have it build in 300ms. (Using a macbook pro 2019)
13.
▲
by
alain_gilbert
11mo ago
> Honestly, who cares about the difference between 1s vs 100ms vs 10ms for a build though? I definitely do. Not necessarily because of the 10ms vs 1s. But because of the later stage when it becomes 600ms vs 60s.
14.
▲
by
alain_gilbert
1y ago
I made winsweeper, which will move the mine if there is no safe tile left for you to discover. https://github.com/alaingilbert/winsweeper
15.
▲
by
alain_gilbert
1y ago
For case like this, I'd say your text editor should definitely just be able to tell you right away that this variable is a "string" when you mouse over it.
16.
▲
by
alain_gilbert
1y ago
Or if he was to use any kind of decent text editor, he could also just place his mouse over the variable and see the type it has. Then comes the hard part "where is it defined"... he could even press "command" and then c
17.
▲
by
alain_gilbert
1y ago
The most ironic thing is that if you search for "nazi programming language" you'll find gleam.
18.
▲
by
alain_gilbert
1y ago
That's why there is a "Tuple" expression that you can use instead, which allows you to easily return multiple values, and destructure them as well.
19.
▲
by
alain_gilbert
1y ago
I'm working on this programming language that compiles to Go. The goal is to have it behave like typescript for Go, where any Go program would compile out of the box, but then you can use the new syntax. Featuring: built-in Set/En
20.
▲
by
alain_gilbert
1y ago
Check out this toy project I made. It's basically a fork of the Go lexer/parser that adds Result/Option/Tuple/Set... propagation operators (and more) and it compiles down to Go code. https://github.com&#x
21.
▲
by
alain_gilbert
1y ago
I was also quite inspired by borgo. But unlike borgo, yes, at this time nil is part of the language, which allows you to use other libraries without the need to make laborious wrappers. But if I can manage to create a script to automaticall
22.
▲
by
alain_gilbert
1y ago
I haven't think much about it, a lot of things are probably going to change. I tried to get something working as fast as I possibly could, and in two weeks, lots of corners were cut to make it happen. Thanks for the feedback, it's
23.
▲
by
alain_gilbert
1y ago
Yes, I got my inspiration mainly from swift and a little bit from vlang as well. eg: the @LINE "Compile time pseudo variable" https://github.com/alaingilbert/agl/blob/8b656a385207e57fd0f... https:&
24.
▲
by
alain_gilbert
1y ago
I did use AI for the logo! Using Go libraries is still kinda rough, the standard library works fine, but for other libraries you'd need to (re) define the types manually. I'm trying to make something that would generate it all a
25.
▲
Show HN: AGL a toy language that compiles to Go
(github.com)
83 points
by
alain_gilbert
1y ago
|
13 comments
26.
▲
by
alain_gilbert
1y ago
I think I misread your original comment. We both seems to agree on the same things.
27.
▲
by
alain_gilbert
1y ago
I think you guys just made a bunch of low hanging fruits that are dead easy to make way better without too much effort. Which also provide the opportunity to maybe have a fairly successful project for the author of the rewrite project.
28.
▲
by
alain_gilbert
1y ago
I haven't seen anything about public/private properties/functions. So everything is public ?
29.
▲
by
alain_gilbert
1y ago
It is rare that you want to clear all the tiles that neighbors a flag itself. Usually you want to clear all tiles that touches, let say a "1" that is already touching a flag, and you can do just that by clicking that "1"
30.
▲
by
alain_gilbert
1y ago
In the same vein, I made "winsweeper" which will move the mine and let you win all the 50/50 IFF there is no more mines that you could find. https://github.com/alaingilbert/winsweeper
More ›