skysight-inc/HackerNews huggingface dataset:
I think you can avoid taking the square root in the distance formula (by squaring the comparison term), so this actually could be the fastest way possible to reach the effect, because of all the sampling, the points outside are a minority. What the tweets mention instead is you need to take the square root, that is the slowest thing in the expression.
That definition is more than a bit archaic.
It's to make sure the result is either value 0 or value 1.

Without this, the result could be like 2, and this is not wanted here.
I suspect in a lot of cases you'd find the shooter either was the bully, or was ostracised because of their failure to follow basic social norms. The Columbine shooters were neo-Nazis. https://www.splcenter.org/fighting-hate/intelligence-report/...

People have repeatedly called out online hate speech as a contributory factor in mass shootings, and that runs into first amendment problems.
Apple's feature is inherently a monopolistic feature and something not really new. Login with FB and Google already had options for not sharing email.

I still prefer to signup using a spam email address.
First against the wall i'm afraid.
Actually, I understood just fine. I’ve been doing this kind of thing for a while. I’m not even disagreeing. I understand where you are coming from.

It’s just Apples and oranges.

I write in Swift, as a native developer of Apple software. I won’t go into all the reasons I do what I do (actually, I’ve covered a lot, in this thread). I have my reasons, and there’s nothing wrong with my approach. I get a lot done, very quickly, and at a fairly high Quality level.

Life is a compromise. We always need to make trade-offs.
Fwiw, I've heard of (not used, heard of) at least two of those in the UK - and not the one you say is UK-based.
Pretty much the same thing really. Coerces the value to true or false (or 1/0 in C). E.g. !!2 is 1/true.
I'm curious where this is coming from, as I've never heard of this happening and it seems a bit off-topic.
I think we need to predict what kids will become, what they actually want, and fully commit to giving them that outcome. It’s necessary to take some risk of an outcome like WW, but they were just being opportunistic. We need to pursue for children a narrative with intent.
Why though? Ternary is always introduced as syntactic sugar for if/else.
Obviously not, it's a problem to decide to fake non-existing tech but more of a management decision than a problem with the technology itself, there is an infinite number of things that don't exist, no matter how much you want them to exist and if you are not capable of coming up with a working solution and rely on the world around you to move fast enough to bail you out then I would say that is a psychological problem more than anything else.

A common theme right now is 'AAI', using people to fake an AI that may not come into being at all, let alone before your runway (inevitably) runs out.
Ancient cypress in Chile may be the world’s oldest tree, new study suggests
Nope, it’s definitely an SSD, no HDD. I think the bloat of the window installation does not help either.
> buying a gun is a civil right

Yeah, this is the point of insanity; so long as people continue to believe this, there will be a school shooting in the US every few weeks. That's what people mean by "the US has chosen this".
Mind and Machine: 3 Brain-Computer Interface Technology Trends
“The human brain has 100 billion neurons, each neuron connected to 10 thousand other neurons. Sitting on your shoulders is the most complicated object in the known universe.” – Michio Kaku
Until Americans realize that owning a gun is a dangerous thing, there will be no change.

Guns are a force multiplier, they allow someone that is armed to have much greater lethality than someone that is not.

No, I don't care if you go hunting or target shoot for "sport". Tough. Live with it. The world won't be worse off if you don't shoot deer or rabbits or ducks.

Weapons have specific uses in agriculture (removing pests, humane disposal of injured livestock), they have specific use in law enforcement, and they have obvious use in military activities.

All other uses are nonsense in 2022. There are occasional times where someone armed has been able to use those arms in self-defense, but the use of deadly weapons as opposed to self-defense or incapacitating weapons is not an adequate reason to outweigh the disadvantages of these weapons being generally available.
America and Americans have demonstrably done absolutely nothing for decades about what an outsider sees as a severe problem that must be fixed at all costs.

If America and Americans are not doing anything to fix the problem, they clearly can't think it's much of a problem.
> those who break the law with the guns they currently have

