Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alain_gilbert
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
alain_gilbert
1y ago
Because it's annoying to have to implement it every time you make a one off script (or small projects) among other things. And it is usually a pretty basic iterator standard to have it so that someone maybe not as familiar with concept
32.
▲
by
alain_gilbert
1y ago
My two mains "why tf is this not built-in" are: "Why are tuple not Hashable ?!" Which means that you cannot have a tuple of Int `(1, 1)` as a key in a dict, and you have to make a struct that implement Hashable instead.
33.
▲
Golang Generic Mutex
(github.com)
2 points
by
alain_gilbert
1y ago
|
1 comments
34.
▲
by
alain_gilbert
1y ago
I submit again this library that I made since I added the much needed "value mutex" that do not need to be initialized (like you would use a normal sync.Mutex) Single file, easily copyable in your project, providing generic strong
35.
▲
by
alain_gilbert
2y ago
git repository of this project -> https://github.com/cgzirim/seek-tune
36.
▲
by
alain_gilbert
2y ago
I think you have some bugs. I ran it on my project which has 60 direct dependencies in my "go.mod" file, and feluda's output says `Total dependencies scanned: 2` EDIT: there was a package.json in the same folder, that's
37.
▲
by
alain_gilbert
2y ago
I'm just curious, if I was to run my application on a linux server. How would I ever know what caused the crash? when I compile using `swiftc main.swift` and run with `./main`, the error seems even more useless. all I get is:
38.
▲
by
alain_gilbert
2y ago
that's not related to the symbolizer thing. It seems to just be part of the "index out of range" crash. I get the same thing without using the symbolizer. zsh: illegal hardware instruction swift main.swift
39.
▲
by
alain_gilbert
2y ago
Here is the output with the environment variable set. https://pastebin.com/8M9Dbrgj This doesn't provide anything useful either.
40.
▲
by
alain_gilbert
2y ago
If I follow the advice https://pastebin.com/8M9Dbrgj Not sure how that's any better... I still have no idea that the error occurred on line 2
41.
▲
by
alain_gilbert
2y ago
Swift is a really cool language. But one thing that blows my mind is that if you ever encounter an "index out of range" error, the (massive) error message that you get doesn't tell you anything about where this error occurred
42.
▲
by
alain_gilbert
2y ago
yeah, totally agree, it's so hard to type `git rebase --abort` (?)
43.
▲
WinSweeper – macOS minesweeper game that guarantees a win with perfect play
(github.com)
1 points
by
alain_gilbert
2y ago
|
1 comments
44.
▲
by
alain_gilbert
2y ago
A minesweeper game, but you always win if you play perfectly. Whenever you are forced to make a decision, the game will shift the odds in your favor. If you happen to click on a mine, the game will move it — but only if there are absolutely
45.
▲
by
alain_gilbert
2y ago
`if you have ever looked at a database created by a ORM` You do realize that you can make your own migrations using raw SQL, and still use the ORM with your tables?
46.
▲
by
alain_gilbert
2y ago
I never understood why people are so stubborn about hating on orm. For example I'm familiar with https://gorm.io and it does save me a lot of time and useless boilerplate. And guess what, if I ever need to make a complex qu
47.
▲
by
alain_gilbert
2y ago
Should add "rust" in the title, so that we know what the article is talking about. If you're one of the "rust/go in title" haters... please go rage somewhere else.
48.
▲
A saner way to use mutex in Golang, using generics
(github.com)
2 points
by
alain_gilbert
3y ago
|
1 comments
49.
▲
by
alain_gilbert
3y ago
Golang generic mutex that looks a bit like rust Mutex<T>
50.
▲
by
alain_gilbert
3y ago
https://github.com/charmbracelet/vhs/blob/main/record.go#L22 I was looking at the code, and it seems like you could put a low value for this and it would do what you want. I did not try it though &#x
51.
▲
by
alain_gilbert
3y ago
I'm curious, given the fact that they have physical access to the device, would it be possible to clone the hard drive as it is on multiple devices, and then brute force the passcode in parallel?
52.
▲
by
alain_gilbert
3y ago
Title is missing "(with Go)". Not sure why it was removed, that makes the whole thing much more interesting to me.
53.
▲
by
alain_gilbert
4y ago
I don't see what is illegal in putting whatever you want on your own server...
54.
▲
by
alain_gilbert
4y ago
osx has Ctrl+Shift+G to quickly paste a path to go to
55.
▲
by
alain_gilbert
4y ago
Maybe they completely deactivated the sim card, I don't really know. The phone just doesn't even connect to a network anymore. In which case, I wonder if I actually just lost my phone number altogether(?)
56.
▲
by
alain_gilbert
4y ago
Funny thing that happened to me recently. I'm having a prepaid plan with att, and I did not pay it for a while. Recently I needed to get a text message so I went on the att prepaid website to reactivate the plan for the month so that I
57.
▲
by
alain_gilbert
4y ago
I'd give the complete opposite advice. I use "go to definition"/"find references" to go all around the code base and at the same time try to figure out how each files interact with each others.
58.
▲
by
alain_gilbert
4y ago
> People will just copy-paste your example code. > People will not read the docs. Reminds me of a pull request I made a while ago https://github.com/krisajenkins/yesql/pull/151/files The first piec
59.
▲
MCQ – Minecraft Query, is a Go library to query anything in a Minecraft world
(github.com)
2 points
by
alain_gilbert
4y ago
|
1 comments
60.
▲
by
alain_gilbert
4y ago
Hey HN, I made MCQ because there is a treasure hunt going on in Loony_MC first world, and I wanted a quick way to extract all books, signs, or anything that a human could put in a minecraft world to convey information. This library allows y
More ›