Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
svnpenn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
241.
▲
by
svnpenn
4y ago
great point. I am glad they took this into consideration.
242.
▲
by
svnpenn
4y ago
https://github.com/gorhill/uBlock
243.
▲
by
svnpenn
4y ago
> There is no global allocator in Zig > Zig has a global allocator that you’re encouraged to use wat
244.
▲
by
svnpenn
4y ago
I wish Rust would add this, but they don't seem interested at all: https://github.com/rust-lang/rustup/issues/1858
245.
▲
by
svnpenn
4y ago
Exactly why I don't use C anymore. Other languages like Go don't allow this stuff. https://go.dev/play/p/D2J6Y9ol41W
246.
▲
by
svnpenn
4y ago
Have you ever installed Visual Studio? I have. Even just the build tools DOWNLOADS 1-2 GB, as other user mentioned, which is still 10 times what you get with other options.
247.
▲
by
svnpenn
4y ago
Meanwhile, LLVM-MinGW is 108 MB: https://github.com/mstorsjo/llvm-mingw/releases
248.
▲
by
svnpenn
4y ago
The whole post is pretty obnoxious. Its literally "you made this? I made this": https://i.kym-cdn.com/photos/images/newsfeed/001/079/173/ed2...
249.
▲
by
svnpenn
4y ago
> WSL is still the best way to run crystal in windows. WSL is never the best way to do anything, unless the question is "what is the best way to emulate Linux on Windows?". In all other cases, WSL is literally the worst way to
250.
▲
by
svnpenn
4y ago
That just installs Visual Studio: https://github.com/neatorobito/scoop-crystal/blob/main/bucke... no thank you.
251.
▲
by
svnpenn
4y ago
> Check out the article on HN yesterday to see what your fellow users like and believe. https://news.ycombinator.com/item?id=32678501 I did check that link. It doesn't seem to support your argument. Can you be more
252.
▲
by
svnpenn
4y ago
> Windows support is pretty stable and almost complete by now. This isn't really a genuine statement. Currently Crystal Requires a full installation of Visual Studio on Windows: https://github.com/crystal-lang/c
253.
▲
by
svnpenn
4y ago
When I look at comparisons like this, one of the first red flags I check for is binary size. First SQLite: https://sqlite.org/2022/sqlite-tools-win32-x86-3390200.zip Result: "1,108,480 sqlite3.exe". Then Duck
254.
▲
by
svnpenn
4y ago
> If I ask the kinds of questions they'll answer, I get sneered at. If I ask the kinds of questions they say they want, I get ignored. Damn that is true. I actually have 94,000 rep on Stack Overflow, but I got banned for no reason.
255.
▲
by
svnpenn
4y ago
> The best way to get the right answer on the Internet is not to ask a question; it's to post the wrong answer. https://wikipedia.org/wiki/Ward_Cunningham#%22Cunningham's_L...
256.
▲
by
svnpenn
4y ago
I think I made my point known. Converting int to boolean is not a settled task, as different people might not agree on what the correct way is to do that. False could be zero, or negative one, or any negative number, or even one. So its bet
257.
▲
by
svnpenn
4y ago
It seems you ran out of actual arguments, sorry to hear that.
258.
▲
by
svnpenn
4y ago
gitoxide is a cool project, but it cant even clone yet: https://github.com/Byron/gitoxide/discussions/300
259.
▲
by
svnpenn
4y ago
> strip hello package main func main() { println("hello world") } then: go build -ldflags -s -gcflags all=-l hello.go ls hello result: Mode LastWriteTime Length
260.
▲
by
svnpenn
4y ago
the number 9, is not the same thing as "true". some people may want it to be, it might be convenient for some people if a compiler treats them as the same thing, but they aren't. In my opinion, its an anti-pattern to have the
261.
▲
by
svnpenn
4y ago
Cast int8 to int16 isn't the same thing as int to boolean. In the first case, you get the same number (ignoring wrapping issues). In the second case, you're asking the compiler to make an arbitrary decision about what numbers go t
262.
▲
by
svnpenn
4y ago
not really. Go has no concept of truthy: https://developer.mozilla.org/docs/Glossary/Truthy and I fully support that decision. If you want to use a boolean, you need to be explicit about it.
263.
▲
by
svnpenn
4y ago
In regards to Go, in most cases its a pointless optimization. Unless the string is quite large, its the same result. Go is nothing like C# in this case.
264.
▲
by
svnpenn
4y ago
personally I don't see a need for it, but I'm sure someone will do something dumb that requires it
265.
▲
by
svnpenn
4y ago
Yeah, you cant do that in Go, even explicitly: // cannot convert i (variable of type int) to type bool bool(i) youd need to use a function: func to_bool(i int) bool { return i != 0 }
266.
▲
by
svnpenn
4y ago
> Fennec to Fenix mobile extensions? Killed, you get these 10 blessed ones, don't worry, we will eventually re-enable all of the webextensions on mobile, any day now, (didn't happen, you have to do hacky hacks involving nightly
267.
▲
by
svnpenn
4y ago
> its like the age-old "+" vs "strings.Builder" debate for concatenation that's not even a debate. Have you done tests on this? If I remember right, once the string runs over the GC default (I think 1 GB), "
268.
▲
by
svnpenn
4y ago
RPL still allows commercial use, so you might as well just use GPL
269.
▲
by
svnpenn
4y ago
> I'm not sure I'm even the top code committer at this point you are, by a lot: https://github.com/caddyserver/caddy/graphs/contributors
270.
▲
by
svnpenn
4y ago
thats a semantic argument. "source available" is in practice the same thing as "open source", unless you are a business trying to make money off free software.
More ›