skysight-inc/HackerNews huggingface dataset:
If you don't do eager casting, you get inconsistent sorting behavior depending on the algorithm and unsorted list order.

Under the current algorithm,

randomize_array(['3', 5, 10, '11']).sort()

will always give you

[10, '11', '3', 5]

Under your proposal, where our casts are dependent on what two elements we're currently comparing, you might get

[10, '11', '3', 5]

or

['3', 5, 10, '11']

Try it yourself:

['11', 10, '3', 5].sort((a, b) => a < b ? -1 : 1);
[10, 5, '3', '11'].sort((a, b) => a < b ? -1 : 1);

The only way that type-specific sorting algorithms work is if we check the entire array before we start sorting, which has performance implications. It can't be on-the-fly, we either have to commit to type-checking the entire array, or commit to casting the entire array. I think casting is more consistent, I don't like the idea of an algorithm changing underneath me because of a type error. But in either case we can't change our sorting behavior mid-sort.

This is part of the reason why recommendations on how to sort an array of integers is to use a sort method like

(a, b) => a - b

instead of the comparison operator -- because most of the time subtraction will cast everything to a number across the entire array, including the strings. For most people, this will be fine. To head off what would logically be the next thing to suggest, we also can't rely on `a - b` for a default sorting algorithm for `sort2`, because of

['11', 10, '3', 5, {}].sort((a, b) => a - b);
[{}, 10, 5, '3', '11'].sort((a, b) => a - b);
At least one Russian lawmaker seems to plan to attempt it: https://www.macrumors.com/2020/09/02/russia-could-cap-apple-...
And yet, they managed to write the Linux kernel in it, as well as thousands of other things we use every day.
Totally agree with this article. I am operationally allergic to complexity and React us fully complex these days. Based on this pain I did an experiment with a new application.

I just recently developed a complete 12 component app using AlpineJS ... probably pushing the boundaries, but it's awesome!

Components have their own internal state and reactively update their part of the UI using Alpine Directives. We have data CRUD ops with the databases, dynamic tables, dynamic forms, UI panes with dynamic content, etc.

For updates across/between components, we use messaging between components which also triggers reactive updates via updates to message receivers' local state, as needed. QED.

Works beautifully and with 12 components on the SPA (and growing) this is no Hello World or TO DO app. Not by a long shot. Oh, and for the win, no build step at all. Just reload. Time to paint hovering at about 1.7ms.

Tech stack: Go web and API server. CockroachDB. AlpineJS. TailwindCSS and the awesome TailwindUI components.
first off, the "corporate entities" are not entirely unchecked. they have shareholders who vote and boards who oversee the company.

second, the "nation states" are on their last legs. the globalization of this tiny planet, the birth of the international citizen, and the truly global nature of the internet will make sure this happens.

the pushback against local democracy by global players is entirely justified considering it's inherently local nature.

on your last point, tiktok, as any other corporation is entitled to act as they see fit.

what we're actually missing is a global government, with global elections that can keep in check both the local governments and the global corporate players, creating a level playing field. this should be the ultimate wealth unlocker.
Unfortunately about:config no longer works in the most recent version of mobile Firefox. It is unclear what the rationale was for hiding it, although apparently in the next release it will be accessible again.
I Used M&Ms to Grow My Startup
It turns out you don’t need to get into Y Combinator to build a successful business. All you need is a hustle and a $100 pack of M&Ms.

Can M&Ms even get that expensive, how do chocolates help sweeten a deal? First, let’s set the scene and get some background…

I was working with a huge potential client, and we seemed to have excellent momentum with them. However, my champion at the company left, and they went cold on me. I emailed and called multiple times, but to no avail. So, we had to take things into our own hands to get their attention without seeming desperate. That's when the M&Ms came in.

Full post on our website: https://www.parceltracker.com/post/startup-growth-hack

