Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Vendan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
Vendan
7y ago
One way to work around that is to use interfaces ( https://play.golang.org/p/aAEAi8GvDkv ), but either way, you are "shadowing" the type, and can no longer use the .TraceID in the second function cause it'
62.
▲
by
Vendan
7y ago
Speak for yourself, Go is a bastion of formatting sanity for me cause they chose (correctly) to use tabs. Tabs for indentation are the obvious choice to improve code readability and accessibility for people that want different indent sizes
63.
▲
by
Vendan
7y ago
Yeah, but what you are feeling with the "click" is not directly physical. Turn your computer completely off (not just power off, but like, "hold the power button" hard shutdown, and that "click" will stop happ
64.
▲
by
Vendan
7y ago
or just "Better has multiple dimensions", and not all of them are "Theoretically purer" or "look how succinct I can write this code". "How hard is it to hire devs?" is just one of those dimensions.
65.
▲
by
Vendan
7y ago
Compiler perspective (fast compiles are a core part of Go, IMO), various tradeoffs(fast compile? fast runtime? binary size? Pick 1 or 2), and seeing code bases that get out of control with generics and such. Note that, for all of that, I&#
66.
▲
by
Vendan
7y ago
What is it when you know about the power of features of the "higher level" languages, like generics, but still chose the "blub language" because of other reasons, like ease of hiring devs?
67.
▲
by
Vendan
7y ago
And yet, the core devs have never said they don't want generics, only they didn't want a poor implementation. Also, there's a bit of hilarity about commenting this on a blog.golang.org where the first sentence is "This a
68.
▲
by
Vendan
7y ago
Chiming in as a fervent Go dev that's also a huge fan of generics: Generics are awesome, but always seem to add a ton of complexity. Everyone starts with just "oh, `func Reverse(slice []T)` is so obvious" kind of thing, but
69.
▲
by
Vendan
7y ago
The Mycroft Home stuff covers Google Speech to Text, so I'm betting that overall speech processing is done in the cloud, though I'm sure wake-word detection is done locally. https://mycroft.ai/documentation/ho
70.
▲
by
Vendan
7y ago
as far as I can tell, it's cause they are hardcore JS devs, where JSON is seen as almost a part of the language, and little to no effort was put into things like future-proofing. A lot of the failings have been fixed as the community
71.
▲
by
Vendan
7y ago
Don't worry, multiple people (including me) have told the community in question that it's a flawed approach. Doesn't seem to have done much to fix it though... :shrug:
72.
▲
by
Vendan
7y ago
https://tc39.es/ecma262/#sec-json.stringify The stringify function returns a String in UTF-16 encoded JSON format representing an ECMAScript value, or undefined.
73.
▲
by
Vendan
7y ago
At least when I implemented it, it was the full message, as a complete valid json object. The signature would get added as another field, and then the object reserialized.
74.
▲
by
Vendan
7y ago
SSB signs objects like so: { "previous": "%XphMUkWQtomKjXQvFGfsGYpt69sgEY7Y4Vou9cEuJho=.sha256", "author": "@FCX/tsDLpubCPKKfIrw4gc+SQkHcaD17s7GI6i/ziWY=.ed25519", &q
75.
▲
by
Vendan
7y ago
As one of the people that built a alternative implementation, this is completely true, but also much worse, cause there were 2 things around crypto, signing and hashing, and one encoded it one way, and the other encoded it a different way (
76.
▲
by
Vendan
7y ago
Propane fridges actually burn the propane for heat, so it's not using it as a "refrigerant", just as a heat source.
77.
▲
by
Vendan
8y ago
Yeah, and I've been in a similar situaton. A year in, and my wife told me I needed to get a new job cause that one was making me "depressed"
78.
▲
by
Vendan
8y ago
If I worked on something for 5 years with no rewrites/improvements, I'd be demotivated as crap, no matter the version number...
79.
▲
by
Vendan
8y ago
You can just do found[key] = struct{}{}
80.
▲
by
Vendan
8y ago
It's worth noting that ignore/report is for the email server it's destined for. The server is supposed to send reports back to google (mailauth-reports@google.com specifically) about the failures and such.
81.
▲
by
Vendan
8y ago
But it can work for individual addresses as well. For instance, gmail uses DKIM. If they only DKIM sign an email if the user is logged in as the address they are trying to send as, then boom, DKIM is proof that the email from is not forge
82.
▲
by
Vendan
8y ago
This is a thing: DKIM. Lets email servers and domain owners attest that a message was sent by them. For instance, gmail can apply a DKIM to all outbound emails, to verify that it's sent by gmail, and that they authenticated the person
83.
▲
by
Vendan
8y ago
5 characters is "pretty simple to bruteforce" area, and now you've got 5 characters, replicate that for the other patterns, and you can probably crack the whole password pretty easy
84.
▲
by
Vendan
8y ago
I'd recommend something like this: https://www.amazon.com/OXO-Grips-No-Spill-Silicone-White/dp/... The ice "slots" get completely sealed with the silicone, and I have stuck it in on it's side a
85.
▲
by
Vendan
8y ago
Google blocking this kind of thing in android would be quite hard to near impossible...
86.
▲
by
Vendan
8y ago
secure password auth trumps "give full access to stranger" auth any day of the week....
87.
▲
by
Vendan
8y ago
Not only is it completely possible, pretty sure it's already been done.... https://github.com/stuicey/SSHy
88.
▲
by
Vendan
8y ago
60% water, so it depends on what the other 37% is
89.
▲
by
Vendan
8y ago
yeah, but which way? `Add custard powdered sugar to my shopping list` is is powdered custard, or powdered sugar?
90.
▲
by
Vendan
8y ago
Eels. My hovercraft is full of eels. http://www.omniglot.com/language/phrases/hovercraft.htm
More ›