skysight-inc/HackerNews huggingface dataset:
> Lets you test if a value is definitely NOT in a list of pre-stored values

wouldn’t a hashmap / dict / object do this in 0(1)? Input goes in, is hashed, the key exists or doesn’t exist?
That raises the question of why it seemingly hasn't happened already.

One option is that what you're describing just isn't possible, that humans are already butting up against some kind of limit which is not avoidable simply by being raised with a different language.

Another option is that one can be raised to think in "pre-compressed" structures, but nobody does because it's a bad tradeoff, dropping "general thinking" performance with a worse impact than any "faster speaking" benefits. (Such as being simply slower, or more error-prone, or more demanding on attentional resources, etc.)
It's hard to monetize politically.
That's fair. It's what I was trying to acknowledge when I wrote "I can imagine a scenario where you want to know _when_ a record was logically deleted".

That said, I'm genuinely curious about how often and in what way that time-based information is actually used.

For example, I often see created_at and modified_at columns that are completely ignored by the actual business logic and application code that are only used (if ever) for ad hoc diagnostic purposes like reconstructing the sequence of events after some catastrophic error in the app logic screwed up the database. If run-away-logic-screwing-up-the-database is a legitimate cause for concern, that's probably reason enough to include that extra meta-data, but I can easily count on one hand the number of times that's come up in practice across my long career. I mean, I also include that sort of column often. And there are certainly entities for which those data are relevant for application logic and/or reporting purposes. But there are definitely cases in which those data are never used at all too.

If this `deleted_at` timestamp-as-boolean convention is popular enough in the Rails community to be universally known, is there some common use for knowing _when_ a record was logically deleted (outside of reconstructing of the database state after something goes wrong) that I'm missing?

I.e., is this something that's actually used in the typical business logic and application code, or is it primarily used for ad hoc debugging?

To be clear I'm not _doubting_ that such a use case exists, it's just that off the top of my head I can't think of commonly occurring one.
"Orientation program?" Did they not send you to CAPS in St. Charles?
Microsoft have had several media stores over the years. They had Zune but killed it for bad reasons.

I wouldn't like the chances of Netflix or Spotify, MS are not a media services company and have shown repeatedly that this is not something their corporate structure can handle.
I’ve yet to hear of someone paying Accenture to do dev work and having a good experience. I’d be curious if any such story exists.
Understanding that this company wants to change a whole industry with the idea that laptops are not disposable products and is competing against giants, I am reading your list of very minor complains about one of their first results as an attestation of an incredible success.

It is time to choose, brothers and sister - do you want to be the problem or do you want to be the solution?
Avoiding the legal definition being fought over here for a second, putting "End of story." and "Period." in your blog post as chief legal officer is fairly unprofessional and a bit astounding when you're going up against a government agency if not entire government that could wipe you off the map.

I suppose hubris and cryptocurrencies go together, but it still struck me.
Lazy Adaptive Trees : https://dl.acm.org/doi/10.14778/1687627.1687669

It is a B-Tree where updates to the tree are buffered in the branch nodes and are propagated down to the leaf nodes at a later point in time.
Ah, I see, it's a split stack. Well, we experimented with those in Rust for Rust->C calls and they were not fast enough (also, they cause problems with debuggers and tooling). Perhaps if virtual calls are uncommon, though.

At that point I have to wonder what the advantage is over just using explicit checks for overflow on the machine stack though.
They are and they aren't. They are both operated almost independently from the mothership. That being said, Microsoft has already pulled back hiring significantly.
those are cache from the browser itself = not relevant for websites. just checked myself and they are always the same 3 files for every user with the same hash.

bugzilla.Mozilla.org/show_bug.cgi?id=1489817

Tor browser uses the same system btw
> Who knew all that free money from the last decade would do that!

As if a war where one of the largest fossil fuel exporters, also exporting enormous amounts of foodstuffs, invaded the biggest exporter in some foodstuffs (grain, sunflower oil, etc.) and a pandemic with all the death, lowered economic activity and lockdowns have nothing to do with the current economic situation. Oil and gas prices are up, and they're a factor in pretty much every other product's price. Add in foodstuff shortages helping drive their prices even more. Some of the increases are profiteering, some are anticipation, some are cold hard math. "Free money" is only a part of it.
For me, the 3 key downsides to a single freelancer is:

* You’re totally dependent on a single point of failure. If they get ill, go on holiday or simply disappear, take on another project or go full time somewhere else, then you’re left in the lurch - particularly post-live when you may need additional support/amends/bug fixes.

* I’m yet to find a single freelancer that can project manage, UX, design, write copy and build to a high standard in all areas. You’ll probably need several freelancers.