Would love to see some of the original ways you guys reached out to clients.
That's a rather antiquated view. Nowadays, the appendix is considered an active organ again, essentially a spawning zone for the gut flora. I recall reading that people that still have their appendix have a more diverse gut microbiome, and more importantly, their gut flora recover more quickly after antibiotic treatments.
It is top of the line, but definitely in "$$$$" category. Personally, I've grown to dislike wired VR and cannot go back to it even though it has many advantages.
I documented my perspectives a while ago here: https://vishnu.tech/posts/surviving-depression/
I can put you in touch with folks at ArchAngels, Codebase, as well as various UK-based VCs if you have more details on your company? Ascension Ventures along with several others hold regular rapid fire sessions for pre-seed funds so can also put you in touch with them.
> I'm pretty sure that, had I gone to the therapist, I would have been diagnosed with some sort of depressive disorder and probably would have been prescribed some sort of medication

100%, everything is a nail to them. Diagnosis is really not that rigorous.

It's amazing to me that the very first course of action suggested is not lifestyle changes, but medication. But money talks and here we are with over-medicated nations.
Thanks! It was a bit tricky to solve the transactions problem, because I did not want to abstract the BEGIN / COMMIT / ROLLBACK instructions, but at the same time I needed to provide something to ensure the integrity of a transaction made of multiple commands.

As for the audit fields, I decided not to include it because it very simple to implement, and would be clearer to do it specifically. Most of those fields could be implemented by just adding a default value in the right function.
Flamebait editorialized title.

Article is about Pasco County.
Tim Ferriss had this amazing comment once in one of his books that if you want to know what the future of human health is in 5 years, look to what bodybuilders are doing today, and if you want to look at the future of human health 10-15 years out, look to what race horse breeders are doing. Something to that effect. ;-)
Thanks for your insights and sorry for having supposed you had a less severe case, but all of that happened to you and you think it's not a disorder or a disease ?
I can also recommend QtCreator for C++ development! I regularly use it for my cross-platform open source projects (none of them are Qt based) and it works equally well on Windows, macOS and Linux.
Or an agricultural disaster, which way you look at it.
Well, collectively they did vote for the conservatives, who are exactly for this kind of thing.
There is already a P2P program called OnionShare that uses the TOR network. Never used it, but journalists and activists supposedly use it.
I personally think those sorts of "security" questions are stupid and I have a standard answer to all of the security questions so I don't have to remember what I put.
gee, I wonder which sensors can detect at that such wavelengths.
Home Office Projects Series: Air conditioner setup
You realize you've just done exactly what the parent complained about right?

- said it was bad

- not provided any concrete details

> they've become unmaintainable when reaching a certain size

How?

Did you start getting lot of hard to replicate bugs?

Did you find authoring new components was made difficult by your heavy use of custom hooks that were actually not as generic as you thought when you wrote them?

Did you find 3rd-party hooks had bugs?

Did you find that useRef doesn't work like you think it does, and you can't mix and match useRef and useEffect? (ouch)

What kind components are you writing that you find hooks are such a bad fit for?

Be specific.

