skysight-inc/HackerNews huggingface dataset:
> Trying to open a file that doesn't exist isn't by itself an exceptional incident. The calling code might consider it an exception and decide to raise, but the IO library shouldn't.

This is a way of thinking that I don't get. Yes it's fine that an IOLibrary has to be able to handle a FileDoesNotExistError condition. But from the caller POV: I clearly instructed you to open a file of some description. I expect you to return to me a handle for said file. Everything that does not match that expectation is exceptional (to the caller).

And it is that violation of expectations that is communicated by (Python's) exceptions.
If it's from NASA or ESA it's a satellite that suffered from catastrophic failure.

If it's Chinese, it's "space junk".
BTW i think Hudson Hawk is an incredible movie, i love it!
D's standard lib is also a lot more mature than Zig's, obviously because of its age. I'd recommend D above Zig unless you want to contribute bug fixes to Zig.
But to serious gamers, those interactions in and around those games are their real world. Say someone dedicates themselves to learning the piano, a Real World activity, and they enjoy it, and they can entertain others with their skill, why is that any more real than getting deep into a game? In the end we all die and take nothing with us, nor do we leave anything behind which will last all that long. If everything is ultimately futile, why make a distinction between one pursuit and another?
For those OOTL: https://thegradient.pub/gpt-4chan-lessons/
Because making the code render properly would require a JS library. (Only slightly sarcastic, as I genuinly have heard similar arguments before)
It Pays for Companies to Leave Russia
> a community full of racist, sexist, xenophobic, and hateful speech

Rookie mistake: Taking that sea of piss seriously.

I'm not even sure if /pol/ is not already AI-generated nonsense.
The most interesting part I see in the comments is the amount of disrespect for US following the justice system for seizing assets of a country that US is not in war with officially.

It took many years of hard work of hundres of millions of people (who don't want war) to create foreign reserves. I'm sure Chinese goverment (and other governments with huge foreign reserves) took notice, and plan to dump their positions as quietly as they can.
Game doesn't seem to respond to touch input on my phone, Chrome Android.
I doubt it. What would "DOM access in WASM" even look like?

The DOM is exposed as a tree of high level Javascript objects with properties, but WASM has no notion of objects, properties and their relationship, it only has a few integer and floating point primitive types and heap addresses. All that "DOM access from WASM" would mean is that there's a new primitive "external reference" type which allows to tunnel an opaque Javascript object reference through WASM and back to JS while pinning the JS object for the JS garbage collector. But one couldn't really do anything useful with that reference on the WASM side without calling through JS (AFAIK there are some very high level proposals for this too, which could basically create the required JS shim code automatically, but that would just add more runtime complexity for little actual gain - the same shim-generation work could be done offline in the compiler toolchain).

All that the "external reference" type would enable is a slightly simplified Javascript shim, because it would no longer need to map index handles to Javascript objects. But that's just a small part of what the JS shim does.

It's a bit like asking if x86 machine code has support for the Win32 window system API, the answer is both 'yes' and 'no' ;)
This is making me want to quit my CS program: I asked about that here recently...
https://news.ycombinator.com/item?id=31284802

> It’s even worse when people come up with deferred life plans. They’ll say something like “When I’m forty, I’m going to retire and write a book” or “I’ll do this thing I hate right now so I can make money, then in ten years I’ll do what I really love”.
Seriously? You think that the universe is going to let your life proceed the way you want it to? What guarantee do you have of making it to that age?

This makes me want to quit University RIGHT NOW...
> EDIT: weird now I'm looking at my comment from an iPhone and the arrow is rendered with the arrow emoji. Have I found an exploit to embed emojis in HN comments?!

Apple emoji font, in addition to emojis, also includes other characters like numbers, arrows, and "trademark" (tm), "registered" (r), and "copyright" (c) symbols, so that's why.
I hope you reported that to the real manufacturer.

They are probably the only people with any influence over Amazon.
Useful Technologies for a World Experiencing Climate Change
I read an internet review of Starship Troopers so good that it made me go and watch that (terrible) film again.

Took me a few minutes on DDG, but enjoy: https://agapow.net/misc/humour/starship-troopers-a-review/
Yes, Capaldi should have been a great doctor, but the scripts... This is also when I stopped watching.
Also: don't install curl in your container.
Games convey very simplistic ideas compared to the full extent of human thought, expressed in spoken or written form. It's usually way more washed down than cinema, which is already incredibly washed down.

Not to mention the benefit of say reading about your country's history, as opposed to the history of some ficitonal world in a video game - with history books, you're learning about the things which actually happened and have had a direct, large impact on your life and the world around you.

Novels, while being ficitonal, allow you to explore inner worlds of other people and complex interactions between them (and there's nothing more complex in the universe and at the same important to us than humans and interactions between them), something that games are severely lacking (cue in people telling me about Nier Automata and one or two other story-based games which are approaching the level of a bad novel).

Most video games are spatially-oriented and are basically more sophisticated version of children playing tag, football or similar simple games focused around interactions in 3d space. And the ones that are not that, i.e. that try to be about humans and not simple spatial and temporal relationships, basically suck for the most part. It's clear that the medium is not meant for them.
If you observed the absolute insanity that has been happening in asset prices, venture funding, equities, and crypto, there is absolutely no way you'd think that money printing doesn't lead to inflation (at best) and the complete Mickey-Mousification of the economy (at worst).

Money has started feeling like a joke. It's thrown around for anything and everything.

An ERC-20 memecoin called Shiba Inu hit a market cap of $41B. A dying video game retailer hit a market cap of nearly $30B. A taxi aggregator swallowed $33B in funding and never turned a dime in operational profit in 12 years of its existence. A house bought in 2019 doubled in price in under 2 years.

Its complete and utter insanity.
In 2002 I built a website that got about 3m page views a week, with about 50k concurrent users, and a whole bunch of fun things like payments, outbound email, etc. It ran on a single server.

Since then I've working on things that use several servers, things that use no servers with edge functions instead (which have servers, but still), and that use autoscaling across lots of servers.

No doubt some businesses need autoscaling but most don't. It definitely shouldn't be something you reach for before you actually anticipate a need for it.
When you present with DM as an adult the immediate presumption is DM II not LADA and the insurance companies (and their actuaries) are uninterested in investigating otherwise. Thus endocrinologists are disincented to look as the hospital admin gets very upset when insurance companies deny reimbursement.

The ADA training the insurance companies recommend is weird too. It says, for example, that it’s fine to have a slice of cake, just have half. I assume this is because too large a change will lead to negligible compliance. I was at first shocked, but then wondered what kind of baseline recommendation would actually be effective.
Empty end hits first, dispersing a lot of force. Motor end rotates around still carrying a lot of force and impacts leaving a second crater.

Or am I missing something that makes this newsworthy?
> how do you think D compares with Zig?

Disclaimer, I've never used Zig, so the following are not comparative.

> Is it able to produce as efficient and small binaries,

There are compiler flags to disable linking to the D standard library and D runtime if you need small binaries (you can still use templates that end up in you binary) though most of the time that is more of a loss than gain (in terms of productivity), its not bloated unless you abuse templates a lot as would happen in C++.
As for speed of execution, don't use DMD if you care about the it. LDC (the LLVM D Compiler) and GDC (which is part of the GCC) are both strong optimisers.

cross-compile to most platforms,

Yes, use LDC. GDC, like GCC, is not a cross compiler by default though you can build it to be, DMD is X86(64) only.

> metaprogramming etc?

Oh, yes. Compile time function evaluation (referred to usually as CTFE) in combination with mixins (interpret string as code), `static foreach`, `static if` and (much safer than C++) templates makes for a very potent package.
I couldn't find the option of "Dev & Ops (Sorta mediocre at both)" ;)
Funnily enough, you can have pretty decent discussions on pol about economy and such. Sure, there will be lots of shit flung at everyone, but as long as you don't take the bait seriously, its gonna be fine. Better than other forums, even, as you can honestly debate it without fearing that you are stepping on anyones toes.
Draw the line at 41 weeks. I don't care about your nonsense hypothetical. Bring me a real scenario. One singular example of an abortion at 39 weeks where the mother didn't want the baby. I guarantee you can't actually find one even though you claim it exists

Hypotheticals are a waste of time, bring an actual example or stop wasting my time

The mother takes priority up until that baby is breathing on its own. Always
> If gas price doubles does that mean that folks who commute by car go only half way to work or stay at home every other day?

There are a lot of behavior that can be changed, not all of it, but people could skip some trips, maybe only 10% - but it is not 0%.

> If an iPhone costs $10, why would you buy 5 of them?

I have 5 umbrellas but just one body. I sometimes forget it at some place, or misplace it. Nice to have a spare when I need one. I could then leave an iPhone at work for when my battery runs out for example.

> Supply and demand are not infinitely elastic, as some like to think.

Fair enough, my examples were a bit contrived and absurd, but my point is more just that neither supply nor demand is fixed. But yes they are not infinitely elastic, but they are somewhat elastic.
Italy concludes investigation on Google Analytics
Drugs lead to delinquency (crime) and madness. Depending on your view that is what some might say drugs do.

Since the OP said they had to block chess because of phone addiction, the joke is just replacing drug addiction with chess. Chess (drugs addiction) leads to delinquency and madness.
The productivity of most so-called 'productive' hobbies is an illusion. What does it mean to 'produce'? To transform something that doesn't have value into something that does have value? Value to whom? The output of the majority of hobbyists' work has no value to anyone but themselves, and if it has no value to anyone but the creator, it's just consumption with extra steps. And if it has financial value to other people, that's not hobby, that's a second job.

There's a reason why most artistic pursuits are either completely nonviable as a profession or are a lottery where the top 0.01% become superstars and the rest barely break even or lose money. When the thing one 'produces' is something people will do for fun, supply massively outstrips demand, and more entries into the hobby doesn't produce more valuable items, it produces more tat that nobody wants.
I'd give at least the next 10mins of this mix a listen imo.
https://youtu.be/5vHRUsP20dQ?t=1830
Its a bloody good mix in its own right anyway!

I dont think you would or could find much with the same vibe as Blade Runner, its kind of unique and stands out on its own, but a DJ who could do a mix which is close to a Blade Runner vibe would be Maceo Plex and it would be this mix imo.

Alot of the German/Berlin industrial vibe would be too extreme or hardcore for a Blade Runner vibe, and whilst it would seem natural to look to a German DJ for a Blade Runner vibe, I think Maceo Plex has pulled a Blade Runner vibe perfectly in this mix.
Because CRUD is the opposite of collaborative editing, and people are sick of it - CRDT represents a solution to getting humans working together through computers that isn't based on decades of cruft (disclaimer: imho)
Completely agree. Where CRDTs really shine is when you have a larger deviation of changes over time. They are brilliant for offline first type apps, and in
fact are what Apple Notes use.

Last year I experimented with combining Yjs with PouchDB/CouchDB to achieve automatic conflict handling with a multi master type architecture and eventual consistency. It worked brilliantly!

I think it’s because there is just generally so much hype around “real-time” collaborative apps at the moment. But the reality is people spend much more time working async and merging changes later. I suppose what’s particularly brilliant with CRDTs is that they handle both use cases very well, you don’t have to have two different systems.
That’s a lot of signatories. Is pearl clutching a part of AI-Researcher culture?
Has anyone made one for Copilot yet?
"Our meta-analysis supported long-term harm and no cardiovascular protection with low-carbohydrate diets. However, the observational studies were limited and moderately heterogeneous. Our findings underscore the imminent need for large-scale trials on the complex interactions between low-carbohydrate diets and long-term outcomes."

From your second link. Also not a surprise when many research about low carb diets is refined carbohydrates + unspecified oils.

"Low carb" studies are as interesting as "high carb" studies. High carb is a Mediterranean diet or is the Twinkie diet, just like keto can be meat and vegs or low carb pizza and processed meat. Lumping everything under one very generic name is not very good science. The whole dietary world is made of bad science and repeated by bad journalists.

The scientific jury is still out, as your very source stated, yet every HN thread the top voted comment is "low carb kills some people." Seriously?

I am still waiting for someone to show me a long-term study based on low carb meat, nuts, fruit and vegetables, unrefined oils and fats diet. Even an observational one. Oh wait, there's none!
Political correctness is evil. Taking political incorrectness serious is a sickness which should be treated with all means, including overwhelming ad absurdum. IMHO.
WASM is a little more different than that, because 0 is a valid memory address -- the beginning of the heap.
As you would expect this has all kinds of wonderful ramifications for code that assumes 0 is nullptr.
You would normally be able to solve things like this via file permissions in the OS but currently we are running everything as root inside a container.
Tracking units of measurement is so important for security (bits vs bytes vs BN_ULONGs). There was a bug a few years ago with Bouncy Castle using 16 bit vs 16 byte keys, IIRC, due to a similar mixup. Ideally units are captured in the type system, but I've found that even naming methods/fields appropriately (e.g. setTimeoutInSeconds(long) vs setTimeout(long)) goes a long way to reducing these kinds of bugs.
I would be satisfied if the USDA recognized fructose as a toxin, and required labels to say how much fructose is in everything.

We might then start seeing the things pumped full of sugar having glucose/dextrose instead. And, the greatest health crisis the UK and its former colonies has ever seen might then start winding down.

If we can institute emergency measures for COVID-19, it seems like we ought to be able to do a little something about a cause of overwhelmingly worse mortality.
This logically reads right but I doubt is actually true for most readers
Does the moon take a lot of impacts that would have been destined for earth?
It's pretty well-known that the french sci-fi comic Metal Hurlant inspired Bladerunner.
error joining room.
Ini files aren’t a standard though, so every language can handle them differently. As a result they often bite people using them in multiple languages in the foot
I want a programming language that’s boring. It should have things that Python has including classes. Fast and compiled. No need to try new things.

A pythonic C++ that doesn’t smell bad.

I wish Go had classes. I like those damn things. Extending a Dog from Animal with all the methods and data in one place is nice.
I put some basic ASCII art explaining concepts in my article here[1], some might like to check it out:

[1]: https://timvisee.com/blog/solving-aoc-2020-in-under-a-second...
>I suppose what’s particularly brilliant with CRDTs is that they handle both use cases very well, you don’t have to have two different systems.

.. and can equally be used to make CRUD if you wanna.
I hope that robots can eventually make organic practices more widespread. Instead of spraying pesticides (some of which are permitted under organic rules in the US and Europe) have robots come by continuously and pluck each weed as it appears. Pluck the pests from The leaves and stems. Water each plant individually per its need, etc. There should be no need to sacrifice a human on backbreaking and fiddly labor.
Sorry, took me reading your post several times to figure out 9+2=11. My mistake.
Just uploading telemetry ;)
Eh, depends...as you point out it is becoming a "lost art".
The average quality of editors is utterly abysmal, so if you're pretty handy with style, or have lived under the cosh of an academic style guide for long enough you can probably get by without an editor.
Oh, I will try this. Thank you.
> Everything that does not match that expectation is exceptional (to the caller).

No. If you want to read some data from a file if it exists, and continue merrily along if it doesn't, then you cannot simply check if the file exists and then try to open it. That would lead to a race condition. The file could for example be deleted in between the two calls.

The only proper way to handle that is to try to open the file, and if the result of that is FileDoesNotExistError then you continue along merrily.

If the file the caller tries to open is a settings override file, say, then it's not exceptional that the file does not exist.
There are too many good reasons why money is centralised and you are an outlier if you find good reasons to pay for anything with bitcoins. That's the truth.
I do have an L-bracket with a built-in grip[0] that I can use with the a6400. It does make the grip itself more comfortable, but the added volume then moves the shutter release too far back relative to the grip, which brings us back to an uncomfortable shooting experience. I don't think fixing ergonomics after the fact works.

0. https://www.amazon.co.uk/SMALLRIG-Bracket-Sony-A6400-A6300/d...
Language model researchers, like social media developers before them, have built this tech under the presumption that it will be applied only with positive intent.

GPT-4chan is about the least worst thing somebody could have done with it.
On one hand I'd like to say I don't want to become a Windows admin to extract expected behaviour from a laptop, on the other that's exactly how I learned Linux administration.
If the audience is missing out on the high art part, they would be humiliated, so experience is standardized to the lowest standard.
Are people really still taking the line that 4chan is nothing but edgy teenagers, memes and lulz, and that the straight world just doesn't get the irony? Christ, the copium of 4chan fans is even more potent than Trump supporters.
What sort of professional am I looking for? I don’t mind spending money.
Where is this evidence? People like to mention it, but no, there is no such group in the world of a meaningful size to depend on bitcoin for international money transfers.
People line up for 15-20£ lunches because they have to, because they have been forced to go back to the office to make their daily sacrifice to Micronus, the petty god of middle management, and to Parasitus, the evil god of real estate.

They may live more frugal lives, and feed themselves with close to expiration Tesco sandwiches that cost 0.01£ (why, it’s left as an exercise), but it won’t help them getting out of poverty and renting (which in itself is a form of poverty in a country where tenants can and are routinely evicted for asking repairs).

So it’s not impossible to live a more frugal life and save 5£ a day, which is less than 2000£ a year, it’s pointless if the price of the average house increases by 7-8% a year. What is one doing this for? To please the editor of the Daily Telegraph who complains about millennials?

The only way out for the individual is to earn more or to enjoy a lottery-like event, such as my company going public. The collective way out will probably require political action, of what kind I don’t know nor I care. But we can’t pretend that the better educated generation in the entire history of mankind can’t buy houses because they can’t budget and spend too much on avocados and takeaways.
That's awesome, you can lead a horse to water...

Since the reviewer mentioned it, the fact the characters all come from Buenos Aires is one of my favourite things about the movie. I've mentioned this a few times in conversation with people about the move, and they flat out didn't believe me. Their brains just didn't parse it, or what the implications are at all, because it's just there. It's never called out, or explained, or made a point.

There are two sequels and the first is really bad. None of the implied critique, just a straight cheesy SF action C-grade. The third film is actually worth a watch IMHO. It's still nowhere near the level of the original, but it's fun to see Van Dien kicking ass and taking names.
is there a word for a big company buying a small company and then turning it into shit?
If I want to use D as a scripting language, I would like to have access to at least the core parts of the standard library (strings, lists, hashmaps, etc.), which I can’t without GC. I really don’t have time and energy to implement my own data structures when trying to prototyping gameplay code.
The troll clickbait titles always get the most comments
Yeah, I saw some soy milk at Whole Foods marked “no added sugar”. I was surprised that sugar might be added at all but I don’t drink the stuff. Anyway, I looked at the label and the #2 ingredient (after water) was “dehydrated cane juice” (i.e. sugar).
But isn’t most of the D standard library unusable with BetterC mode (without GC)?
And how many of those users index anything? Heck given the languages you'd write macros for excel, they really screwed up by picking 1-based.
The employee surveillance that fuels worker distrust
Thanks for responding. Some details about us:

- we are building open-source software (medusajs.com); our thinking around breaking into two teams is that team 0 works on core and team 1 works on plugins + tooling

- we are currently 7 in the engineering team (includes CEO and CTO; CEO will transition into more PM work than hands on development)

- we plan to hire 5 more engineers over the next 3-4 months

- teams would work autonomously with some guiding principles to follow

I think your inputs align well with our own thinking