Those who break the law regularly have the means & connections to buy a gun illegally.

I very much doubt distressed teenagers will have the money & connections to buy a gun illegally especially on short notice.

Definitely won't stop all crime (just like it doesn't even in countries where guns are illegal) nor resourceful, determined attackers, but would definitely cut down on crazy teenagers doing mass shootings.
As I said before, it’s not a HDD but a SSD.
>>I know many experienced Unix people hate this trend, but there’s a reason some of the most actively evolving language ecosystems install more and more of their binaries into the user’s home directory.

The future is containers, which is basically increasingly thin images tailored to your application.

These days I struggle to find Perl on many EC2 instance I work on. Its always good to have something like Perl in your installation for some quick scripting work. But most don't have Perl installed.
I wonder if compilers should have pragmas to control the exact code generation, e.g.

#pragma avoid_speculation

#pragma constant_time

Feels like it might be more reliable that writing C and hoping the compiler does what you expect.
That only has options to install microk8s with snap.
That sounds like a good compromise for the windows machine. Thanks, I will definitely try that out.
I wouldn't call it attack surface, I would call it a threat model. And yes, the threat model of capabilities includes the fact that knowledge of the capability connotes the capability. If it didn't, it wouldn't be a capability.
It appears to be uniform. I tested empirically in Python:
https://pastebin.com/raw/ca03uywJ
IIRC you can mix different editions in a project, and I think backward incompatibilities are also fewer (and detected at compilation)
djb didn’t invent elliptic curve cryptography. Elliptic curve cryptography was introduced in 1985 by Victor Miller and Neal Koblitz who both independently developed the idea of using elliptic curves as the basis of a group for the discrete logarithm problem.
The jury has to decide whether the evidence available constitute proof beyond reasonable doubt. Someone has to make that decision, just like you are doing in your comment.
Is it? What empirical evidence do we have that mandatory veganism or outright banning of cars would be a net positive, let alone feasible? To me those two ideas sound like perfect examples of the non-empirical lofty ideals that the previous comment was rejecting in the very first sentence.
This article caught my attention because of the Javelin reference. There is a huge disparity between number of missiles sent over and the number of vehicles seemingly destroyed by missiles. If the Javelins really have a 10% kill rate, the numbers make better sense, even more so if there are plentiful battery failures.
No, it does not mean there is "a way", it means that the name is the permission. Period. That is what a capability is. If the name is not the permission, it is not a capability.
If I were a CEO of a multi-bilion $ company, I would definitely put my best engineers on a long-term project like Fuchsia.

Google is one of few companies with capacity, capital and mindshare to make these kinds of projects.
"All the really bad security vulnerabilities were obvious."

I used to work for a company that did a lot of acquisitions and I often involved in working with teams at newly acquired companies - although it wasn't my main focus I did used to ask some simple security questions and it was remarkable what these uncovered. I literally had people run from the meeting to fix services after I had asked a simple question....
The author of the macro cannot know what form the argument expression to the `x` parameter will have, and the double Boolean negation (`!!`) forces the result to be a Boolean. Ideally, this will be just the Zero bit in the condition register after `x` has been compared to zero.
I don't know specifically which 80s films you mean, but there were plenty made in the 80s that rehashed things that came before. Isn't that true of all art, ever?
> Banning guns altogether (rather improbable) will only leave law abiding citizens at the mercy of criminals.

So, ah, what are the Police for?

Also, hundreds of millions of people in developed countries without guns around the globe live "at the mercy of criminals" but experience less crime, less violence, less homicides and less gun deaths than people living in America.

Your statement makes no sense.
Through looking for 'automation' games on steam, and also a YouTuber called Aavak has played some of it https://www.youtube.com/watch?v=J7o9OTDOCRA&list=PLGe_S5n7Mj...

Seriously wish the best for you, developing and releasing a game at all is a big feat, gaining traction is another beast entirely :)
How about basing policy on not getting innocent children and adults mass murdered on a regular basis?