(I'm not saying hooks are perfect; I've had all of the issues I listed happen to me, but it's still quicker to implement new features on a medium sized web app using hooks than with components in my experience; I work on 3 apps, and only one of them still uses components, and it's the most annoying to make changes too, simply because for simple business components & forms, hooks seem to reduce the amount of boiler plate, and flat out, reduce the lines of code; less code -> faster changes. It's not always that simple (see bugs comment above), but mostly... it is, in my experience: ...HOWEVER, what you've done is just wave your hands vaguely and fail to actually say anything except you don't like hooks)
Back when jsx was introduced people said so too but they weren't as loud as the other group. When you look at a completely new language, reasonml where they're still of the mindset that jsx bring familiarity it makes nosense. Just an excuse for some abitrary preference.
He's internally inconsistent. He complains amazon etc will simply pass on the cost, but he also complains that they don't have to pass on the cost of things like VAT (which is odd, as my last AWS bill and the kindle book I bought both had vat)
>> because there's no higher authority to appeal to for enforcement

> Technically, that higher authority is the people themselves. Bear in mind that the Constitution was written in a context where the governed people successfully held their government accountable at the business end of their hunting rifles.

I should have probably said "there's no higher institutional authority to appeal to for enforcement." When you're talking about jail-time penalties, I think you're talking about something that's institutionally enforced.

At this point, the only check is the people via elections; but I don't think unconstitutional laws are passed for some private purpose, but rather to satisfy some popular political demand (like "never again"). Such esoteric concepts like the unconstitutionality of some particular law aren't often at the top of voters minds, either.

At least in the current climate, with the level of disunity and polarization, any attempt at a revolution would be a civil war where (in the end) half the country loses a good chunk of their civil rights.
You, my friend, will love this. Emily performing all the books!

https://www.emilyrcwilson.com/odyssey-a-day
I find that most of the production features you mentioned are actually more difficult using a fat ORM.

How many hours have i wasted figuring out how i can write and map some complex joins or aggregation query with <insert ORM name here>? Would have been a 3 minute task if all i had to write was just SQL ...

Plus i have a hard time seeing the benefit of Prisma. You are learning an entirely new DSL just to define your schema - which actually isn't that far off standard JS or TS syntax-wise so it feels like a complete waste of time to come up with the DSL in the first place.
I can only imagine the hard time you have once you first have to break out of the frameworks cage because you hit a case which isn't easily solved by the framework itself ...
> The real extent of this state of misinformation is known only to those who are in situations to confront facts within their knolege with the lies of the day

Well ain't this the cold, hard truth, eh HN? How many times have we seen science and technology just completely butchered, twisted, manipulated, or sometimes, all three, by the "truth-seeking journalists" over there at the establishment media companies? Yet we [willfully] ignorantly turn the page to the next section, say on sports or local affairs, and assume we are being fed facts.
It is because the payoffs would be so enormous that business like this and "overunity motors" continue to gain attention. All of those other elixirs were shams, but this one will work! Finally, immortality! The enormity of the reward causes the payout matrix to lead people astray.

Don't get me wrong, I see a vacuum chamber, which is light years ahead of most of these enterprises, but I would not spend a dime on it until it has been proven to work in a region of space relatively far from the Earth's magnetic field.
The more we learn of life, biology, chemistry and especially physics, the more interesting life becomes. Today it's harder to separate complete nonsense from a reality that hasn't reached sufficient consensus. All the reasons for rejecting Brown were right at the time, but ultimately life turned out to be more complex than people realized back then. Science ultimately is about finding what's real and what's a temporary illusion of reality.
It's not so much a short sighted argument as it is an argument that Nvidia will be short sighted. The smart long term decision is to keep ARM dominate for many many years. The short term profits come from wiping out competition in the ARM space. Would Nvidia choose short term or long term strategy? Given how most companies work these days, I don't think it's unreasonable to think it'll be the short term.
Obviously the most dangerous form of undefined behavior is not that which always crashes but that which for some unlikely inputs cases crashes.
Highrise | Backend/DevOps Engineer and Data Engineer | Fully Remote

Highrise is a mobile game and community that generates meaningful human connections on a massive scale. In Highrise, people can make avatars, design art and environments and meet new friends. We are building on the spirit of applications like Animal Crossing, The Sims, Minecraft, Habbo Hotel and Second Life.

5 million people create avatars, chat and make friends in Highrise. We are a fully remote team of over 30 backed by YCombinator, Bessemer, Maveron and other leading investors.

Currently we are hiring for our engineering team e.g:
Backend/DevOps Engineer (https://bit.ly/2N3t5JU) and Senior Data Engineer (https://bit.ly/2ENxsZc)

Interested? Apply online or contact Aleksandra (aleksandra@high.rs)
This is an extremely opinionated article:

> People will always support charging more taxes, as long as it isn’t them paying.

I would happily pay more taxes, personally, in exchange for better social care and schools, public services I do not use.

> So, next time you see a tax aimed at the “rich” or a company bigger than yourselves, remember it will eventually hit you along with everyone else.

This is extremely simplistic and troubling framing, and comes across as a whine. I suspect this outcome was expected, and Her Majesty's Government can sell this as a win to the electorate (look at us taxing the big tech!) while keeping their donors happy. The number of people who do notice/care, and their combined political clout is negligible, and that's the World we live in right now.
Here it is important to distinguish tech firms that have grown while pursuing their core businesses—Google in the search business, for example

Advertising is Google's core business. Search is the way Google web scaled traditional focus groups.
You're trying to hold a river back with your outstretched arms. Taxes are always passed on to the consumer because they are a cost of doing business. Raise taxes, you raise prices. Always.

Only competitive pressure and consumer discernment will drive down the price.
I love Mithril but I find hs to be noisy to read and tedious to write.

It's probably because I've been reading and writing HTML for +20 years though.
People need to do and same goes for some of our food. As it relates to cows, there is research showing that the emissions they produce are dependent on their feed, and that methane in particular can be reduced through the use of additives such as seaweed. However, it's not clear that this particular strategy would be effective in the long-term, and we would need to produce a LOT of seaweed in order to have a significant impact.
> It’s very hung up on making sure the user types the right email address on account registration, having them type it twice, making them provide some sort of security question (before their account is created, mind you!), making sure the question is answered correctly by the person clicking the link, etc etc.

No, it's saying you can do this, this, _or_ this.
It's giving you options, not telling you to do everything on it.
Project Bicep – An ARM DSL
> On a clear night in March 1967, Woodward was stargazing on the rooftop of Pensión Santa Cruz, a hotel in the heart of Seville, in Spain.... As Woodward gazed up from atop his Spanish hotel, he saw a speck of light arcing across the sky and mentally calculated its path. But as he watched the satellite, it began deviating from its expected trajectory—first by a little and then by a lot.

> Everything Woodward knew about satellites told him that what he was seeing should be impossible. It would take too much energy for a satellite to change its orbit like that, and most satellites weren’t able to shift more than a couple of degrees. And yet, he had just seen a satellite double back with his own eyes. He didn't conclude that engineers at NASA or in the Soviet Union must have secretly achieved a breakthrough in satellite propulsion. Instead, he believes he saw a spacecraft of extraterrestrial origin.

Seems more likely he spotted a reconnaissance aircraft at very high altitude. I think the U2, A-12, and SR-71 were all operational in 1967.
That's just the illusion that's created by the inexperience of most JavaScript developers. You don't have to continually learn the bleeding edge stuff. What they don't tell you (arguably, because it doesn't pay their bills) is that what you should learn is the language. Once you understand that, you can comfortably adapt to any new library/framework/whatchamacallit relatively quickly.

Most of what you've described is just peer pressure. The only reason I know that is that I shared this exact opinion until I said "this is stupid" and started doing things my own way (to much success and peace).
[EDIT EDIT EDIT EDIT EF-IT: The other guy was technically correct. And there are lots of edits here. It’s the “Pale Fire” of HN comments.]

[EDIT: All this because I lost the thread that we were talking about when striking miners in the UK dropped a concrete block from a footbridge onto David Wilkies taxi whilst he was driving a strike-breaking miner to work, killing David. Hopefully future HN readers will find some value and pleasure in this thread, however.]

Ah. I didn’t realize a naturally occurring solid mass or aggregate of minerals was involved.

:):):)

