skysight-inc/HackerNews huggingface dataset:
Show HN: uFuzzy.js – A tiny, efficient fuzzy search that doesn't suck
Hello HN!

I became frustrated with the unpredictible/poor match quality and opaqueness of "relevance scores" in existing fuzzy and fulltext search libs, so I tried something different and this is the result. The main selling point is the result quality / ordering, with best-in-class memory overhead and excellent performance being bonuses. The API is pretty stable at this point, but looking for feedback before committing to 1.0.

TL;DR

The test corpus is a 4MB json file with 162k words/phrases, so give it a second for initial download. You can also drag/drop your own text/json corpus into the UI to try it against your own dataset.

Live demo/compare with a few other libs (there are many more in the codebase, in various states of completion, WIP):

https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...

In isolation for perf assessment:

https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...

To increase fuzziness and get broader results, try setting intraMax=1 (core) and enable outOfOrder (userland):

https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF...

Also play with the sortPreset selector to swap out the default Array.sort() for one in userland that prioritizes typehead-ness (the resultset remains identical).

Still TODO:

- Example of stripping diacritics
- Example of using non-latin charsets
- Example of prefix-caching to improve typeahead perf even further
- Example of poor man's document search (matching multiple object properties)

That's all, thanks!
I see a lot of use of FPGAs in things like cutting-edge machinery, warfare, and stock trading. Are there any cool hobbyist uses of these things? Always game to learn a new tech.
Maybe don’t blacklist an entire TLD then.
That's your perspective and it's perfectly valid to me, believe it or not. But it's just one perspective. The evidence I've seen has shown that their mission and the way it's prosecuted don't align with your perspective; that's reality and one should be cognizant of that.
I use Maps.me as my main map and navigation app as I don't like that Google knows where I go, and I can say that it's a very good alternative to Google Maps. However I have to say that now I'm a little worried because it's Russian-owned. Happy to know that there's an open-source alternative.
A non-state actor is possible, but unlikely. It would require an organization, a small group at least, that had the inclination, opportunity, skill and resources. Any one or two of those is easy, but to actually do it requires all of those simultaneously.

Furthermore such a serious attack from eco-terrorists would be fairly unprecedented. It's a far cry from torching a resort or tree spiking.
I was expecting constraint logic programming!
Your anti-cryptocurrency bias is blinding you to the fact that neither party to these conversations needs or wants any more money than they have presently.

When you're a multibillionaire and you're still building new shit from scratch, you build to build. Monetary gains are a side effect.
I like to say that when you try to make a "schemaless" database, you've just made 1000 different schemas instead.
Pardon us, but yes we are!
Um... OK?

Did you blacklist .sa since 2014 too?

https://www.hrw.org/world-report/2021/country-chapters/yemen
I think social gaming can have a lot of personal value (especially with the last 3 years being pandemic years). But RDO arguably is showing signs of a sunsetting service, so maybe it's best that this painful loss happen sooner than a few years later.
I've said the same, how is doing that any different from Microsoft using their OS to push their own products in the past when they got sued?

Having that stuff in Chrome would cost millions in terms of normal display ads for the number of impressions they would get
There is only one Empire on this planet, and that is the US. Since the collapse of the British Empire, there's no other country that falls so perfectly into the definition of an empire.
Like most things, the dose makes the poison. A little Red Dead is probably great, too much probably bad. Gambling, food, sleep all fall into similar U shaped curves.
Competitive in what sense? in which market outside of china? Cyclone V a decade old platform offers similar capability and is a tested platform.
At what point is it useful to blame a manufacturer for making a tool available which can lead to serious bodily harm?

This is the fundamental question behind drugs and firearms. It all boils down to how stupid, informed, impulsive, and gullible people are at various layers of the sales, distribution, and usage stack.

For firearms city dwellers generally believe the buck stops with manufacturers because if they didn't exist then nobody would shoot each other anymore (sic).

