HackerTrans
トップ新着トレンドコメント過去質問紹介求人

alain_gilbert

no profile record

コメント

alain_gilbert
·3 か月前·議論
I was actually thinking of making a similar app for hacker news comments. Should we all quit hacker news too?
alain_gilbert
·8 か月前·議論
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 B) and get notified when the commit in project B gets into the "production" branch. And then merge and deploy your feature branch from project A.
alain_gilbert
·8 か月前·議論
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 operators `!` and `?`.

It has enums (sum type), tuple, built-in Set[T], and good Iterator methods. It has very nice type inferred lambda function (heavily inspired by the swift syntax)... lots of good stuff!

https://github.com/alaingilbert/agl
alain_gilbert
·8 か月前·議論
@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.
alain_gilbert
·9 か月前·議論
> ...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.
alain_gilbert
·9 か月前·議論
> 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.
alain_gilbert
·9 か月前·議論
Seems like it got fixed just now. Thanks for doing it. It looks much better now :)
alain_gilbert
·9 か月前·議論
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.
alain_gilbert
·9 か月前·議論
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.
alain_gilbert
·9 か月前·議論
61 dependencies, no codegen. Nothing special really.
alain_gilbert
·9 か月前·議論
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)
alain_gilbert
·9 か月前·議論
> 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.
alain_gilbert
·9 か月前·議論
[dead]
alain_gilbert
·10 か月前·議論
I made winsweeper, which will move the mine if there is no safe tile left for you to discover.

https://github.com/alaingilbert/winsweeper
alain_gilbert
·11 か月前·議論
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.
alain_gilbert
·11 か月前·議論
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 click on it.
alain_gilbert
·11 か月前·議論
The most ironic thing is that if you search for "nazi programming language" you'll find gleam.
alain_gilbert
·12 か月前·議論
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.
alain_gilbert
·12 か月前·議論
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/Enum/Tuple/lambda/"error propagation operators"

It also have a working LSP server and generates a sourcemap, so when you get a runtime stacktrace, it gives you the original line in your .agl file as well as the one in the generated .go file.

I recently finish porting all my "advent of code 2024" in AGL -> https://github.com/alaingilbert/agl/tree/master/examples/adv...

https://github.com/alaingilbert/agl
alain_gilbert
·12 か月前·議論
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/alaingilbert/agl