They are outliers of outliers in other countries. In the US, it's once a week.
Yeah, this is basically what Free Pascal does too. The default language mode is actually kinda obsolete (it is more of a Turbo Pascal 7+), but you can change dialects with the $mode directive (with most common being "objfpc", an extension to the default "fpc" mode that adds more advanced features and "delphi" which is used for Delphi compatibility to allow sharing code). In addition to that many new features are enabled with additional directives, like $modeswitch (e.g. "$modeswitch advancedrecords" enables using methods and management operators in records and "$modeswitch prefixedattributes" enables attaching custom attributes to classes, properties, etc to be accessed via the RTTI later) and $scopedenums (so that when you have an enum like TFoo = (Bar, Baz) it wont create Bar and Baz globals like in classic Pascal, but TFoo.Bar and TFoo.Baz - the fact that it isn't a modeswitch is most likely for Delphi compatibility as AFAIK Delphi doesn't have a modeswitch directive - or mode directive for that matter).

It does require having a litany of switches at the top of each source code but it beats having old code break (though i do think that in some cases the FPC devs go a bit too overboard - e.g. attributes would be a syntax error anyway).
> I think the imagery of a tiger works quite well: a stalking, murdering animal that will strike when their prey is most vulnerable or least expect it. They can appear like soft, fluffy, playful cats on the outside, but like most carnivores, they simply cannot survive for long without killing other animals. They are also almosg always alone when they're not raising offspring, which is not necessarily something you'd want to associate yourself with as a human.

That's an interesting take actually. I never considered it like that, because often these types of mothers pride themselves on being "tiger mum" that protect their "cubs". In my head that was always simply wrapping an abusive reality into a cute narrative.
Yes but we have no way of quantifying that similarity except the data itself. Better to look at the country's own performance in 2018 and not have to pretend to be able to correct for any of the other of a multitude of factors.
EVs are not yet competitive with gas cars, as battery manufacturing needs more ramp up / development to mature. Every company is forced to take shortcuts with EVs right now, and it will be like this for a few years, but I expect the shortcuts to decrease over time.
Hello fellow South American :D you might enjoy the 1941 book by Charles Mann. A lot there will already be known to you, but it is still a very good book.
web.archive.org is fine.

That .ph link is a tracking infected garbage, requiring JS.
Klarna is quite large, and I'm a bit surprised to see them on the list since I thought they were doing quite well and there's real economies of scale in their business (digital payments & financing). As for the rest, meh.
In the Rails world we have https://bullettrain.co and https://jumpstartrails.com which both have open source templates for building SaaS services.
Lawmakers vote to legalize recreational marijuana in RI
> their model probably shows an image of a woman when you type in "nurse" but they consider that a problem.

There is a difference between probably and invariably. Would it be so hard for the model to show male nurses at least some of the time?
What about banning new people (e.g.: born in 2016 and onwards) from using them like some countries are banning smoking?
Most of Rust job offers are in crypto
> How is this any different from having a repeat of the python2->python3 fiasco (which, AFAIK, Perl developers are trying to avoid)?

AFAIUI you can mix Rust 2015, 2018, and 2021 crates; so a developer can update their own crate to 2021, while not having to completely re-write the dependencies which are still Rust 2015. With Python 2 -> 3, my understanding was that everything had to be updated recursively.

That said...

> I personally like the “edition” concept of Rust a lot better: get over with all necessary breaking changes in one swoop, but then have a new (hopefully long) era of backwards compatibility.

What they describe actually sounds somewhat similar:

> At some point in the future, the PSC may decide that the set of features, taken together, represent a big enough step forward to justify a new baseline for Perl. If that happens, then the version will be bumped to 7.0. If this happens, Perl 7 will still be backwards compatible with Perl 5 by default – you'll have to put use v7; at the top of your code to use all the new features. Think of use v7 like Modern::Perl and similar modules.

