skysight-inc/HackerNews huggingface dataset:
Those are crimes in itself not inherent side effects of drug use. Domestic violence and an increased aggression level are drug specific and driving under the influence is also possible with legal drugs. You can also become a similarly dangerous driver with enough sleep deprivation.

Speeding on the other hand is reckless endangerment, if you are to fast, your stopping distance will become to short for the given environment. As a result, you will run over a kid if one crosses the street at a dangerous position. You driving to fast at this position will have the effect of a run over kid, with the only variables being whether or not a kid is just crossing the street at this point. You already made the decision to drive to fast to have a sufficient stopping distance. Your similar decision of taking drugs doesnt have inherent consequences, it only has an influence of the decisions you make after that, for example a drunk barfight. The same could however also be said for other things which influence your mood.

Driving under the influence is a much better comparison to speeding than druguse itself. Not sleeping enough is not dangerous, however driving while dozing off is
dvt's top-level comment was "Things we take for granted are hard."

Your response took things for granted.

dvt originally wrote "We stand on the shoulders of giants."

You commented "I feel it's a problem which I solve, by standing on the shoulders of smarter people and using the code they wrote."

It came across as totally missing dvt's point.

I picked Russian because I was thinking of an essay by Douglas Hofstadter. Quoting myself at https://news.ycombinator.com/item?id=16289783 :

> I think it was in Godel, Escher, Bach where he talks about the problem of translating a line from Russian, along the line of "He lived on B____ street." It's possible from the story, which takes place in a real city, to figure out which street that was. Let's say it was "Main Street". Does the English translation keep the original Russian word and initial? Does it translate to "Main Street" and replace the "B" with an "M"?