For drugs many believe the buck stops with doctors because they are the patient's advocate and authority figures perpetually repeat that doctors always know best because they are educated in the matter and the average person isn't. Americans have generally internalized this propaganda.
Text to text AI, it should be relatively easy to do too
Some real true colours being shown in these texts (including the other thread where Elon talks about what a “hardcore engineer” he is).
Since it's Russian owned, a lot of malicious actors have found .ru to be a safe heaven, this is more of a security thing than anything.
The submission title is editorialized. Article title: "Top Apple Executive Is Leaving After Making Crude Remarks in TikTok Video"

Also, it's a dupe of https://news.ycombinator.com/item?id=33026355 (22 comments)
4cm, not 4inches, IIRC. Plus concrete, again 6cm, not 6inches. Still massive.

The weight ist 13 tonnes steel + 13 tonnes concrete per segment, IIRC, diameter is 1.1m and segment length is 13m. Steel is ~7kg/dm³ => You can now calculate the wall thickness.

OK, OK, let's not talk: 130 dm * ((11/2dm + X)² - (11/2 dm)²) * \pi * 7kg/dm³ = 13000kg
=> X = 0.39dm

EDIT: Corrected the sign...
No, it’s security theater.
> but it's another to prevent you from mapping it when you do need it

How do you know if it's a user needing to use it, or an attacker pretending to be a user needing to use it?
The best reasoning I've seen on the matter is this:

Countries in Europe have been pretty clear that no-one is going to back down on supporting Ukraine in order to get some cheap Russian gas. So the pipeline is useless to Putin.

However, a rival oligarch/military leader/whatever in Russia could try to cut a deal with Europe and say that they promise to kill Putin and get Russian troops out of Ukraine, in exchange for agreements to resume the gas trade and no questions asked about who the money for the gas is going to.

So the pipeline is useless to Russia as long as Putin is in charge, but it's also a threat to Putin, personally, since it can be used to fund a coup against him. Therefore, he decided to sabotage it. If you think of Putin as a paranoid mafia boss foremost, and a politician and world leader second, this explanation makes sense.
Basically every piece of medical knowledge starts out as clinically worthless and over time grows into it. mRNA was clinically worthless until COVID. Radiation therapy did more harm then good when invented but is now a staple. CRISPR is still clinically worthless afaik.
Taking a contrarian position of something that I strongly believed to be a joke taken too seriously at a place faraway from the work.

However, it was at a public place. And unquestionably so.

As I recall, nearly all CEOs have a “labor” contract which have onerous clauses that stipulates “public behavior”.

And it goes by many names:

- Behavior Rules

- Morality Clause

- Employee Conduct

- Standard of Behavior

And the one that was probably broken is the part about making other top-level CxOs and its company looking bad.

This is why being a leader is a lonely place (at least for me).
>sadly this partly applies to RISC-V too.

Not in any way that has any relevance.

>Not as big of a problem as on x86, but still a fundamental limitation.

Huge understatement. Instructions being any size 1-16 (x86) vs being either 16bit or 32bit long (RISC-V).

As with everything else in RISC-V, the architects did the weighting, and found that the advantage in code size overwhelms the (negligible by design) added decoding cost, for anything but the tiniest of implementations (no on-die cache + no builtin ROM).

As it turns out, it would be difficult to even find a use for such a core, but in any event it is still possible to make one such very specialized chip, and simply not use the C extension.

Such a use would be deeply embedded, and the vendor would be in control of the full stack so there would be no concerns of compatibility with e.g. mainstream Linux distributions. They would still get ecosystem benefits; they'd be able to use the open source toolchains, as they support even naked RV32E with no extensions.
So does the war.
He mentions in a followup tweet (to someone recommending using Google Takeout to retrieve his save file) that he doesn't play story mode, so I assume there is a multiplayer mode.
>most people expect that we are going into a recession

by the standard definition we are already in one, odds are we are actually going to enter a global depression and probably one worse than 2008
Just checked his channel and a few hundred views on each video. Can one really make a living off that?
Barely over a century ago you could walk into any pharmacy in America and buy a vial of cocaine and some heroin no problem, with a pint of whiskey to wash it down. It was precisely on account of rampant drug abuse and the resultant social ills that we got drug control.

