Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jbooth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
271.
▲
by
jbooth
11y ago
STM's a good one. I'd consider I/O and State as solving a self-inflicted problem -- I can have side-effect-creating I/O and State in just plain C with barely any type system.
272.
▲
by
jbooth
11y ago
Follow-on question, are there any useful monadic constructs not tied to collections (including optional as you said)?
273.
▲
by
jbooth
11y ago
Hey, thanks for filling in. So basically a facade over the original object only masking some fields.. yeah, not really my cup of tea personally, I'm fine with approx the same amount of code for a boring builder and/or constructo
274.
▲
by
jbooth
11y ago
You mind pasting an example? I typically find higher kinded types, monads etc to be more of a pain than the problems they're solving (builders & constructors not really that painful IMO), but am really trying to keep an open mind.
275.
▲
by
jbooth
11y ago
Java 8 has lambdas and lots of streaming functional comprehensions like map, filter, fold etc. That sounds like all the functional stuff Scala has, right? What's it missing? Also, since when does 'functional' mean 'alg
276.
▲
by
jbooth
11y ago
What's Scala's superior alternative to builder patterns? You can have lots of final members in a constructor in Java, too..
277.
▲
by
jbooth
11y ago
Additionally, it's not a religion. Every programmer should be exposed to Unix style programming just like every programmer should be exposed to functional programming. 100% purity in either case is just creating unnecessary problems.
278.
▲
by
jbooth
11y ago
Fracking is new tech with a ridiculously short path to profitability, you pump the oil and you sell it. It's just good business to pump money into fracking (maybe bad environmentally, but that's beside the point). I wasn't
279.
▲
by
jbooth
11y ago
But it didn't devalue the dollar, inflation's been really low for the last 7 years. Honestly it doesn't make much sense, and should really make people hesitate to pursue deflationary measures. China's fiscal policy does
280.
▲
by
jbooth
11y ago
I'd agree with your first paragraph and disagree with your 2nd one with the exception of the tech bubble -- it's been really, really hard for normal businesses to get bank loans even when competing with 0.1% interest rates from th
281.
▲
by
jbooth
11y ago
You already got the payoff, look at some charts of gdp and employment figures from 2008-2012. The downward slide was stopped and the slow recovery started, exactly the opposite of what the naysayers predicted. In other words there was a hu
282.
▲
by
jbooth
11y ago
Stimulus compared to what others wanted. Indeed since 2010 we've been cutting lots of domestic spending but you wouldn't know that watching TV talk about socialism, so people have been calling for crazier cuts while predicting do
283.
▲
by
jbooth
11y ago
Sure, 'wasteful' anything is probably, uh, wasteful. But there's a long history of successfully executed stimulus, VERY MUCH INCLUDING the recent one which was supposed to lead to hyperinflation and the end of society as we
284.
▲
by
jbooth
11y ago
I think you need to justify that statement, what about type theory says that Go can't have generics? As a follow-up, would the same logic have proved that Java 1.4 couldn't add generics?
285.
▲
by
jbooth
11y ago
Here are my thoughts: America invented the transistor and Internet with tax money, plus educated most of the engineers who built those products up to grade 12. But everyone acts like it'd be some moral tragedy for Apple to pay taxes b
286.
▲
by
jbooth
11y ago
"It's not about avoiding paying any US taxes, it's about avoiding paying US taxes on earnings abroad." It's also about structuring earnings so that they happen to be earned abroad. https://en.wikipedia.or
287.
▲
by
jbooth
11y ago
Every product exists to make/save money for its owners. Apply pay and stripe are no different. The glaring question mark is whether a consortium of retailers, none of which are that strong in tech, can actually make a product that ho
288.
▲
by
jbooth
11y ago
The definition of watt, if I recall correctly, is "work".
289.
▲
by
jbooth
11y ago
Just to throw it out there, I thought communication across 2 cores on different sockets is generally regarded as impossible in less than 100ns regardless of language? If you're staying in L3 on a single socket, I could believe it, may
290.
▲
by
jbooth
11y ago
"No one buys game currencies to hold. They buy them to spend." Ironically, this means that the game currencies are much closer to functioning as an actual currency than bitcoin.
291.
▲
by
jbooth
11y ago
Yeah, and as always, it comes down to energy -- there's an established way to turn CO2 and H20 into Methane and Oxygen, given enough energy for input. And SpaceX has put some research into methane-fueled rockets already. So some peop
292.
▲
by
jbooth
11y ago
"Maybe you're using a library that is difficult to mock. Maybe most of your logic is happening at the db layer." At this point, your design is already screwed and borderline-unmaintainable, so yeah, I guess unit tests won
293.
▲
by
jbooth
11y ago
Because libertarians define themselves in terms of pure ideology? US modern liberalism, on the other hand, has basically no pure ideological component other than beliefs in humanistic morals, pragmatism and empiricism. (And, of course, pan
294.
▲
by
jbooth
11y ago
Yeah, but with C's old-school int values for errors, you can always make an equality comparison. The error interface in Go doesn't specify equality, so you can do "if err == io.EOF" in some cases and you're up a cr
295.
▲
by
jbooth
11y ago
A lot of people do argue that about big object-class hierarchies and inheritance, and they've been declining since the mid-2000s at least in mainstream OO languages like Java and C#.
296.
▲
by
jbooth
11y ago
Except, due to internal organization of those companies, it's entirely possible that one person is getting a bonus for cutting the costs of 'resources' while another is berated for a variety of seemingly unrelated quality is
297.
▲
by
jbooth
11y ago
While we're making doc requests on this topic, could you address passing function pointers between C/Rust at some point? Sorry if this is already obvious to more experienced Rust users.
298.
▲
by
jbooth
11y ago
Invalid comparison. Failure to prevent something is not the same as personally perpetrating it.
299.
▲
by
jbooth
11y ago
Cool, thanks for the response and for writing lmdb!
300.
▲
by
jbooth
11y ago
I hear you RE: compact source code, and that as much as the benchmarks are why I use LMDB (thanks) and not Rocks when I have a need. I was under the impression that Rocks manages more compact storage, probably as another consequence of all
More ›