Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ainar-g
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
511.
▲
by
ainar-g
8y ago
IIRC, 64 bits give you 200 years when you're counting nanoseconds. Why on Earth would they use a 32-bit integer? I doubt this was some kind of microoptimisation. My bet is on some sort of legacy component that is 64-bit-o-phobic.
512.
▲
by
ainar-g
8y ago
You made me curious, so I looked something up. According to the Russian Criminal Code, * Negligence resulting in a large economic damage: up to two years in prison. * Negligence resulting in more than two deaths or serious injuries: up to s
513.
▲
by
ainar-g
8y ago
>I ought to be able to generalize this I've never understood this. Unless you write a library that you plan to publish, or already have actual cases where you need a more general solution, why spending time trying to generalise code
514.
▲
by
ainar-g
8y ago
The only person from the original three creators who still actively takes part in the language's evolution seems to be Robert Griesemer. Ken Thompson is retired, and Rob Pike seems to have moved to other projects (Upspin?). Robert Grie
515.
▲
by
ainar-g
8y ago
I've always been fascinated by Wirthian languages. The radical simplicity, the focus on fast compilation and programmer productivity. One question I haven't researched enough is, how did the people at ETH Zürich used Oberon for OS
516.
▲
Notes on the Go2 Generics Draft
(jmoiron.net)
148 points
by
ainar-g
8y ago
|
114 comments
517.
▲
by
ainar-g
8y ago
For anyone wondering about what's wrong with mouse testing, here is a funny but informative video on the subject[1]. One highlight: >After a drug is confirmed as safe and efficacious in preclinical studies, it is tested in healthy h
518.
▲
by
ainar-g
8y ago
>Go's GC is not generational today, AFAIK. It isn't, and will probably never be. The Go runtime developers have actually implemented and tested a generational GC, but found that it's not useful, and even harmful at times,
519.
▲
by
ainar-g
8y ago
>I was upset because the design of NPM assumes things that just aren't true in general: >People perfectly understand and apply semantic versioning (see also: compatible versioning). Doesn't any dependency management tool a
520.
▲
by
ainar-g
8y ago
>Good luck getting 9p to work reliably faster than NFS... Could you elaborate on that? From what I've heard (in my echo chamber), NFS is "complex, slow, and unreliable" while 9P2000 is "simple, fast, and reliable"
521.
▲
by
ainar-g
8y ago
>Not standardised. Technically there is RFC4180[1], but yeah, CSV has a lot of flavours. I remember a story about how Excel couldn't correctly open a CSV file because it had a header that had "ID" as the first field name,
522.
▲
by
ainar-g
8y ago
Uriel, the creator of this page, has committed suicide in 2012[1]. As far as I know, the website hasn't seen that much support since then. We could only guess, what he would've added to the list today. My favourite page is the one
523.
▲
by
ainar-g
8y ago
The article[1] linked in the OP is an interesting read of its own. [1] http://strikemag.org/bullshit-jobs/
524.
▲
by
ainar-g
8y ago
Not saying that you are doing something wrong, but the AWS case kinda sounds like it will eventually grow to be a table of its own to me. Tomorrow the manager/architect/client comes and tells you that you need to associate some da
525.
▲
by
ainar-g
8y ago
The reason I don't use SQL enums is that I often can't tell exactly, how many and what values there will be when designing the database schema. Over a period of a few months an "enum" can grow from three to a dozen value
526.
▲
by
ainar-g
8y ago
This might actually be addressed, albeit very quickly, in one of drafts: https://go.googlesource.com/proposal/+/master/design/go2draf... . >To implement formatting a tree of errors, an error list type
527.
▲
by
ainar-g
8y ago
They are. Further in the draft there is an example: var x []int total := Sum(x) // shorthand for Sum(int)(x)
528.
▲
by
ainar-g
8y ago
In the Error Values Draft Overview[1], rsc provides another argument against traditional exceptions: >As a cautionary tale, years ago at Google a program written in an exception-based language was found to be spending all its time genera
529.
▲
by
ainar-g
8y ago
What about sum types? During 4 years I've been programming Go professionally I missed sum types more times than I missed generics. Writing yet another interface SumType { isSumType() } won't kill me, but it does get
530.
▲
by
ainar-g
8y ago
Does this increase the likeliness that we need a bigger collider to finally reach new physics?
531.
▲
by
ainar-g
8y ago
It works, but you can actually disable the translation in the settings, or make it show after you've answered.
532.
▲
by
ainar-g
8y ago
For anyone who wants to use spaced repetition for learning languages, I recommend Clozemaster[1]. It uses the cloze deletion technique and has thousands of sentences for most languages. Using it has significantly improved my German. [1] ht
533.
▲
by
ainar-g
8y ago
It's funny how these things are so personal. I love Godoc, mostly because everything is on one page, with very little JS and a good, almost monochrome colour palette. At the same time, I really can't stand Rust's docs, beca
534.
▲
by
ainar-g
8y ago
It will be very interesting to see, what will using Go 2 generic code from Go 1 code look like.
535.
▲
by
ainar-g
8y ago
Which reminds me of the picture[1] on the cat-v.org section about XML. [1] http://harmful.cat-v.org/software/xml/xml_ascent.png
536.
▲
by
ainar-g
8y ago
There is a draft of JSON schema: http://json-schema.org/ . And there are working implementations.
537.
▲
Ask HN: How to rest to actually feel refreshed?
3 points
by
ainar-g
8y ago
|
2 comments
538.
▲
by
ainar-g
8y ago
A lot of these are so accurate it's uncanny.
539.
▲
by
ainar-g
8y ago
Russ has explicitly written that yes, redefining v1 in terms of v2 is not only the way to go, but in the future it might help automatise the switch to v2 with the "go fix" command. See https://research.swtch.com/vg
540.
▲
by
ainar-g
8y ago
Ech. I will prefer GOPATH over the hell that are C/C++ include paths any day of the week. How many are there on a modern Linux system? Six? Holy hell, it's eight! $ gcc -xc++ -E -v - #include <...> search starts here:
More ›