You can use a Russian-English translator to get a translation into English. But that doesn't help understand the hard problems involved, which was the point of Hofstadter's essay. (See, for example, his "The Shallowness of Google Translate" in The Atlantic; HN comments at https://news.ycombinator.com/item?id=16267363 and in dupes.)
I assume it's because they want to sell the device.
In industry in Sweden, especially in tech, english is the language used. If you have a team of 10 Swedish developers working on an app, they will most certainly write all user stories/bug reports/specs/code comments etc in 100% english. The 11th person to join might be an english speaker so you can't afford to have your backlog or code in Swedish. The step to using english for email/chat then is very small.
Automation and Murphy's Law
My favourite pinnacle moment in the history of plane automation

https://www.youtube.com/watch?v=LJkEYAy7Qc4
Did you read the article? It isn't an advertisment for anything.
Micro.blog seems to want to head in that direction - they're certainly on board with the chronological feed & "no likes / metrics" idea, and they have a way to import your photos from Instagram. The service itself is meant to be a social network that works via RSS:

https://help.micro.blog/2017/instagram/

But they make it really hard to even see that they have photo / Instagram-esque features, and it seems mostly connected with their iOS app Sunlit:

https://sunlit.io/

I used to be a member but found the service very hipster & Apple / iOS centric. But it might be what some people here are looking for.
This Video Is Sponsored by ___ VPN
> While we accept to be killed by our own mistakes at the wheel, society (we) will not accept that a machine makes the same, even if the failure rate is on average /better/.

We seem to accept being killed by someone else, since that is how most of the 40,000 people are killed every single year in the US. I don't hear too many drivers complaining about that.
It's not quite unique - there are many other scripts that behave in a similar way, e.g. for some Indian languages.
The analogy doesn't make sense; they analogize C to Rust, as ECMAScript is to Elm. I am forced to conclude that these are the only four Turing-complete languages that they know.
Could Insects Be Used to Feed Pets and Other Animals?
_INSERT_YOUR_FAVOURITE_JAVASCRIPT_TYPE_COERCION_HERE
Tying it to smartphones and camera apps sucks.
Recently Google blocked uBO Dev Builds on grounds of "including unrelated functionality", of course, it was all an accident made by some AI, so no actual human is responsible, and in now way, shape or form did google intend to kill of a project that harms it's profits.
Closest seems to be the X395.
JavaScript is Fortran. Used to be Fortran66, now Fortran77, Ratfor is a thing again.
Next week - "Haskell is C" - because you can write program that compiles and doesn't do what you want.

Nobody ever claimed that flow/typescript magically makes your code bug free.

It will help with stupid mistakes. It will help with invariants at the type level, but it won't guarantee anything because there are ways to supress it. It will not help with value/runtime invariants because it doesn't have any dependat-type constructs (you can use things like flow-runtime to get some extra help if needed during runtime, but it will be likely slow if you use it everywhere, maybe cherry picked places is good compromise, depends on what you're trying to solve).

Things like immutable collections and/or better architecture should help.
IIRC Cloudflare is currently not the default and there is no plans to turn on DoH per default if there is no way for Firefox to properly preselect the provider the user wants.
macOS Catalina Screen Time Feature is Ridiculous
I thought this was going to compare C and JavaScript as being imperfect languages that are ubiquitous as the Lingua Franca of their respective platforms, Unix and the web. I’d be interested in seeing that explored.
Well, it doesn't make it easier. I suppose you could try building a set of RPM packages for the Windows platform, which is basically what Cygwin is.

If you're saying "wouldn't it be great if C the language came with an integrated package manager that worked the same on all platforms and was available everywhere", then yes, that would be great, and I too would like a pony. I just think the ecosystem is way too fragmented to ever achieve that. Doubly so if you have to start thinking about cross-compilers and the long tail of little embedded targets.
A new approach to clean code, AWS lambdas, and managed infrastructure
One does not simply ... convert time
I've sadly noticed that for last few (since 2007?) versions F1 leads you to a web page that usually is quite useless. Back on Office 2003 and earlier, I could blitz through anything low to medium complexity in Office by hitting F1 :-(
Okay, I was wrong.
Ask HN: Anyone have experience partnering with/selling data to academia?
I am familiar with the process of selling data to "regular" businesses, but academia is uncharted territory.

What are the things to keep in mind when either selling research data to universities or parntering up with universities to have them produce research based on your data?
>however I only see it used on phones not computers //

IDEs do prediction for input.

OpenOffice used to predict words longer than say 5 characters, IIRC, it might have been back in the Star Office iteration. Come to think of it I write in a widower so little now I've only just realised that this feature might have been disabled as a default (or removed).
Right or wrong, what the grandparent suggests supports a lot more than ASCII and English. It's not even limited to Western scripts.
That's a very narrow view.

Supporting historical baggage is why a lot of business people trust Windows.

Eg.
You can still run VB 6 applications :p
That seems to run into the anthropological principle.[1] The universe hasn't ended yet because if it had we wouldn't be able to observe it. Of course that begs the question why humans are a thing that happened now and not some other time, but that's a much less interesting question in my opinion. Humans happened by some fluke, a prerequisite for that is the universe existing.
tl;dr: No code was presented, but it feels like Ember was pushing unexpected arguments to a typescript function, messing it up. Author then goes all rust, hoping that it would catch broken invariant automagically, because it leaks no memory. Thus JS is C.
When it happened to me, it was only after I scrolled down a couple of screens after clicking on a few images. The first screen or two of images were still publicly viewable.
> At least with C, if I try and treat something as a size_t it will try and behave like a size_t. It might not actually be the right type and cause problems that way - but the behaviour is within the expected bounds.

Usually the C behaviour is undefined, at which point it can do absolutely anything. If it just gives you an arbitrary value and chugs along (as many C implementations will do), that's harder to understand and diagnose. If you run a big calculation in Javascript and it comes out as "true5", it's pretty clear what's gone wrong (and pretty easy to bisect the calculation to find where the mistake is). If you make the same code error in C you'll get an answer like 823491 and might not even realise that it's incorrect.
In this case I would use something like std::function in C++. An std::function can also be unititialized and one can test for that using 'if'. Obviously, one does not want an inheritance hierarchy as complicated as the one you sketch. It does seem like a dynamic language maps a bit more direct to this problem. However, if one uses a dynamic language there still is the complication that there is not a single place with a list of all possible attributes that the Animal can have. This is one main pain of dynamic objects that one especially feels when one is trying to find out how something works. When something can potentially be any type one might have to read a great amount of code to find out what operations are available for that thing.

I also have to notice that this is not a very typical problem. I don't seem to remember that I have ever had to model something like this in a programming language.
They have credited a bunch of DTS incidents back, but that normally only applies where they determine that they either:

* can't help you

* don't want to help you

TBH, compared to the person-hours required to write up the DTS incident in the first place and keep the conversation going, test out their responses, etc., the cost of the incident itself is minimal.

Let alone the cost of the times where I decide to go it alone and figure it out by trial & error or reverse engineering…
Gah, I've just started with MS Word (after a long hiatus) and was wondering why it always grabs surrounding punctuation into the selection (even when the punctuation 'points' the wrong way, it seems).
You can pick this kind of nonsense code for pretty much any language, are you writing this kind of code? Not really.

You have several options when validating input, from handrolled asserts, flow-runtime, json schema, several helper libraries to writing your own dsl with help of nearley or something similar if needed.
JFastText v0.9.1 Released
Yes, it comes from "aner" in Greek: https://en.m.wikipedia.org/wiki/Andrea
Yes, precisely so. Type definitions are as good as the programmers who wrote them, and since humans are imperfect they make mistakes. After you have defined your types wrong, there are devious bugs in your code that you have no way of knowing (until you step on that mine and the program hopefully crashes). Although every language by design is mostly bug-free, it's that in JS/TS there is a much greater human factor (similar to C/C++) that just adds a large error margin for the correctness of the application. Especially when there are very loose runtime guarantees for type-safety, there is always a chance for something ugly to happen.
I would have followed the same reasoning a couple of years ago, but have since had the "pleasure" of working with people that have been producing this kind of code for multiple decades. At this point, I've grown more amazed at how good humans can ignore self-inflicted pain and more cynical when it comes to believing in their adapability.

Though that obviously does not apply to everyone.
Those crimes happened wayyyy before drugs were prohibited. Banning drugs doesn't stop them.

Drugs don't pose an intrinsic danger anymore than cars pose an intrinsic danger.
This can be tricky, because programming based on events tends to push you into writing everything as event-handlers, but they get awkward for long-running stateful computations. However Tcl has had coroutines for about 10 years now, and those allow you to bypass this problem completely.

I gave short presentation about applying this approach to scripts combining a responsive GUI with managing multiple parallel Expect sessions at www.eurotcl.eu/program.html#Macleod .
Such a cool way to explain logic gates (with water) [video]
It matters if devs who depend on donations for a living get their donations cut because someone they know or even themselves do something China doesn't like.

With React it's different of course, objectively you're right, but subjectively, using React doesn't feel right if you dislike FB, and using FB technology can scare of customers if they get aware of it. If you want to trash a competitor in a space that's somehow privacy focused, just mention that your competitors tech stack is from FB!
Synchronous communication fails in remote teams
I assume their point was that it is both hostile and incidentally uses JSON, not that its hostility results from using JSON.
Show HN: The Remote Work Dictionary
What are the cases when your keyboard is stuck in English?

In Ukraine, no, we don’t. Kids don’t generally know English enough that they would want to speak it with peers, and there are simply no reasons to do so.

“Translit” (writing Ukrainian/Russian with English characters) was a thing in SMS days, when typing in Cyrillic would shrink your SMS length in half (because that’s how SMS encoding worked, I guess), but now practically nobody uses it anymore.
When CHM arrived on the scene, ZIP was far from being treated like container format, and definitely not ubiquitous.

As for XML - it's ch easier to make a stable parser that is complete and fast for XML than it is for SGML-based HTML, and indeed the was a big push towards XML everywhere... Partially because of that reason.
Before it comes up: Bazel ships with its own copy of the JVM so you do not need to install Java to use it.
The post to which you replied seems to address your concerns:

“Your musings here are legitimate, so long as you recognize your feelings as a single datapoint and don't mistake them for a general trend, or extrapolate them to the wider population.”
What's new in the latest Chrome update and Google's plans for the future
Meson does not have the same feature set as Bazel. Most notably sandboxing and remote execution.
> it's too bad investors are climbing over each other to throw money down the long, narrow corridor that is self driving

I don't consider that bad. Anyone is free to make bad investments. I do consider it bad that they haven't yet had to book that many losses, due to the hype still going strong and them finding enough other idiots to join the party. I'm longing for the day on which bad investment decisions (such as in autonomous vehicles, at least if you expect them to be just around the corner to save your business model) seriously wipe out huge investments again - as it should be.
> If you make the same code error in C you'll get an answer like 823491 and might not even realise that it's incorrect.

Or, worse, your code will give you "true5", but only on Tuesdays at 2 AM when your server load is low, and you'll look at the code and wonder how it's possible something like this could ever happen…
I don't know how true that is.

I strongly suspect it isn't true at all. Politicians keep talking as if there are thousands of innocent people in prison, but then any reform tends to stall or backfire (i.e. releasing violent offenders to the public) or not result in much change.

In almost every case there are usually a plethora of prior convictions, or there was a violent crime (or a pattern of violent crime) underlying the conviction but the drug/non-violent conviction is what 'stuck'. In the same way, Al Capone's conviction wasn't really about non-violent/white-collar crime of tax evasion. The cases that are cited where there are no associated factors are, I suspect, few and far between and are largely outliers.

And it makes sense. The justice system is already overburdened. Just as a matter of practicality, neither judges nor prosecutors wish to send non-violent offenders to prison. The last season of Serial, which followed a bunch cases in the Cleveland court system over a few months, showed this. People who deserved to go to prison, went prison. People who didn't (even if they were guilty), didn't.

From a big-picture perspective, the vast majority of people in prison deserve to be in prison.
I liked this a lot. But, having said that: the short write up glosses on the net present value vs investment outcome decision. Its a strong sell to the precautionary principle but without discussing the downside consequences for long-term rates of return if speculation is damped out (for instance) from an excess of precautions. I might add AGW stands as a bloody good reason to be a lot more cautious about future costs and risks of 'business as usual' decision making
Standing on the shoulders of giants and all. The internet is a success big enough to handle multiple "inventors." Also, no small feat was accomplished by those that put a computer in every home or so (for their own profit of course). Without them, no need to connect
> At least with C, if I try and treat something as a size_t it will try and behave like a size_t. It might not actually be the right type and cause problems that way - but the behaviour is within the expected bounds.

Yeah, until the compiler figures out it's really not a size_t and that it's free to do whatever it likes to your operation.
The Curious Death of Europe – Insightful Conversation with Douglas Murray(2019)
> This is more than programmer convenience, this is about system simplicity, absolute correctness (too many bugs because of unicode and complex layouting) and above all about _forcing_ people to use said lingua franca to become comfortable speaking it.

The reason the writing system in computers are simple is because the latin characters are simple, and the majority of early computer users (which the majority of was English speakers) didn't feel the need of sophisticated systems.

I (often) find that complexity that is inside the western culture is warranted, while complexity not in western culture is not.

While not a great analogy, think of TTS. English TTS is (at least from what I have heard) not that easy (encodable in logic, but not as simple as mapping characters to audio). That resulted in some sophisticated TTS systems, where it can handle lots of different phonetic structures.

Compare this to Hangul (the Korean character system) where every character is composed of several mini-characters which have a unique mapping to audio. Basically for a minimal viable product you can just convert text to decomposed format(NFD) and map the char points to audio.

Now, let's say that some company (an arbitrary choice, Facebook) decided to make a global TTS product, first in Korea. They just decided to map the char points to audio and post-process the audio. This TTS architecture obviously can't handle English without some major architecture changes. Then Facebook decides, this is a problem in English where the phonetic structure is unnecessarily complex, and won't provide TTS service to English users.

This is something similar to what CJK users face, that people just won't make products that work reliably with CJK.
> No matter the language, doing more work is always more costly than doing less… Because of the GC (and not the JIT) at least you can implement moving stacks in JS, but that doesn't mean it comes for free.

It comes at extra work for the language implementors, but the performance is the same, because the generated code is virtually the same. Or, to be more precise, it is the same within a margin of error for rare, worst-case work that JS does anyway.

> ???

Rust compiles to LLVM, and it's very hard to do delimited continuations at no cost without controlling the backend, but JS does. Also, because Rust follows the "zero-cost abstractions" philosophy, it must surface many implementation details to the caller, like memory allocation. This is not true for JS.

> The assert is always true

No, it isn't. JS isn't Haskell and doesn't track effects, and
syncFoo can change GlobalState.bar. In fact, inside some `read` method the runtime could even run an entire event loop while it waits for the IO to complete, just as `await` effectively does.

Now, you could say that today's `read` method (or whatever it's called) doesn't do that, but that's already a backward compatibility argument. In general, JS doesn't give the programmer any protection from arbitrary side effects when it calls an arbitrary method. If you're interested in paradigms that control global effects and allow them only at certain times, take a look at synchronous programming and languages like Esterel or Céu. Now that's an interesting new concurrency paradigm, but JS doesn't give you any more assurances or control with async/await than it would without them.
Twitter is now below Stackoverflow on the Alexa top list
There was calls for this after Hurricane Katrina but...

> Federal regulators have rejected proposed changes by the Federal Communications Commission that would require all U.S. cell phone towers to have at least eight hours of backup power.

https://www.sandiegouniontribune.com/sdut-cell-towers-fcc-12... (court challenge was CTIA Wireless Assn v. FCC, et al, No. 07-1475 (D.C. Cir. 2008))

The current regulations only cover fixed line or fixed-line-like wireless services https://www.law.cornell.edu/cfr/text/47/12.5
Oh nvm, I confused it with pinterest lol. I can't edit the post above any more. It's sad in general if platforms require accounts to view content.
Do you have plans to rewrite Sourcehut in a language that doesn't take 250 ms to generate each page? I'm afraid of what performance will look like when you get some serious traffic, and how your costs will scale. You may end up like reddit.

Other than that, great stuff.
> “Translit” (writing Ukrainian/Russian with English characters) was a thing in SMS days, when typing in Cyrillic would shrink your SMS length in half (because that’s how SMS encoding worked, I guess), but now practically nobody uses it anymore.

Ok that's exactly the type of thing I was thinking about. Funny it was born from the limitation of 140 chars rather than from actual input difficulty though.
In order to understand "shrinking", an unfamiliar term to me, I read the linked blog post on test case reduction: https://blog.regehr.org/archives/1284
> Right, but you probably mostly deal with a documents written in a language with a Latin script. Those who don't or can't do this need better.

So, I absolutely love different scripts, and I think it's awesome how many different ways to write mankind has invented over the centuries.

But if Latin-style scripts are so much easier to input into computers, and if computers are not just the wave of the future but the present as well, maybe it would make sense for more languages to adopt Latin-style scripts. After all, we stopped using fractions everywhere in favour of decimals, because decimals are in many cases (not all!) better. Ditto our switch from Roman to Arabic numerals.
OP. He was bemoaning the fact that we hold driverless cars to a higher standard than average drivers.
How Long Did It Take to Find Customers
Huffduffer
Can Bosstown’s Parody Be a Reality?