* Lack of code review. Usually an agency will have several devs on their team, so there should be some form of code review whereas this is less likely with a single freelancer.
But it's irrelevant when that's the cheapest new vehicle, most working Americans need a car, and despite better fuel efficiency, it isn't really that much cheaper to own a car. Hedonic adjustments make sense in theory, but in practice it's a loophole to make inflation whatever the government wants it to be. In the case of vehicles, they clearly went overboard. The counterargument to hedonic adjustments is that almost everything should become cheaper over time, including all vehicle parts and assembly, due to technological progress in manufacturing. I don't think it's unreasonable to assume hedonic adjustments should cancel out increases in manufacturing technology and just ignore them both, probably resulting in a simpler AND more accurate CPI.
Rich people can afford to fail upwards.

Scams are acceptable if the right palms get greased.

A promise is a comfort to a fool.

It's never a horrible tragedy if it can't be explained in simple terms on TV news.

No matter how hard I warned friends and family, many of them invested and lost on crypto, some even put money up for EV pick up trucks that will never arrive.

We had DeLoreans, We had the Titanic, We had Water World (The Movie)... Normal cycle of history repeating itself I guess...
> In the example where a landlord has a tenant with a building that that tenant owns, the landlord knows how much they are charging the tenant, which is the primary signal of the value they can extract from that land in that situation. Hence, they can calculate a tax level they're comfortable with paying (and I posit that it would indicate the value of the land to the owner).

Yes, but... As I keep trying to make clear:

* Anyone improving the property requires some kind of protection of this investment, usually in the form of a durable ownership interest or a very long term lease, with a value chosen based on both parties' estimates of the utility of the land over that lease term.

* In turn, the rents that the landlord receives from the property can be not-too-closely related to the present value of the land. They may be higher or lower.

* In turn, the land value tax doesn't succeed in capturing the true market rent of the land when it is based upon bidding by landowners, whether we're dealing with separate owners for improvements or not.

Imagine the case of someone who entered into a long term lease (60 years? 99 years?) in 1975 to build a house surrounded by orchards in San Jose. The real value of land has appreciated >60x over that term. A land value tax would capture a tiny fraction of that value if the landowner was bidding based upon the lease returns + the present value of the land being returned in 40 years.

> Pricing can be difficult but it doesn't exist in a vacuum, there's a whole market to compare to.

The level of friction is so high that you can't solve this one with bidding; you're going to have to rely upon comparable sales and assessed/appraised values.
True, but even execution with literally zero unforced errors with the information one does have is something that can be pursued.

Or can it? Is it even possible or are humans so fundamentally flawed they they inevitably fail on day one? Pointing to monks is a standard example, but they tend to isolate themselves from difficult environments.

The laws of physics don't stop us, but something does.
You'd also be going from working with fellow engineers to working with influencers. Look at how often they do a "we lost our archived data" video – their whole schtick is making videos featuring how many hard drives Seagate sends them rather than how to make informed decisions.
Could be that the reduction has come at the cost of children's freedom of movement?
Thank you so much for this course. I plan to go through it properly.

I have a search problem of my own and I have had a hard time applying what I have learnt (including the coursera DL specialization). The chief characteristics are: (a) It is a fuzzy search of a corpus that is in a non-English language. (b) The search should be able to run on a mobile phone _offline_.

Is this possible? Can training be done elsewhere and transferred to TinyML or some such? What would be a good forum to go seeking answers?
If they wrote this in the article then bad interpretations are coming from readers.

It makes sense to publish this, maybe someone else can make it stable and reproduce.
The Alias method: O(n) in space and O(1) biased number generator

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

Mind was utterly blown when I first understood the way this works in my late teens.
>> On a school or work computer that you don't control assume someone is watching behind your shoulder...

And also every computer running software you don't own/control. If you really care about privacy you really need to be running Linux on personal machines.
Only in a simple world where any given phenomenon can only have a single cause.

For example, imagine we find that higher speed limits increase the rate of automobile accidents in a given area. That finding doesn't preclude that poorly maintained roads might also increase the rate of accidents. So just the existence of an area with a high level of car accidents and very low speed limits doesn't necessarily mean that there is no correlation or causal link between speed limits and automobile accidents. It may just mean that the area suffers greatly from other causes (like poorly maintained roads).

Similarly, I think it is fairly intuitive to assume that there are probably a host of causal factors in suicide rates. For sure, means isn't the only factor but it is an important one.

There's been research into means reduction, and it does seem to have an effect on reducing suicide. The hypothesis is fairly intuitive: many suicides are a response to a crisis, and a human in crisis-mode is not always a great problem solver; lack of an obvious means sometimes gives people some extra time to reconsider.