And with regards to politics, part of Orwell’s point was that our language - how we choose to express things - is political, too. Regardless of our intent.

I wasn’t saying anything about the politics of anyone throwing a rock. And I’m not saying anything about your political beliefs.

I’m saying there’s a political power in how language is used, even if the subject under discussion isn’t expressly “political”.

Finally, to be a complete pedant, although “discharge” is often used as a synonym for “shoot”, I’ve never heard it used as a synonym for “throw” before.

So the correct way to use overly complex language to say “throwing a rock” would be “launching a kinetic energy weapon”. Or “releasing”.

Because unlike a gun, or bow, or whatever, in this case the “weapons system”, if it wouldn’t be a dehumanizing offense to call it such, is a persons arm.

Not a gun or bow or phased plasma rifle in the 40-watt range or whatever.

And when we throw things we don’t “discharge” them.

Which is actually a perfect example of Orwell’s point.

To try to call someone throwing something a “discharge” is to dehumanize them, because humans do not discharge things from their arms when they throw them.

We do, however, discharge snot from our noses when we sneeze ;)

We are talking about throwing a rock at a truck, right?

[EDIT EDIT: We are not. We are talking about pushing a concrete block off a bridge onto a car below. Which I suppose, pedantically, is to “discharge” since the stored potential kinetic energy of the block is what makes it a weapon, although “pushing” is still a human thing, but it doesn’t feel as dehumanizing as the “throwing” case for some reason. You were, technically, correct, which is the best kind of correct. Ah well, at least we got a lesson in the relationship between language and politics out of the whole thing.]

