Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
kbd
5y ago
> Our friend Sven Guckes died in Berlin on February 20, 2022. > He was diagnosed with a brain tumor in December 2021. Sheesh so fast... scary. RIP.
122.
▲
by
kbd
5y ago
> Now you can focus on if err return err instead. Yes that is indeed the next most-frustrating thing about Go! In the last Go language survey ( https://go.dev/blog/survey2020-results ), about 90% of people wanted gene
123.
▲
by
kbd
5y ago
I can not wait to never have to type interface{} again.
124.
▲
by
kbd
5y ago
Agree, I bought some merch from the author as thanks :)
125.
▲
by
kbd
5y ago
<opinion>They are not helpful and only serve to obscure...</opinion> Personally -- after originally thinking like you -- I really enjoy ligatures in my code. I disable them for my terminal though. The same font can work bot
126.
▲
by
kbd
5y ago
$ brew tap-info "homebrew/cask-fonts" --json | jq -r '.[].cask_tokens[]' | rg victor homebrew/cask-fonts/font-victor-mono-nerd-font homebrew/cask-fonts/font-victor-mono
127.
▲
by
kbd
5y ago
Highly recommend Fantasque Sans Mono for a realistic take on the "comic-style" coding font - https://github.com/belluzj/fantasque-sans
128.
▲
by
kbd
5y ago
Unfortunately not available to compare on https://www.programmingfonts.org/ While I'm here: Victor Mono has been my programming font of choice for a while now: https://rubjo.github.io/victor-mono/
129.
▲
Using Zig to Build Native Lua Scripts
(cone.codes)
10 points
by
kbd
5y ago
|
1 comments
130.
▲
by
kbd
5y ago
Building a database is such a hard undertaking. I have to give a shoutout to RethinkDB, which also had cool tech and also failed commercially. And then if you have success as open core, AWS will just fork and offer a hosted version of your
131.
▲
by
kbd
5y ago
I'm super bullish on Zig, but it's a bit early to bank on for production things as the language is still changing/being developed. To give another example of where this came up: they were discussing using Zig for the Ruby JIT
132.
▲
by
kbd
5y ago
Yeah that's why I was asking about Cue's eventual goals with libraries like Serde. I assume eventually they'd like to be able to auto-generate type definitions for a target language, but I don't know. > Cue does not d
133.
▲
by
kbd
5y ago
As has come up in this thread already, any discussion of typed config languages nowadays that doesn't mention Cue ( https://cuelang.org/ ) seems incomplete. They really seem to be tackling the problem in a thorough way.
134.
▲
by
kbd
5y ago
Happy to hear about xh, thanks for mentioning it. I recently ran into a problem where HTTPie didn't support HTTP/2, so I had to fall back to curl. The ticket for HTTP/2 in HTTPie is still open https://github.com&#x
135.
▲
by
kbd
5y ago
The page actually says that jo was an inspiration for the syntax supported.
136.
▲
by
kbd
5y ago
This reads like it was written by a bot… except for spelling errors. I can’t even tell what it’s supposed to mean.
137.
▲
by
kbd
5y ago
I’m disappointed by the HN crowd in this thread. Almost nothing brought up as a “similar tool” to Cog actually does what Cog does. Except ‘ot’ who gets it because they actually implemented something similar. I guess this is evidence of Cog’
138.
▲
by
kbd
5y ago
That doesn’t seem similar to Cog, in that it doesn’t maintain the templating code in the output.
139.
▲
by
kbd
5y ago
You haven’t taken the time to understand what Cog does. It’s not equivalent to a tempting engine like Jinja or PHP… or f-strings.
140.
▲
by
kbd
5y ago
I’ve been using ptpython for a while because of its autocompletions. Really excited for that to come to ipython, but from a quick comparison ptpython’s still seems a bit better. You get automatic dropdowns where you have to hit tab in ipyth
141.
▲
by
kbd
5y ago
Zig is full of good ideas and seems to be a truly serious attempt, by very talented developers, at improving the “C level” of the stack. I put my money where my mouth is and have a recurring donation to the Zig Software Foundation every m
142.
▲
by
kbd
5y ago
This is indeed a superficial article: > Rust vs Python: advantages > Rust is well-designed. Rust allows for putting statements in a lambda and everything is an expression, so it’s easier to compose particular parts of the language. Py
143.
▲
by
kbd
5y ago
> and if I want to know where an error come from, I need to wrap it in an errors.New() because no exceptions = no stacktrace Zig manages to provide traces with very little overhead: https://ziglang.org/documentation/
144.
▲
by
kbd
5y ago
> because eventually you have to do... Emphasis on eventually instead of at every single function call.
145.
▲
by
kbd
5y ago
This is fantastic. It'll make Go feel much less weird. eg from the diff: []interface{}{1, 2.0, "hi"} -> []any{1, 2.0, "hi"} Now that Go is going to have generics, all we need is sugar syntax for early retu
146.
▲
by
kbd
5y ago
Don't miss https://github.com/dandavison/delta . I use gui diff tools much less nowadays because I can get such great diffs in the terminal.
147.
▲
by
kbd
5y ago
Awesome, you made my day better knowing that it helped someone. Thanks for your comment! FWIW the rest of my (Mac-based) system config is all open source (both the files I linked are in the same repo) so feel free to steal anything else.
148.
▲
by
kbd
5y ago
If anyone cares, here's my config: https://github.com/kbd/setup/blob/master/HOME/.hammerspoon/i... It shows off a tiny bit of what you can do with Hammerspoon: - window and app managem
149.
▲
by
kbd
5y ago
The language used for this is incidental. The important part is all the OS interfaces exposed. If you know Python, you'll feel comfortable in Lua quickly.
150.
▲
by
kbd
5y ago
Comparing the "plugin hunt" between vim and zsh is a bit much. I use three for Zsh, just syntax highlighting, autosuggestions, and fzf-tab. I don't use a Zsh plugin manager.
More ›