Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xmcqdpt2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
241.
▲
by
xmcqdpt2
3y ago
Yeah I would have thought they should have bought Datadog stock instead... but actually DDOG is down. I'd make a poor trader.
242.
▲
by
xmcqdpt2
3y ago
Someone is going to get a visit from the SEC...
243.
▲
by
xmcqdpt2
3y ago
I agree that there are no objective measure. I guess it's just different expectations. I would not say it's obvious what the machine is doing in the Go example though. For example it wasn't clear to me that append() mostly do
244.
▲
by
xmcqdpt2
3y ago
It's definitely less clear though, in that it involves an if statement with an assignment, three temporary variable declarations, etc. Also, type inference won't detect the type of the output automatically from the transform funct
245.
▲
by
xmcqdpt2
3y ago
Your example is very simple though. What's the go equivalent to x.map(fn).filter(predicate) ie returning a new collection of transformed items which is filtered by some predicate? Now we are talking more like 5-6 lines of Go.
246.
▲
by
xmcqdpt2
3y ago
It would be hard to trigger it in Java. All references are pass-by-value, so you would have to do something like creating an array, passing that array and then replacing an element in it in on every loop iteration. Unless I got something wr
247.
▲
by
xmcqdpt2
3y ago
It's common in France and ex French colonies to use "LAST NAME, First Name" on official documents, including resumes.
248.
▲
by
xmcqdpt2
3y ago
AFAIK the specific patterning and asymmetry of surrounding cells is what convinced the cells to form organs. The inhibition stops random cells in media from forming a big randomly configured organ, ie a tumor. Here is a paper about it, htt
249.
▲
by
xmcqdpt2
3y ago
It is absolutely necessary nowadays, yes. Our applications are often more complex than what people did in Java 1.5, Cobol, or C, and definitely need to be developed at a faster pace.
250.
▲
by
xmcqdpt2
3y ago
Yes, that would look awful in a court case IMO, > I demoed Box Sums to the Box Notes team at some point, and they nitpicked the UI and implementation details (“What if two people type in the same cell at the same time? They’ll just overw
251.
▲
by
xmcqdpt2
3y ago
> 1. Suppose the OP did not take the source code files, but memorized the source code and later recalled it from memory. Would that be theft? It is copyright infringement, yes. That's why clean room implementations are done by someo
252.
▲
by
xmcqdpt2
3y ago
> It's illegal. According to who? Sovereign states have their own laws, that's what makes them sovereign. You claim that companies wouldn't have done business in China (in the times before our current Second Cold War) had
253.
▲
by
xmcqdpt2
3y ago
Agree. Furthermore if you are going to split it, you want to make sure no one boxes a raw pizza because they added a bad switch statement or something, as that would be clearly bad. So if you want a split version than you should use types t
254.
▲
by
xmcqdpt2
3y ago
Sure, it's less testable BUT in the specific case at hand it's all mutations that need to be performed in a specific sequence. IMO if you are taking an object through a specific set of states, you either split that and use types t
255.
▲
by
xmcqdpt2
3y ago
> No one ever got busted for anti-trust violations by doing things that help support the competition. Actually anti-trust training I have gone through mostly emphasizes that you should never ever help the competition or talk to them, bec
256.
▲
by
xmcqdpt2
3y ago
I'm in a bank tech division and the training is mostly just "here is what antitrust looks like, contact legal and compliance if you ever feel like this apply to you." My guess is that if you contact them, they'll tell yo
257.
▲
by
xmcqdpt2
3y ago
> Java can be really fast and handle big codebases too, and it’s also been huge for long enough it can buy a beer, and it’s also getting a little hairy. IMO Java is so simple you can teach it to any programmer in a day or two. I'm n
258.
▲
by
xmcqdpt2
3y ago
Good point, I should probably check.
259.
▲
by
xmcqdpt2
3y ago
Yep the Hotspot JIT will absolutely allocate on the stack and reuse memory allocations inside loops. It also has escape analysis and it will detect you don't need the array of strings after the iteration. In that case it usually just a
260.
▲
by
xmcqdpt2
3y ago
I've written similar code before using absolutely bog standard idiomatic OOP Java. For a single threaded program I'd expect at least 1GB/s before any optimization. Most of the allocations in the loop that aren't the fina
261.
▲
by
xmcqdpt2
3y ago
Node.js has a decent JIT, or so I've heard. I have experience with the HotSpot JVM. For the JVM this code would absolutely stop allocating on the heap past 10k iterations of the loop. "Split a string then grab the parts in a hot l
262.
▲
by
xmcqdpt2
3y ago
By the way the very same code in Java would absolutely rip through the files with no extra allocations of arrays once the JIT gets seriously involved. A big loop with temporary arrays in it that are used to populate the fields of a record e
263.
▲
by
xmcqdpt2
3y ago
Looking forward to the tech blog post like "Every transaction on Square can involve up to 4000 RPC calls to as many as 2000 microservices in eight availability zones. Distributed systems are difficult to get right."
264.
▲
by
xmcqdpt2
3y ago
Recently too, https://en.m.wikipedia.org/wiki/Malaysia_Airlines_Flight_17 As far as I know Malaysia is not at war with Russia.
265.
▲
by
xmcqdpt2
3y ago
It's absolutely the responsibility of financial institutions to secure their premises and systems. Banks have massive security departments, guards, access restrictions, systems to detect fraud, vaults etc. The government only gets invo
266.
▲
by
xmcqdpt2
3y ago
I made fun of Google Wave a lot at the time because it wasn't clear what it was for. (Is it chat? Authoring? Google+?) Eventually one of my friends forced me to try it and ... it was the coolest thing! It worked so well! I used it for
267.
▲
by
xmcqdpt2
3y ago
Thanks, didn't know they were in the standard (for a while anyway).
268.
▲
by
xmcqdpt2
3y ago
It's more like C or C++. Old, yes, but actively developed by a standards committee. In terms of features, it's definitely more modern than C, with generics, move semantics for pointers etc.
269.
▲
by
xmcqdpt2
3y ago
The C equivalent for Fortran stack-allocated arrays is Variable Length Arrays (VLA) which are (afaik) a GNU extension which is usually considered bad. They are awesome in Fortran because it means that I can (for example) write a function th
270.
▲
by
xmcqdpt2
3y ago
Fortran is very simple though, more like Go or Java than Haskell. A C developer could pick it up in a week or so just reading the ISO spec, someone else might take like three weeks? It's basically C with nicer syntax, and some QoL feat
More ›