Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cogman10
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
241.
▲
by
cogman10
3mo ago
To dig a bit into why fibers are more efficient than threads. The OS has a rather opaque view on what happens in a thread. It doesn't know how the memory is used or what memory is efficient. The OS can block a thread when it runs int
242.
▲
by
cogman10
3mo ago
> Large grocery chains don't have anomalously high profits Define "anomalously" What do you mean by this? You'd admit that large grocery chains do have high profits right? Even with "razor thin" margins.
243.
▲
by
cogman10
3mo ago
No, I claim that we spend 3 decades of free trade and we didn't see corporations get smaller. Republicans and Democrats had a free trade policy since Carter really. If it were true that free trade results in more competition, then you
244.
▲
by
cogman10
3mo ago
> Can you find true monopolies in the free market Your definition of monopoly isn't what people are commonly talking about when they say "monopoly". Granted, you have the correct definition, just not the colloquial one. Wh
245.
▲
by
cogman10
3mo ago
Free trade has little impact on monopolies. The biggest corporations in the US are international and the massive amount of free trade we've had from Reagan to Trump's second term has only resulted in these companies becoming even
246.
▲
by
cogman10
3mo ago
Sugar water and junk food taste good and people like myself crave that sweet flavor. If I'm not careful, I can easily and comfortably guzzle liters of soda in a day. It's less a hard thing and more a "I'm on autopilot ri
247.
▲
by
cogman10
3mo ago
I think the most convincing example isn't energy drinks but rather Panara bread's energy blaster drinks that they had to stop selling. [1] It seems like they used all the same ingredients common to a lot of energy drinks, but the
248.
▲
by
cogman10
3mo ago
It depends on the drink, but there's often a lot more than those ingredients. The caffeine, while the same as what's in coffee per ml, you are looking at 600ml at a minimum for most of these drinks meaning you 2 cups of coffee fo
249.
▲
by
cogman10
3mo ago
IMO it's the most important 50%. If this alone is delivered I'd call Valhalla a success.
250.
▲
by
cogman10
3mo ago
From elsewhere I've seen that this is something they are thinking about offering but nothing concrete has surfaced. It would be an opt-in sort of thing where you say "I'm ok with my code breaking if I misuse this class"
251.
▲
by
cogman10
3mo ago
One thing the Java architects have said is they let most of the complex feature development happen outside of Java, which is pretty nice. They let the likes of Kotlin, C#, C++, Scala, Haskell, etc all explore their own little features then
252.
▲
by
cogman10
3mo ago
I agree, but this really is one of the most important and useful parts to land. Next is the null constraints. Generics will be useful, but not needed to get a large portion of the performance benefits. With this finally integrated, we are
253.
▲
by
cogman10
3mo ago
My history, unlike yours, is wide open. People can see I'm not a foreign agent. I don't throw this accusation at anyone other than throwaway accounts. I've had conversations in the past with pro-Israel HNs that I'd ne
254.
▲
by
cogman10
3mo ago
Are you a part of the $1B Israel is spending to try and propagandize and rehabilitate their reputation? [1] I'm always suspicious that's the case given how mentions of gaza seem to bring out brand new accounts who only talk about
255.
▲
by
cogman10
3mo ago
I don't think there's a lot of gains to be had for strings. Perhaps if you are dealing with a very large amount of small strings then it could be useful, but once you get past a few characters strings it's faster to just sen
256.
▲
by
cogman10
3mo ago
I find that ChatGPT isn't censoring, but it is being pretty weaselly. If you ask it "is there genocide in gaza". It will say no but also say that a lot of organizations classify it as such. It will then say "it's
257.
▲
by
cogman10
3mo ago
Agreed. I'm just happy that Java is willing to make a break when necessary. They do an excellent job of avoiding it at all costs but they won't nuke a very needed feature (like value types) if they can't deliver it without
258.
▲
by
cogman10
3mo ago
Call site is tricky because you need safety guarantees about the underlying data for it to be a value type. For example, it needs to be immutable. If you were to call a function with a site declared value type, the function you call would
259.
▲
by
cogman10
3mo ago
What I do like about java is that when breaking changes must happen (and they do occasionally), they are almost always small and the java authors signpost it WELL in advance of making the break. For example, this is technically legal in Jav
260.
▲
by
cogman10
3mo ago
I'm increasingly being convinced the only way to do that is you do a media pc nuc. The problem, of course, is you probably won't have the netflix app. It's painful to setup such a box to stream from various services.
261.
▲
by
cogman10
3mo ago
> It can handle the full 15 amps of the circuit safely. OP would need a more beefy relay for an AC unit. 20A minimum, but honestly a 30 or 40A relay would be warranted as AC units have a pretty large "spike" when they turn on w
262.
▲
by
cogman10
3mo ago
Here's my reasoning. The nicotine in smoke is bound to plant matter which you are likely to exhale. The dose you get is basically entirely from whatever gets stuck on the lungs, but even then it's still bound to the plant matter,
263.
▲
by
cogman10
3mo ago
A cigarette contains 10-20mg, but it's not readily available. On average, of those 10-20mg, you absorb only 1mg. [1] My assumption, which could be faulty, is a lot more of the nicotine in the vape gets absorbed vs a cigarette. [1] ht
264.
▲
by
cogman10
3mo ago
If you are ever feeling like burning down your apartment ;), the route I'd take is buying a 5-20p extension cable, cutting it open, and splicing in a 120V switch into the middle of it. You can find a few smart switches that fit that b
265.
▲
by
cogman10
3mo ago
This would be the route I took, but the op was scared of the plug. If their landlord does an inspection IDK that they'd love seeing a hacked power cable. I'd basically get something like this [1] and then put it in the middle of a
266.
▲
by
cogman10
3mo ago
You build a tolerance and ecigs make it easy to climb up that ramp where regular cigarettes are harder. People get to the "10 packs a day" of smoking and to the point where there's just limits to how fast you can smoke. Vape
267.
▲
by
cogman10
3mo ago
> nicotine isn't something especially poisonous or dangerous. It's not immediately dangerous, that's for sure. My concern is more about long-term effects which I don't think we have good data on. Most of our data on
268.
▲
by
cogman10
3mo ago
> Serious nicotine poisoning seems normally prevented by the fact that relatively low doses of nicotine cause nausea and vomiting, which stops users from further intake. This is true, but this is also about short term poisoning. I'
269.
▲
by
cogman10
3mo ago
Dose makes the poison and ecigs enable giving it's users 10x the nicotine you'd get from a single cigarette. I think you are right that cigs are less healthy, but I have to wonder if megadosing nicotine isn't also a pretty bi
270.
▲
by
cogman10
3mo ago
> The other half of the ads you see on TV (pharmaceuticals) weren't there either! Not really true in the US. (I take what you are saying to mean there weren't any/many pharmaceutical commercials a decade ago) Here's
More ›