So the 'use <feature>' is going to be similar to Rust's "nightly unstable features", but actually being stable; and 'use vN' is going to be like Rust's Editions.

It's just that they don't think they've accumulated enough features to release a new Edition yet.
Ah Perl!

The old friend, you can always rely on to do quick scripting work. I've written non-trivial quantities of Perl in the past, and maintained other people's Perl code too. Contrary to popular opinion, I've always found it easy to maintain.

I still call upon Perl to do

open(FILEHANDLE, $file) or die;
while(<FILEHANDLE>){
....
}
close(FILEHANDLE)

Sort of work.

These days I do good deal of work in Python. Python itself has been heavily Perlified over the years, especially Python3. Its fame seems to have come moving away from Pythonic principles, to Perlic principles. They add lots of features, even syntactic features, libraries and even things like typing. Python isn't the small, minimal core of ecosystem anymore.

Every single release of Python gives me the Perl feel from the old days.

So I kind of don't miss Perl at all, after all we managed to turn Python into Perl.

Long live Python, Long live Perl.
> Guns are a force multiplier, they allow someone that is armed to have much greater lethality than someone that is not.

So is a van, see Europe.

> Guns are a force multiplier, they allow someone that is armed to have much greater lethality than someone that is not.

Tell that to wild hogs. Population control is a thing, especially needed for invasive boar.

> and they have obvious use in military activities.

Exactly, 2A is for a well regulated militia. It's to protect the rest of your rights. We'd still be under the crown and possibly still in the slave trade if not for guns. (GB and other powers did not end it first, they simply outsourced it to America)

> There are occasional times where someone armed has been able to use those arms in self-defense, but the use of deadly weapons as opposed to self-defense or incapacitating weapons is not an adequate reason to outweigh the disadvantages of these weapons being generally available.

There are many instances where civilians are able to defend themselves or others. Guns are equalizers for weaker humans against stronger ones, they are also deterrents. Gun crimes usually happen in strict gun controlled areas because criminals know it's unlikely they will be met with force.

I carry every day just in case, both for animals and humans. Criminals will not respect your gun laws, you are only hurting law abiding citizens.

edit: to below, you'd have to look at it by city, not state. most gun violence is driven by gang/cartel violence, which exists largely in certain key cities of a certain political spectrum that happen to have strict gun laws.
>There are (conservatively) hundreds of thousands of defensive gun uses per year in the United States

In all civilized countries, these are called murders. Someone entering your home does not give you the right to shoot them.
Yet languages with totality checkers and coinduction like Idris exist. These allow you to make useful but provably terminating programs. Humans are able to construct these termination proofs, though presumably not for all programs.

In practice, this means that the reductive take of Turing completeness, the halting problem and Rice's theorem is misleading in some way.

Yes, there is no general algorithm for constructing termination proofs for any arbitrary Turing machine. But there are clearly classes of problems for which a biological computer (a human) is able to construct termination proofs and proofs regarding other semantic properties.
That will probably change if this lawsuit against Vizio succeeds:

https://sfconservancy.org/copyleft-compliance/vizio.html

If it does, then any recipient of Linux will be able to sue for compliance.
My mom was a programmer (in the 90s) and they never thought this is the way to make a living. But they saw my interest in programming and went along with it, taking me to classes and buying a PC. It turned out spectacularly good for me, obviously.
Are these grocery-delivery services popular in the states / somwehere else? Never understood the market for them in the EU. Either you live in a city, have - at worst - 10-15 min to walk to a store, or you live outside a city where it is 10-15 min with a car to a store and the service is not available. They will die as soon as they stop subsidize the cost with VC money.
I'd love to play an adventure game based on S03E03, "The Very Pulse of the Machine" of the "Love, Death & Robots" series.

Exploring Io, finding ancient aliens technologies and merging mind with machine by taking drugs. That'd be amazing.
truth is subjective and not absolute my dudeness.
It’s pretty sad to remember that the role he was most known for is in Star Trek, where he had to play an annoying character and, like with Star Wars, people took their dislike of the character out on the actor.
> And if you stray into the "clever" subset of Perl, frankly it becomes hell

