Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benhoyt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
421.
▲
HTML over the wire (2020)
(m.signalvnoise.com)
2 points
by
benhoyt
6y ago
|
0 comments
422.
▲
by
benhoyt
6y ago
Yeah, definitely. Though note that LINQ is new syntax (at least with "query" syntax; see https://stackoverflow.com/a/823155/68707 ), whereas this co-opts existing Python syntax. LINQ is quite a lot nicer
423.
▲
by
benhoyt
6y ago
Plenty of people write literal parsers in Python, for things like HTML template languages -- however, that's not really related to macros. The most crazy thing I've seen along these lines (but it leads to really nice syntax) is Po
424.
▲
by
benhoyt
6y ago
Yes, I remember, thank you! That's how I got started with go-fuzz.
425.
▲
by
benhoyt
6y ago
It's because the Go philosophy is "tests are code", so you use the standard language features like != instead of a whole new domain-specific language that you have to learn. I've written more about that here: https:
426.
▲
by
benhoyt
6y ago
Go tests and benchmarks are so easy to write and run: just add TestFoo and BenchmarkFoo functions to a bar_test.go file, and "go test" does the rest. It's currently doable, but it requires a 3rd party library (go-fuzz) and a
427.
▲
by
benhoyt
6y ago
I think the reason Go is usable compared to early Java is because it does have generics for the builtin types -- slices (growable arrays), maps, and channels -- and for the builtin functions that operate on these types. And you can get real
428.
▲
by
benhoyt
6y ago
ZZT holds a special place in my heart. I played the shareware "Town of ZZT" as a teenager, made my own (very incomplete) worlds, and had fun with the programming language, ZZT-OOP -- a very quirky beast. Every few years I have a s
429.
▲
by
benhoyt
6y ago
A good learning resource is Jonesforth (something of a classic), on GitHub here: https://github.com/nornagon/jonesforth/blob/master/jonesfort... I wrote several Forth compilers when learning to code as a
430.
▲
by
benhoyt
6y ago
Nice! I suspect you're in a minority of developers who need this level of control, though. I don't think I've ever used "unicode" directory, though I reach for "unicode/utf8" often enough.
431.
▲
by
benhoyt
6y ago
I don't exactly know how production-ready it is, but there's https://pkg.go.dev/modernc.org/sqlite , which is an automated transliteration of SQLite's C code to Go, so that it can be used with CGo.
432.
▲
by
benhoyt
6y ago
I'm curious -- what have you needed from Unicode 13 that wasn't in the previous version of Go? (Presumably new codepoints still work fine, as long as you're just passing characters through, and not relying on the categorizati
433.
▲
by
benhoyt
6y ago
I'm looking forward to them, and definitely agree it's a great feat of software engineering ... though I'm not sure about "testament to the open source process". Go is open source, but most of the core developers ar
434.
▲
Good Ideas, Through the Looking Glass (PDF, 2005)
(people.inf.ethz.ch)
37 points
by
benhoyt
6y ago
|
3 comments
435.
▲
Coming in Go 1.16: ReadDir and DirEntry
(benhoyt.com)
1 points
by
benhoyt
6y ago
|
0 comments
436.
▲
Understanding Progressive Enhancement (2008)
(alistapart.com)
8 points
by
benhoyt
6y ago
|
2 comments
437.
▲
by
benhoyt
6y ago
Smaug is in The Hobbit, a different adventure.
438.
▲
by
benhoyt
6y ago
At least when I used it ~2 years ago: an extremely complex type system with a huge learning curve (unless you're going to just write Java in Scala), poor documentation, and a very slow compiler. That's to say nothing of the JVM-ba
439.
▲
Coming in Go 1.16: ReadDir and DirEntry
(benhoyt.com)
2 points
by
benhoyt
6y ago
|
0 comments
440.
▲
by
benhoyt
6y ago
I thought the same thing (Go binaries are so easy to distribute), but they do explain that their devs already have credentials for an internal NPM server, and they wanted to do this "without the need of distributing a new set of tokens
441.
▲
by
benhoyt
6y ago
The release notes (linked) are the interesting part: https://tip.golang.org/doc/go1.16
442.
▲
Stupid Light Software
(arp242.net)
2 points
by
benhoyt
6y ago
|
1 comments
443.
▲
by
benhoyt
6y ago
The OP's comment resonates with my experience: I'm a Kiwi who's had family members immigrate, as well as talked to many friends and individuals who are trying to immigrate. It's definitely an immigrant-friendly culture (
444.
▲
by
benhoyt
6y ago
Indeed -- such a beautiful and concise book. After the first one or two chapters you know all of the AWK language, and then the rest of the book is making the knowledge practical with interesting examples (that's my memory of the book,
445.
▲
by
benhoyt
6y ago
Not a bad analogy, but the taxi also comes with a driver, which makes it expensive but allows you to get work done in the back while you're en route. It'd be like a cloud provider that came with a devops person dedicated to you.
446.
▲
by
benhoyt
6y ago
Yes, most definitely. It's an excellent book, and the language has changed almost zero (the libraries a little, but not enough to worry about). The only addition that might be nice would be "modules". Link for the lazy: http
447.
▲
by
benhoyt
6y ago
Yeah, though a solution is in the works, and looking pretty likely to happen. Here's the official draft design for generics or "type parameters" in Go: https://go.googlesource.com/proposal/+/refs
448.
▲
Optimizing a Code Intelligence Indexer
(about.sourcegraph.com)
1 points
by
benhoyt
6y ago
|
0 comments
449.
▲
Even in Go, concurrency is still not easy
(utcc.utoronto.ca)
106 points
by
benhoyt
6y ago
|
122 comments
450.
▲
Fuzzing in Go
(lwn.net)
23 points
by
benhoyt
6y ago
|
0 comments
More ›