Of course the modern regime somehow manages to combine the worst outcomes of both permissiveness and prohibition. We now have junkies overrunning our public spaces while a draconian enforcement regime manages to trample our civil rights without providing any social benefit.
It's called burning bridges. Both domestically and internationally. It signals that Russia is committed to seeing the war through regardless of what the West does and it consolidates power domestically by discouraging any potential conspirators from acting against Putin since destroying the pipelines makes it virtually impossible for any replacement to resume delivery of gas to Europe
While interesting and putting perspectives into place I’m having a really hard time following how there can be a black hole merger area (let alone the black hole era) having the model of redshift engrained in my brain.

Serious question: wouldn’t all mass that had time to gravitate towards and convene into galaxies, stars and black holes been drifting too far apart by then to be even remotely close for their gravities overcome these - then - unimaginable distances?
“well, it’s cheap wine, what did you expect?” (As if I should be willing to accept a significant risk of death for a $13 bottle of wine!)

If you aren't convinced that things haven't gotten better over the years, here's your proof.
That seems like a you problem
> I was not a Stadia user, but events like this reinforce my motivation to drop all the Google products I possibly can before they drop me.

Ditto. Im literally considering phasing my personal gmail out to a domain that I own...
we may need to add a disclaimer or figure out another way to represent this.