I didn’t just write a pedantic magnum opus on the wrong subject because I didn’t realize the other person was still discussing hypothetical asteroids being de-orbited to destroy planets, or hypothetical kinetical bombardment weapons aka “rods from god”, did I?

;)

[EDIT EDIT EDIT: You did not, but what you did is almost as embarrassing.]

Lord, I hope I’m not arguing with a 16-year old on the Internet. It’d be like arguing with my younger self :/

[EDIT EDIT EDIT EDIT: If so, I think you lost.]
We were watching it at work (remember offices?), had several people around someone's monitor. Somebody walks by, and asks what movie that is that we were watching. Couldn't convince them that it was real.
> reliable migrations

My experience is that libraries which do handle that for you automatically do a really bad job at it.

Writing it by hand and most important thoroughly testing it and trying to avoid doing any changes needing complex migrations is in my experience more reliable on the long run.

EDIT: removed inappropriate caps usage
Company which is heavily pushing lock-in shouldn't be allowed to buy ARM, since it can cause too much damage by it.

Lock-in is not a driver of innovation, it's a brake on it.
That's one of the dumbest things I've ever read.

People laud single moms not because there's a virtue in being single while raising kids, but because it's a hardship, particularly to do well.
> like driver's licenses, which poor people don't have.

I did a cursory search and found this link[1] that says ,

> Across all age groups, 84.6% of all Americans have a drivers’ license.

> The lowest percentage of total licensed drivers is among 16- to 19-year-olds, where 51.7% of the population have their driver’s license.

Its even higher if you remove 16-19 age group, who aren't eligible for voting.

Curious if you have a stat for drivers license by income.

1. https://hedgescompany.com/blog/2018/10/number-of-licensed-dr....
Hi, I'm the creator of MuWire. Indeed, TOR explicitly discourages P2P use or sharing of large files, while I2P welcomes it.

I'm very happy to see eMule spring back into life. I believe it's time for a move away from the "torrent site" model and back to more casual approach file sharing.
> Spreading such misinformation can lead to people not seeking treatment and getting hurt.

Misinformation? Unless you have expert knowledge in that domain - and unless the alternatives podgaj describes have been exhaustively eliminated by a body of peer-reviewed research - you have absolutely no justification to label that as misinformation.
Interesting, then what is your alternative? It seems like hand-rolling all of your migrations would be an enormous pain on larger projects.
> The problem is that if you inform your citizens, you also inform your enemy

Indeed, but the enemy usually has the intelligence services to know it anyway, leaving your citizens uninformed as the only real side-effect.

I don't think secrecy is important in national security anymore. On the other hand, the secrecy is used for evil, such as keeping citizens in the dark around government plans to control popular opinion in their favor, falsely positioning themselves as the people's superiors.
An author who thinks
Scala is not OOP is simply not credible.

Scala was invented to merge OOP and FP.

The article is nonsense. It offers no alternative and then wonders why the thing everyone uses is still popular.
I had always heard that PL/I and Ada are much more difficult languages for producing a suitable compiler.
Every generation thinks they invented sex, and lying.
Can't seem to access this. Hug of death?