Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Vendan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
Vendan
9y ago
GCC compiles C to assembly, and then uses GAS to turn that into actual machine code... So is GCC a transpiler, and GAS the compiler?
182.
▲
by
Vendan
9y ago
Gold plated is useful because gold doesn't rust, and still conducts decently.
183.
▲
by
Vendan
9y ago
I think that would be part of the FFIEC https://www.ffiec.gov
184.
▲
by
Vendan
9y ago
Wake word logic is not the hard part, you can do it in software relatively cheaply (cmusphinx/pocketsphinx handles wake word type logic in realtime with relatively low cpu requirements) Microphone quality is an issue, but there's
185.
▲
by
Vendan
9y ago
You'd imagine, but as someone that's tried, voice recognition is just one part of it, and is a rather hard problem in terms of computing power required. Note that the linked DeepSpeech stuff is a tensorflow based solution, and on
186.
▲
by
Vendan
9y ago
which, by spec, only allows breaking the word if the word is too long to fit on a line by itself. You'd need like a 1 inch wide screen to hit that edge case from what I've been testing.
187.
▲
by
Vendan
9y ago
only if the word is too long to fit on a line by itself. If the browser is breaking it at the end of a line instead of flowing it to the start of the next line, then it's in violation of the spec.
188.
▲
by
Vendan
9y ago
> The document itself could be made more readable by choosing to break lines at word boundaries, not in the middle of words. What browser are you using? I see none of this happening, and looking at the source code, it's just blocks
189.
▲
by
Vendan
9y ago
That's not an upside. That's a downside that got parlayed into an upside.
190.
▲
by
Vendan
9y ago
That's a downside of physical, not an advantage.
191.
▲
by
Vendan
9y ago
I once had a phone with a removable back, and a special case designed to hold a massive battery in place without the back plate. Sucker was almost like a brick in your hand, but I've got huge hands, and I LOVED the fact that my batter
192.
▲
by
Vendan
9y ago
But you have to quantify the max-min, cause it's quite easy for the data to make that way more expensive then "merge then sort". I.e., run your algo on [[0, 1000000000], [1, 2]]
193.
▲
by
Vendan
9y ago
Nah, the trick is knowing that merging and then sorting isn't the best way.
194.
▲
by
Vendan
9y ago
But not as a physical desktop with a monitor, keyboard, and mouse.
195.
▲
by
Vendan
9y ago
That'd be applicable if TCP were a valid alternative. In many cases, TCP is not at all a valid alternative.
196.
▲
by
Vendan
9y ago
Go is multithreaded. Paying a small price to use multiple cores vs. only being able to use a single core? I'll take the multicore. It's not like concurrent lock-free datastructures are without cost...
197.
▲
by
Vendan
9y ago
It's a bad comparison, cause the Go version is using a "db" (key/value store) that tends to use quite a bit of memory.
198.
▲
by
Vendan
9y ago
JS is single threaded. Putting a mutex on one data structure is not going to reduce your performance significantly below single threaded.
199.
▲
by
Vendan
9y ago
No. There was a lot of effort put into things that make no sense in the go version, including using a concurrent, lockfree, snapshot iterating hash array, where they'd most likely have better performance in this case with a map and a
200.
▲
by
Vendan
9y ago
While I don't support what GP is advocating, JSON based apis are often horrible. Apis that return a list of objects or an object based on having >1 or 1 result are just horrifying, and that's just the start of how badly JSON g
201.
▲
by
Vendan
9y ago
Better pattern is http://eagain.net/articles/go-json-kind/ Then you do one switch to get the correct message type to decode into, and boom, you can just `.Run` or `.Handle` or however you design the interface, and
202.
▲
by
Vendan
9y ago
http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...
203.
▲
by
Vendan
9y ago
I did, and wrote some else in here, but a lot of it boils down to poor choices in the Go code. They're using an embedded K/V store designed for high read loads and are writing to it often, there's really complex concurrent l
204.
▲
by
Vendan
9y ago
interface{} is not reflection, and using both reflection and excessive amounts of interface{} are not a good idea in Go, and frankly, I don't see anything in this code that would require using either
205.
▲
by
Vendan
9y ago
As did Ryan Dahl, the creator of node.js https://www.mappingthejourney.com/single-post/2017/08/31/epi...
206.
▲
by
Vendan
9y ago
And now to get ranty: Boltdb was being handled badly: https://github.com/maxpert/raspchat/blob/79315d861968c126670... You should be using bolt's helper funcs, so you don't forget to close the transa
207.
▲
by
Vendan
9y ago
One thing to note is that they were using boltdb, which is an in process K/V store designed for high read loads, and doing a lot of writes to it. boltdb also tends to use a lot of memory, as it's using a mmap'd file. The sw
208.
▲
by
Vendan
9y ago
Go's crypto libs are pretty well made, and the ssh libs are less crypto and more "here's an interface similar to os/exec that lets you run commands on a remote system"
209.
▲
by
Vendan
9y ago
As a dev who uses an editor I wrote myself... not having an undo button sucks, and is not terribly simple to build... and I have no one to blame but myself...
210.
▲
by
Vendan
9y ago
Go can do almost the exact same thing, in fact, it's baked into the stock http server library.
More ›