Yeah, this is the thing... it's very very easy to go down a one-way street to an endless hell of incomprehensible line-noise code and "clever" tricks that are incomprehensible and unmaintainable.

On the plus side, having dealt with the hell of "clever" perl early in my career (and, ahem, maybe having been guilty of writing some), it has beaten into me the absolute necessity of writing the simplest, clearest, not-clever code possible. In some other language.
I'm a child of Chinese immigrants, and I don't agree that most Chinese children have similar experiences. Yes, Chinese parents will often push their kids into doing things. I myself was pushed to learn an instrument, do after school work, etc. This often leads to conflict between parent and child, especially when the child is exposed to more western upbringings that doesn't force kids to do these things.

One big difference is that Wil was robbed of his childhood and friends for acting, while a lot of the after school activities forced upon us were formative for childhood. Wil was actually working a real job, I just got piano lessons and had to practice almost every day.

Another big difference is that Wil's parents mostly acted in their own self interest, whereas most parents bussing their kids to after school activities mostly do it for the kid (for college admissions usually).

Obviously there is a wide spectrum, and there are exceptions (the original Tiger Mom probably crosses the line for example). However, I think saying in general that overzealous parents are the same as abusive parents downplays the abuse that Wil and others received.
>Citation needed.

Anyone carrying a gun in an airplane, or any public transportation method is either a security officer, or a criminal. There are no good reasons as a regular-ass Joe to carry your Glock in an airplace. Not a single one.
> power consumption

That's the only one I don't quite understand. All your other points
are definitely great objections.

Are you saying that a clocked system consistently uses less power than
a stateful but quiescently 'static' circuit? I can imagine there's a
reason, but it goes counter to my experience that the faster you clock
a microprocessor the more power it consumes; therefore at zero clock
rate a purely data-driven system should consume the least power. What
am I missing?
> Nowadays an interpreted language running in a browser on a low-spec PC is more than enough to do a ton more channels without even breaking a sweat. Progress is amazing.

Well, technically modern JS engines do compile JavaScript to native code and they tend to be among the most advanced on the topic, so it does kinda make sense - it isn't like, e.g. QBasic that -IIRC- had such a simple interpreter that assigning commonly accessed variables at the top of the program would make it run faster :-P.
> The fact that they felt the need to ban knives in London

Knives (in general) are not banned in London. Some types of knives are outlawed in the UK.
I'm not sure if the methodology is sound.

Let's say you want to measure if code is faster with branch or cmove, so you make a microbenchmark. In that case the branch predictor has little other branches to keep track of, so it definitely has enough resources to predict that branch well.

In a real world program that function may only be called once in a while and the branch predictor may consider other branches more important.

I wonder if cmove has advantages even if your microbenchmark tells you it doesn't. One side effect would probably be that it takes pressure off of the branch predictor, which we have no good way of measuring in microbenchmarks.
Ask HN: Does anyone remember a webzine from the 90s called “Salvo”?
I'm trying to find any record of it. I used to read it a ton as a teenager... it was one of the first "news" websites I ever found. Archive.org isn't helping...nothing at salvo.com but I'm not even sure that was the address. This would have been around 1994-95... it was kind of an anarchist / foreign policy zine if I remember. Not the current Christian fundamentalist magazine called "Salvo" at salvomag.com, which seems to have been around since 2006 (although the new one has really funny headlines like "How Pornography and Drugs Changes your Brain" [sic]).

Anyone got a recollection or a copy of what I'm talking about?
For all the buzz about python3 fiasco, we're pretty much migrated now and py2 gets dropped from supported versions and system repositories. Perl devs would be in a better situation with a "fiasco" like that. Ruby went through its own big breaking changes at least 2 times before as well. So... if people have good reasons to stay, a big change won't drive them away.
From Sweden. The two Swedish companies are very well known. Klarna specifically is huge.