Some companies don't hire out of certain states because of tax reasons / others would like employees in certain timezones so we're going to be using location to determine which jobs are available to you, and hybrid jobs are within a certain radius (we're still building up the hybrid jobs in the system)
Can I agree with both of you?

Reading the info from Wikipedia is difficult if you have no chemistry education. For complex cases I read Wikipedia and also obscures sites of Internet with a huge bag of salt on the side of the screen, but it's difficult.

My recommendation is to get a second opinion (from a real medical doctor) and perhaps a third, and sometimes more.

For normal people a pill looks innocuous enough to take the medical advice at face value. Anyway, opioids have a long history to get my spider sense is tingling, even before the recent 10 year events.
Clearly you haven't read the article. It specifically mentions they don't play story mode (single player).
Standard (signed) integers in C could be implemented to trap on overflow. Overflow on signed integer is undefined operation, like NULL dereferencing or division by zero, so trap is perfectly expected behavior.

The issue is that unsigned integers must not trap on overflow, and CPUs, if they could be configured to trap on arithmetic overflow, usually do not have separate opcodes for overflowing arithmetic operations and trapping arithmetic operations.
New to the Web Platform in September
For everyone having opinions about how many hours this person has spent playing RDR2, you should probably note that he's an RDR2 Youtube and Twitch content creator/streamer. So at face value, it has been his job for the last 2.5 years.
I could understand Rails as it is for an already dynamic language. But Spring existence which very heavily rely on reflection always perplex me even though I am forced to use at work. It throws runtime exceptions which would otherwise been compiler error in Plain Java.

Further it turns some straight forward business logic in to some cultish bulshittery of endless packages, classes, annotations and so on. But hey, there is no xml config now, so it all is super modern stuff.

Just yesterday, I had to look into perf issue of Spring based project. It has probably 500 line of core business logic. But it is littered in tens of packages and dozens of java source files.

So it is standardization for sure but it does not seem to be leading to better results. It is however giving a great cover for bad stuff because now code follows all best practices as per Spring framework.
Adulthood is essentially a learned response to a dangerous and traumatic environment. Extended childhood is the essence of humanity (as contrasted with animals.)

Neoteny - "also called juvenilization,[5] is the delaying or slowing of the physiological, or somatic, development of an organism, typically an animal. Neoteny is found in modern humans compared to other primates."

> Neoteny is seen in domesticated animals such as dogs and mice.[25] This is because there are more resources available, less competition for those resources, and with the lowered competition the animals expend less energy obtaining those resources. This allows them to mature and reproduce more quickly than their wild counterparts.

https://en.wikipedia.org/wiki/Neoteny

The point of being human is to change the environment to permit a more relaxed and enjoyable life.

What we call "adulthood" is the adjustment to a harsh reality, but that reality is not immutable. Science and technology (developed by our "neotenous" brains) gives us the leverage to literally remake the world in our image.
Someone needs to warn those outside of tech about Google's obsession with ruthlessly killing unprofitable or deemed useless projects.
8k hours on a job should be leading to portable artifacts that are difficult to take away:

Something like 120K of income (probably closer to $200k), and a progression of skill development. Also could have intangibles like a feeling of contribution, socialization, purpose.

Yes, exceptions exist. But many could make their job have these kinds of outcomes if they choose to do so
Engineers tend to think of things like this to be easy. A typical small restaurant owner is probably also a chef/cook of some kind. Their view of the internet might be internet==facebook and they probably think how to properly flavor something is easy. Contrast that where I have to go look up 5 recipe websites, watch some youtube to really grok it and then will forget after a day or so unless I wrote it down and will end up doing the same thing all over next time I cook that dish.
This cannot possibly require WSL2. What the heck? If I had an afternoon to waste RTFSing, I'd fix this. Some of us are stuck running WSL1 because Hyper-V breaks features we need in other hypervisors.
You can buy them from Amazon Japan (and they will ship to the US):

https://www.amazon.co.jp/-/en/Sony-DPTA-RS1-Stylus-Pen-Cores...
> One of these days I mean to to install on of those mains outlets with built in USB-C ports:

I really wonder about those.

I remember reading an article where someone tested a bunch of different power bricks and found that they really vary in quality.

The cheap ones had really bad voltage sag and other problems. And they were an unsafe design (not enough separation between the AC and DC sides).

Personally, I'd trust an anker or apple brick more than whatever lowest bidder device is in those outlets.
You don't get to decide what's the best thing for another person.
There's a very big difference between gaming for 4 hours a day and spending the same amount of time in a single game. Watching ALL episodes of Friends takes 88 hours, you'd certainly call a person crazy if they watched Friends +60 times in a 4 year period.

And let's not pretend like WoW is normal or particularly well accepted.
He's a regular, if you didn't know. Even get's daily summaries when he's too busy to read it himself.
Interesting to learn. Are these issues fixable? I'm not familiar with what changes went into UGC but something like changing the compiler toolchain seems like a strange decision.
Banking (e.g. Nubank) and other high stakes applications (e.g. JUXT).

In my small experience, I've been using Clojure for nearly 4 years to implement real-time ML pipelines.
> In many ways, Gonsalves' story is emblematic of a cohort of millennials who have been screwed over by economic forces outside their control since they entered adulthood.

Okay, but the economic forces are not, as the author argues, just bad timing. This is only the latest generation to experience the systematic impoverishment of workers which is progressing on a very long timeline.
His bio says he's an RDR2 content creator on YouTube and TikTok, so arguably he is treating it like a job.
What extensions are you using? I (anecdotally) never have any of the issues you describe. And I'm on my computer 12+ hours per day, most of which is spent galivanting across the web in Firefox. Are you using a forked version of Firefox?
There are four different versions and a wide variety of power choices that each “USB C” cable is permitted to make. So the answer to your question is “it depends”, since 100W support is optional in USB-C cables.

(Note: If you change “USB C” cable to “Thunderbolt 3” cable, those choices are all zeroed out. So the answer to that modified question is “yes”, since 100W support is mandatory in Thunderbolt 3 cables.)

This will get better over the next year for certified cables that print USB-compliant logos on them, with the end of SuperSpeed branding:

https://news.ycombinator.com/item?id=33034530

> Branding for certified USB Type-C cables is also being updated. Rather than simply listing their data transfer speeds, cables will also (for the most part) have to list the charging wattage they’re capable of carrying. So a cable can’t just be branded as being a 40Gbps cable as with last year’s guidelines, it’ll now also have to list a charging speed like 60W or 240W.

But I’ve never seen the USB logos printed on a cable before, so it remains to be seen whether the reduction in complexity to Gbps/W only is sufficient to persuade cable makers to certify their cables or not.
Do believe what has been accurately reported. Also, have hope for the world.
As others have pointed out they frequently brag about their alleged successes. They also lack any oversight by congress or the presidency(in practice). They’re also know to have surveilled and threatened active members of congress.

They posed as a polio eradication effort to try and find Bin Laden, and failed nothing their stated aim and literally prevented the eradication of polio. It’s unforgivable.

I’m not against having intelligence as an arm of the state department and accountable to congress, but the CIA is a malignancy on the body politic.
Finetuning Stable Diffusion for Text to Pokémon
Musk is right though: What are they actually doing? It took them a decade or so to build an edit button despite having a head count of almost 8000. Reddit has less than 1000, and they are supporting a lot more features than Twitter.
Since .ru hosts a LOT of malware that's running wild, and I don't particularly care to view anything on .ru, we'll just agree to disagree.

Good arguments btw.
How is an example of a child death from it, "manipulative"? Are you not supposed to be moved by an example of a human death to a poison marketed as a drug?
No, there is very much an online multiplayer side to the game
I've never heard it used like that but actually makes a lot of sense if thinking of an asterisk as the glob wildcard. Plus it sounds much better when spoken aloud in the context compared to asterisk or star
Is short lived feel good chemicals all that matters? Doesn't sound like a healthy life philosophy to live by.
emerald fortune? His father paid 275k USD or so for that mine. It's not that much...average people on HN make that in a year.

He says his father invested 20k or so in his business, again very little by comparison.

Elon Musk was definitely privileged, but he built himself up.
Fun fact: bird shot is the only item you’re allowed to *remove* from your mouth when dining with the Queen of England.
> is working the way we do healthy either?

Hahahahaha. Hell no. Most today's overwork is for escaping financial insecurity, anxiety, due to obsessive-compulsive tendencies, making up for one's lack of self-worth or a mix of all of those...
I think you overestimate doctors.

In the early aughts I was prescribed vicodin (which I didn't take) and made a joke "I hope I don't get addicted to these" and my doctor laughed and said "These aren't like opium or heroin. They're non-habit forming if used as directed"

I suspect the "if used as directed" was doing a lot of work.
Legally, you can’t just invade another country but that didn’t stop Russia and it has never stopped the US. Do you think Russia is going to care about the legality of debts they owe to a system that is sanctioning them? What more can we penalize them with if they don’t pay, nukes? They are literally removing themselves from the system the west has set up and are creating a new one with other BRIC nations to try to compete.
You're underestimating the sensitivity of seismic sensors. Bear in mind that they picked up not only the initial rupture, but also the noise of the escaping gas after the fact.

I've been firmly in camp incompetence-before-malice since they went pop; the 17 hour gap just doesn't feel right for an intentional attack. Shoddy maintenance causing catastrophic failure by some mechanism even if it's not hydrate plugs makes at least as much sense to me as geopolitical tomfoolery.
Fearmongering from a (former?) spook at the CIA? I'm shocked!
> Also, I think it is a statement to EU: your underwater infrastructure is not safe.

I don't buy this "blow up our pipeline to implicitly threaten others" narrative at all, for the simple reason that all the involved countries knew Russia had this capability already. If it was meant as a demonstration, it would be a demonstration of madness, not technical ability.
I learned to code before the Internet so there was a very small amount of examples and I had to trial and error the rest. My first code was bad quality, but it did work.

After that I had many things to feel bad about from previous works and was motivated to do the next thing better, finding my own ways to improve it, not always hitting on the best way.

Then FOSS started up in earnest and I could work on and learn from sources like Linux, suddenly the areas I was lacking in could jump forward and my code was more than good enough for my own foss projects.

I have a liberally-licensed project used by a lot of people for a long time. But I can't find a way to make any money from it.