You can read a high level summary of some of the research here: https://www.hsph.harvard.edu/means-matter/means-matter/risk/
Go is a thoroughly uninteresting language bringing nothing new to the table. D, C#, even Haskell all has and had for decades now GC with manual memory at places. Other than virtual threads, which I have to give credit for, there is zero new thing from a PL perspective.
If you're operating on these kind of statistics I think you need to consider the age and race of your child. If you go by likelihood of death, a 19 year old black male (covered by the chart you cited) has a wildly different chance of firearms related death than a 4 year old white child (for that child, they're more likely to die by swimming pool) [0]. In fact the choice to include 18 and 19 year olds at prime age for gang related violence on a study on a decision on what to do with younger children is in fact either a naive or intentionally biased approach.

Under teenage years, your kid is much more likely to die by assault by firearm than by suicide/accident by firearm [1]. It is not easier to fight off an assault while you are unarmed.

Under age 5, by your rationale you probably also never went to a house or anywhere else with a swimming pool, which at that age is as likely to kill your child as a gun. Operating based on this, a good case could be made a household without teenagers may be safer with a gun (assuming you are the owner and you don't assault children, and you either store the firearm on your person or secured in a safe) for protection against assault, while those with teenagers have to counter the risk of suicide by either not owning a gun or putting it in a secure safe. But then again, teenagers are still yet more likely to die by (firearm) assault than (firearm) suicide, so perhaps even they are better off if their guardian can defend them against armed assailants.

As a final note, assuming you do actually take your children places: your hosts probably lied. Not all of them did, but a few probably did, especially if you left the Bay area. Even the ones that are 'honest.' They knew that you would be uncomfortable about firearms in the house, and they themselves would be uncomfortable if their friend found out, so they simply locked them up somewhere in their house where they would never be found or could be accessed and then told you there weren't any there. I don't have the study off hand, but a well researched study I came across showed only ~30% of people truthfully inform guests with children about guns in their house.

[0] https://www.nejm.org/doi/suppl/10.1056/NEJMc2201761/suppl_fi...

[1]https://injuryfacts.nsc.org/home-and-community/safety-topics...
My writeup of union find is in https://dercuano.github.io/notes/incremental-union-find.html. I did not in fact find a way to make it efficiently support incremental edge deletion, which is what I was looking for.
That is the best workaround for a software problem, I've ever heard.
Traffic calming measures is how you tackle things like that. Adding a sharpish S-curve to the roads approaching the T should remove enough speed to make it safer. Won't even need a sign.
Here is one not on the list so far:

Set Sketches. They allow you compute the difference between two sets (for example to see if data has been replicated between two nodes) WITHOUT transmitting all the keys in one set to another.

Say you have two sets of the numbers [1, ..., 1million] all 32 bit integers, and you know one set is missing 2 random numbers. Set sketches allow you to send a "set checksum" that is only 64 BITS which allows the other party to compute those missing numbers. A naive algorithm would require 4MB of data be transferred to calculate the same thing.

*(in particular pin sketch https://github.com/sipa/minisketch).
Big fan of HLL

Apache foundation has a fantastic DataSketches library that includes HLL and many other powerful data analytics algorithms: https://datasketches.apache.org/

Lee Rhodes has done an excellent introduction to this library - explaining some of the use cases, advantages, and things to be aware of when using these techniques: https://www.youtube.com/watch?v=nO9pauS-mGQ
Building a Rust Mentality
Yep, and the U.S. government paid Deloitte way more for a vaccine-registration site that never went live: https://www.technologyreview.com/2021/01/30/1017086/cdc-44-m...

I worked for Andersen, Price Waterhouse, and a couple smaller firms after that. The stuff I saw induced anxiety in me on behalf of the client. If you actually showed initiative and did your job too thoroughly, they had no idea what to do with your work product.
In the Twitter thread, it sounds like these guys may be connected to frauds worth tens of millions.
Nested Sets

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

You can ust to store tree structures in relational databases for faster querying stuff like "all nodes below node x", "How many nodes to the top node" and so on.

Querying is easy, but comes at the cost that changes like inserting and deleting are more expensive.

I used this for an auth service with roles, user and org units. pretty query heavy, worked very well.
Pod CrashLoopBackOff Error – A Brief
Troubleshoot: Pod Crashloopbackoff
I would like to know which they are. I just don't see that as a thing that can happen.

If you think a Texas county may lose their BBQ producing capacity, please let me know as this would be most newsworthy and also deserving of every Texans' help.
People consider their options every single time they drive to work. No one is arguing that when perks are taken away you can be sad. But it's not like employers aren't disappointed by employees often too and still keep them for weeks, months, years longer after the disappointment.
Redesigning Hardware to Support Security: Cheri
There was a time in the nineties when I was living in Portland (Michigan) which is a town of 3500 and it had a great bookstore downtown. Yet East Lansing where I live now, the home of my alma mater, Michigan State University, lost it's remaining bookstore downtown. That still boggles my mind.

Yet right after the dotcom crash the bookstores that had multiple aisles of programming books shrunk the computer section to half an aisle. They told me however they could order anything I wanted. I used to browse the bookstores on Sundays. Now I browse the web and order what I need from Amazon. Have to think they did it to themselves.
I would prefer a computer that was slower, but worked the way it was supposed to (i.e. without rowhammer & spec-ex bugs, AMT/secret minix kernel, encrypted microcode mystery-meat, etc).

The typical user doesn't need to bean-count every microsecond. He desperately needs a computer that is his own tool rather than an infosec quagmire & the business-end of tech sector money-proboscis.

It is, sadly, the path of least resistance. "Big number good" is much easier for a consumer to grasp than the (qualitative) corners that were cut to achieve those big numbers. Lies, damn lies, & benchmarks!

The combinatorics of making distributed the new default are astronomical. That he dashes this all off so lightly, and in so little detail, makes me wonder if he's ever really done the work. Whether he has, or he hasn't, this is still 100% the wrong direction for anyone outside of a data center.
You have translated it, and you have not understood it. The correct approach with text is to give an interpretation and a level of confidence - and wait until the confidence is high.

I do not think the ideas of the poster are just "wrong" (though it's a very good term, originally meaning "giving the reaction of disgust (which can also be given by disapproval)"): I wrote «blasphemies» because the depreciate what has high value.

And those mentions of «high-class» and «fun to hang out with» are completely out of what was meant. And completely out of perspective: nobody told you you are there to have "fun". And one does not even meet people for "fun". It's your time, you are not there to waste it; "fun" is one part of it - "break", "completeness", "recovery" or whatever.

More that "«insane»", that way of thinking would be "childish" (and surely more), but it was not what was expressed - you put that in. And your reading fails on the guidelines about "strongest plausible interpretation" and "assum[ption of] good faith".

Edit:

Nonetheless, the translation «Sure, if you think you were born to have fun, doing something such as reading books will be "fun" too, since it's different from your normal life. But you aren't actually seeing the real value in reading» was quite close to the original intention - though not overlapping. With "«yell at cars»", for example, I meant to stress the improductive side, the "consuming the day without much focus on growth". In the idea that the opposite of "growth" is "waste" ("fun" already may contain some value).
Speedbumps are inexpensive and last a very long time.
He writes really clearly as well. In depth but not sofar as not being able to follow it.
Tree automata and the BURS (Bottom Up Rewrite System) algorithm are pretty cool.
> More concerning is that un-named parameters are a compiler error

I've been ranting about it many times. Most recently: https://news.ycombinator.com/item?id=32145520

There is an upstream issue about it where we should probably get our voices heard, it's encouraging to see many people in that thread that are opposed to that change, but it doesn't seem the core devs are open to considering any alternative, rather they just hope we can learn to live with it.

https://github.com/ziglang/zig/issues/335

This is by far my biggest annoyance with Go, more so than writing if err != nil.

I feel I write code in a different way than other people. Some are very slow, thoughtful and methodical in writing code, while I tend to experiment, throwing stuff at the wall and iterating quickly, and only after going back to polish and refactor. Stopping every iteration during my experimentation phase to lint my code because the compiler is pedantic and stubborn just slows me down immensely and turns me off a language.

EDIT: went and shared my criticism upstream, in a constructive and reasoned manner, I hope. My quixotic fight against unused variables being errors carries on.
how can extrapolation tell you anything if you don't know whether the extrapolation is appropriate, much less true?
If you cannot understand what people write, of course it will appear BS to you. The writing from here looks like the right one.

Edit: about that «'intentionally'»: this is the way I think, this is the way I write. (Not precisely so, but the expression will be clear enough to those who want to understand it.)
I skimmed the Wiki article but it seems incredibly US, maybe North America focused. Examples and data were American, and none of it is applicable to Western European countries I'm familiar with. Not that nobody drinks sugary drinks or nobody eats red meat or hamburgers, but they're much less of staples and processed foods are much rarer.

So what's with so many people abusing "Western" to mean American and maybe Canadian?
> Eschew flamebait. Avoid unrelated controversies and generic tangents.

From the Hacker News Guidelines [0]. Please take these comments elsewhere.

0: https://news.ycombinator.com/newsguidelines.html
Even though a trie is pretty standard and expected (to be known) these days, I will vote for this. It was my first deep dive into more exotic data structures after an interview question about implementing T9 that stumped me many years ago.

https://github.com/Azeem112/tries-T9-Prediction