skysight-inc/HackerNews huggingface dataset:
> FiveThirtyEight predicted a 28.6% chance of a Trump victory:

This is cherry-picking of the highest widely-known prediction by far, practically an outlier. And I don't think they do any actual polling, just analysis using others' polling data.
Not a typo. 706 matches for 'giving away your legos' and 2620 matches for 'give away your legos' on Google
Good software behavior decreased staunchly in closed environments and especially on mobile. People aren't asked about telemetry, data hording is hidden in some lengthy TOS that you have to accept in most cases anyway.

Work at any company and want to decline the TOS of MS Word? Good luck...

Collecting data might be sensible, but it isn't too hard to ask.
> The time tracking services and software I've worked with make their money by scaring employers re: regulatory compliance ("Subscribe to our service and we'll keep you legal w/ local HR laws...")

This sounds interesting. Can you link to any of these services or software?

What do you mean by "scaring employers re: regulatory compliance"? "Scaring" reads like you're implying some kind of manipulation, but "regulatory compliance" is something a company should already be in; what is there to fear?

What are "local HR laws"?
> Someone asking to be paid in cash is inherently suspicious (at a minimum they're probably evading tax, if not an outright scammer).

Maybe to you, but not to me. First, not all countries have widespread low-cost electronic payment systems and not all people have access to those (or banking services, in general). Second, I rather pay with cash just for the fact that it saves me on transaction fees. Third, a vendor might not have a working terminal... does that make the vendor a tax evader or a scammer?

I think your comment may apply in some places/cultures, but it certainly doesn't apply to all places/cultures.

I, for one, certainly don't want to live in a world where cash doesn't exist and I'm forced to have every single transaction I do be recorded. Your mileage may vary, but you should accept that there isn't a consensus: different people have different opinions on this.

> Right, which eliminates the big selling point of bitcoin. Code isn't and can't be law, because law enforcement will enforce the actual law rather than the code.

I'm not sure it does. Bitcoin never claimed to want to replace law or law enforcement, or to be immune from the application of law by courts and law enforcement. The proof is in the pudding... people are using/buying it, so there must be some sort of selling point that hasn't been eliminated.

> Decent people generally prefer to live under a legal system that returns stolen property to its rightful owners rather than "possession is the whole of the law"; yes, there is a risk that the courts might wrongly decide that my property was stolen from someone else and take it from me and give it to them, but you have to weigh that against the risk of my property actually being stolen by someone else.

Sure... and I did not say otherwise. My point is that property rights apply equally to blockchain assets as to other assets, and thus can be seized by a court. Are there cases where a court is unable to seize someone's cash or blockchain assets (or any other assets that can be "hidden")? Yes. Does that make property laws not apply? Not really.

Besides, there are (very popular) crypto assets that can be (and have been) centrally and arbitrarily seized, such as USDC. If someone is concerned about the scenarios you describe, then they can use blockchain assets that (e.g.) are 100% within US jurisdiction (assuming you live in the US) and be sure that their local courts can always "do something about it" if shit hits the fan.

Just like with cash, with crypto assets "posession is [also] nine-tenths of the law": by default, we assume that whoever is in control of something is their legitimate owner (and, just like "in real life", with cash, whoever is in the posession of it can use it for transactions). If that is not the case (i.e. if your property rights have been infringed on somehow), then, as always and as with any other asset, you have to go to a court of law to get "things fixed".

TL;DR: My overall point is... when it comes to "property rights", crypto assets and cash are quite similar... they can complicate enforcement, but they don't make the rights themselves void or completely unenforceable.
It's common in other languages as well (at least Haskell) and a bit surprising at first. However, a `.sortBy(fn).groupBy(fn)` is easy and of similar efficiency and when you actually need the local-only `groupBy()` you're happy it's there.

A bit more expressive overall.

At least it is better than lodash' useless groupBy which creates this weird key value mapping, loses order and converts keys to string and what not.
API Client for Ipify in Rust
> Sennhauser says that bewildered Americans often ask if he constantly flew first-class. “I wish I was flying first-class,” Sennhauser says. “I’m recreating mostly economy class meals.” Some European and Asian airlines see offering their customers something nice to eat as a matter of hospitality, he says. “Whereas in the U.S., I feel like they’ve just thrown up their hands and said, ‘We’re done.’”

This resonates with my own experience. I've always been aware of the cliché that airline food is terrible and the "What's the deal with airline food...?" trope, but when I was young and my mum and I would to fly every summer to visit her side of our family in the UK I really looked forward to the in-flight meals (this was the good old days when short haul flights would serve food). On the very rare occasions when I take a long haul flight which still serves meals I still do look forward to them. The meals are of course different to what you'd normally eat on land, but they almost feel like a style of cuisine in itself.

So really, what is the deal with airline food? It's not actually bad!
News as pedestrian as the PR writing style.
Hm, why is it more important to name a function than, say, an if statement?
Nope, never needed to do that. I've mostly only worked on some extremely unique use cases that use the browser in non-standard ways though (games, vehicle control, IDEs).
And since 3.8 the exponent can be negative, which lets you compute modular inverses without having to reimplement the extended Euclidean algorithm.

>>> pow(5, -1, 13)
8
>>> 5 * 8 % 13
1
Making something aerodynamic minimises your losses, it doesn’t “recover” energy.

If you have a more precise idea and that was an analogy, I recommend giving that idea in a more precise way — I’ve seen my own “what if” ideas wildly misunderstood by my own poor analogies.
Well, it sounds nice. But I hope this is heartfelt, and not "as the pandemic has slowed, I don't want to be responsible for next year's numbers."
Fully agree, if you want to see that taken to the extreme, read Android code where people apparently only know about anonymous Java classes.

Many Swing coders can also apply.

It is so hard to actually pack the functionality into a separate piece of code.

"Yeah, but then I have to look elsewhere"

Really? What about when a method is full of stuff like that?

Its readability is lost beyond hope.
I think I asked last time and didn't actually get an answer.

There are no reason why we cant, or any other vendor cant recreate Dubai Lamps elsewhere. The only reason why it isn't sold elsewhere is because Philips thought there are no market for it due to cost issues.

Now the idea has spread on the internet, why do they not make one to test the market?
I don't think it's a very common expression, but I think I might have heard it before.
Is there any information on how the FBI captured the messages? It says they caught millions. I'm surprised large criminal networks nowadays don't have grey hats on tap to be able to analyse the devices they use, the packets they send etc.
That's a valid concern, but in this case it won't cause problems -- grep exits with 0 if a line was selected; in the case of `grep -v grep` that means there was a line without "grep", which is what we want.

(Also @thewakalix made a good suggestion to reverse the greps.)
Airamp: Bringing Winamp into the Real World
Does on chrome desktop too.
US is the prime example of a capitalist ecosystem. I would argue that this is what made US the superpower it is today.

So to do away with it goes against everyone who enjoys the benefits of the system in US. Those who enjoy the benefits are also those in power.
Hello everyone I want to make a real programming language and I need your help
Hello everyone, I am Sagnik Chackraboetya student from India and I want to make my own programming language. If you are interested please contact me via mail- xc34.sagnikchakraborty@gmail.com or text me - +919007779473. But don't spam please
The new CEO is a French woman.
> Don’t use lru_cache

I disagree- it works wonders for expensive functions that return strings and ints. Maybe "don't use lru_cache with mutable values" would be more accurate.

Thanks for noting that edge case though, I've never thought about that.
Yes, also change between kana and alphabet, half and full width, autocomplete of addresses when you type a postal code.

This is so useful when filling in forms that require one or the other. Everyone in my office, Japanese or not, struggles sometimes to enter full width Roman characters and the correct “-“ character in addresses when required by web forms.
Code readability, specially if it spans multiple lines and has conditional code into it.

Same applies to then and else branches.

In a code review I don't what to read a thesis inside of a conditional branch.
Definitely a big inspiration for us! Thanks:)
I started using instacart at the beginning of the pandemic - every experience with it was painful. From the UI to the ordering process and the interaction with the shopper, and the cost.

Amazon Fresh is categorically better and it’s included in prime. I canceled Instacart and don’t see how they can compete.

Edit: I use good eggs too which has been great and has some high quality options. My experience with instacart was negative enough to damage its brand for me - I hated using it.
Modifying tables are extremely difficult after they are created.
What is the ideology of twitter? There are all kinds of people on twitter. Indians might be paltry sum, but I bet at least significant majority is government sponsored IT cells, they can shut down local activists account but they can't really do anything about people outside and that is what the fight is about. A case in point is my professor Audrey Truschke, who on regular basis get threatened with rape and death by the fascist hordes.

Anywho, I don't know what is your definition of fascism, but Indian government is a poster child of fascism and without the quotes.
Please suggest a pattern matching expression syntax that doesn’t require completely changing how the language works.

Pattern matching took so long because it was extremely hard to find that compromise, and I actually think they did an okay job. No, it won’t cover every case, but it will also cover the important ones.
Starting Apple-1 CPU (6502) on a workshop
Javascript API Draft: File System Access
He talks about the average Googler and the culture, which was the relevant bit.
It is actually fine. The damn libraries and frameworks make it wonky.
Seagate Barracuda Ramp Weakness (2016)
Extremely misleading headline. Correct headline is "average new housing has doubled the space let person since new housing built in 1973".
Title is incorrect and misleading. Living space per person has not doubled. What has doubled is ratio of (a) the living space of new houses to (b) the number of residents per house, calculated over all houses.
Constant booster shot means constant money.
CSS Gradient Fixer
I think part of the problem is that we don't tell people why they're in school learning things. I certainly thought my English classes were useless not even two years ago. I'm sure you've heard the classic "when am I ever going to need to know about Hamlet in the real world?"

School, at least beyond elementary education, isn't about knowing all the arbitrary points that you learn. It about learning to learn. The problem, however, is that you can't simply teach people how to learn, so the content you cover in classes is simply a proxy for the real "meat" of education.

Some might argue that you can apply this by teaching only classes in a student's focus area, but I argue that being exposed to historical information, statistics, math, computer science, biology, etc. has made me a much more well-rounded human and I possess the skills necessary to understand just about any concept presented at a sub-journal level. That's a skill I've noticed not many have, and it has proven incredibly valuable.
I used Instacart a few times at the beginning of the pandemic as well. I quickly gave up in favor of dedicated delivery services. Now I use Yamimeal and Weee quite a bit.
Sure, how is this relevant?
> Because memory access patterns, system call overhead, operating system interaction etc. have much more impact on overall performance

In most media apps, the actually processing intensive part definitely does not do syscalls or OS interaction. It's pure computations for as long as possible (and often non-parallelizable, e.g. x[i] *= x[i-1] sort of things). Disabling those optimisations is a killer.
Build Once, Sell Twice: Earn $1M a Year Selling Digital Products
Responsive design did this. Early 2000s there was only 1024 x 768px or a little above maybe.
Yeah, but Oberon development continued and eventually Blue Bottle (A2) was developed.

Speaking of Modula-2, Lillith was even more bare bones, and used microcode (M-Code).
An astonishingly cynical ad, made in the hope that people only half-remember the original line.
Both Terragrunt[0] and Terraspace[1] address this by providing a way to manage different environments.

I do however think that Terraform should have a first class support for different environment without the need of a wrapper to facilitate that.

[0] https://terragrunt.gruntwork.io/

[1] https://terraspace.cloud/
Ye I know. I was half sincere, half joking.
IMO multi-line lambdas are unnecessary; they can't be easily documented or better maintained than a named function. If your anonymous function needs more than a statement it makes perfect sense to define it as a separate named function. Faster to find, document and maintain.
Monocultures are bad and stiff innovation.
> I'm just going to start calling it Super-Saharan Africa. When people point out the issue on their map, I'll just flip it 180°. Google Maps conveniently reorients text.

You'll just confuse people and look like a joker when you explain to them that you've decided to change universally accepted geographic nomenclature on your lonesome because you took a whiff of maybe possibly who knows racism.
In the UK, all leases are legally for at least 6 months; 12 months obviously is common.

So you could combine that with Oregon law. Or use the German system someone mentioned.

Basically anything but the unfettered free market is going for home tenancy, given the obvious and large power imbalance between renters and landlords.
https://review.firstround.com/give-away-your-legos-and-other...
In a world with hard-capped energy use the incentives to expand into space would be enormous, I don't think it's unrealistic at that point to think the growth will continue outwards.

In particular one can imagine outsourcing every high-entropy activity to space and leaving Earth for low-entropy high-value activities.
Programming languages are software products like anything else in computing.

I rather not be using edlin of programming languages when given the option.
yep, that's a good example of what I refer to as IKEA assembling your groupby. You need to put something like 3 parts together before it does what you want, and they aren't that intuitive (or they only are in retrospect).
That would require a valid certificate, wwouldn't it? (for it to work out of the box)
The hard lesson I learned is that success in socializing as an adult is quite different from success in socializing in school. I don't make close friends with adults the way I did as a school kid. I had to unlearn a lot of my school life to succeed.

The school environment is a very artificial one, and not very comparable with much in the adult world. Those who stick to the rules learned there tend not to do well (also found out the hard way). For years I've tossed the idea in my head to write a blog post of all the life lessons one learns in school that lead to poor performance at work. Likewise, I'd like to write another post on all the lessons from school that often do translate to the work environment (because it was so ingrained in us), but which leads to suboptimal working conditions.

I can't obviously discount your experience, and my school experience was actually quite good - but just as you are aware of the downsides of home schooling, I'm aware of the downsides of schools.

If we go beyond anecdotes and to research, I believe most research is in favor of home schooling - both academically and socially.
> or _when_ undefined behavior is our friend. (emphasis mine)

I think this is the key point a lot of responses are missing. It's not that undefined behavior is innately good or bad. It's that it leaves wiggle room that can potentially be exploited for good while being too rigid may not always be the best long-term strategy.

I used to think of code as something that should live forever and compile/run for all time without change. Over time, I've come to realize that just as spoken languages evolve, so do our programming languages. To run/understand code written 2 decades ago, we often have to use compilers/interpreters from that era. I doubt that will change even with extremely rigid language specifications.
As a keeper of pretty much every computer I've ever owned, I think the Nascom-1 from 1979 (2MHz Z80, 768 bytes of RAM, no, that's not a misprint) is out even if it does have a video display and full-size keyboard.

Maybe a PDP-11/03 or 11/23? Too noisy, I think. And while RT-11 is lovely, I'd be limited to writing text, C, and Fortran. Oh, and PDP-11 assembler (maybe just punch the opcodes in in octal, as it's so easy to translate in your head on a PDP-11).

Amiga 500? Nope, won't run GCC.

A 286 or a 386 is looking more serious. Some of them have a good 8Mb of RAM, VGA output and ethernet. Could even run linux, something like 2.2 from the days when a system worked well with 4Mb RAM.

Any 486 would definitely do it, all the 486/66 boxes just turn on and go (one has been doing daily duty as an autoattendant for maybe 15, 20 years). Starting to get to the point where there's a DVI output, so nice text on an LCD (the massive 27" Diamondvision CRT can stay wrapped up).

Hmmm....now, a Gateway 166MHz Pentium. That's nice, because it's pretty much silent, runs 100Mb ethernet and has a Matrox video card. Zero problems working with that for a week (or longer) except for web browsing (there's always links/lynx et al).

An 800Hz PIII with 512mb of RAM and an Nvidia 7600GT video card would be fantastic - those video cards were the fastest text kids on the block (scroll about 600k characters per second at 160x60 on 1600x1200 framebuffer). XFree86 from 2004 works fine, but a web browser would have to run on a faster box and export the display (which would be cheating). Old versions of Firefox are plenty fast enough, but will crash PDQ on many modern sites.

So really it'd be the modern web holding me back; too slow, bloated, and inefficient to run snappily on pretty much anything short of a 4GHz+ multicore with 8Gb or more of RAM and at least 100Mb ADSL.

Think I'll go cry into a paper tape reader now....
I've had the exact opposite experience trying to get support setting up a VPN to connect an on-prem server with remote clients (using self-signed certs and terraform). I'm not very familiar with Azure and I was volunteering my time/expertise but the support (paid but basic plan, I think $100/mo) was very underwhelming. The support technicians were all Indian and while they were polite and had good English, the time difference made the back-and-forth painful.

Spent over a month trying to resolve the issue but I must've been talking with tier 1 support because it was obvious the support technician wasn't very technical (asking very basic questions that I had already answered, couldn't answer any of my questions without getting back to me days later). Combined with the quirks and performance issues (30+ mins to setup VPN gateway) it was a very poor experience and I wouldn't choose to work with Azure in the future.
It's not true that most people in the world are waiting. Most people have work to do, and they are young and relatively healthy, and have immune systems, so they just get on with their lives, not unduly frightened by a virus that poses very little risk to them.
Disrupting language.
The compiler could still sub in the equation for unsigned integers, the equation is (mostly) the same.

Not discussed (that I can see), the real problem is the loop variable -- because the loop ends with ' <= n', which means if n is the largest unsigned integer, this is an infinite loop. One easy thing UB is useful for is proving these types of loop terminate (as overflowing would be UB).
Most people building houses now are comparatively rich?
Same. But for me they're just too expensive. I'm a rather honest guy who appreciates the same.

Instacart is full of deception. You think you pay a delivery fee, a service fee, and a tip. That all seems fair. Until you realize they silently jack the price up of every single item without calling that out. Worse, they don't use discount cards. Kroger, one of the largest in the US, is well known for their cards and 'fake' deep discounts. Many times shoppers would send me a pic for a replacement item showing '12.99' on the label only to bill at double that on the receipt.
What I don't understand is why do I never get ads for Youtube premium? Why isn't there a "signup to Premium to remove ads" on every page.

To find out about Premium I have to go to my channel-> Purchases and memberships->Read More
Learn You a Haskell for Great Good taught me list comprehension, and I was surprised to see such a pithy shorthand available in Python (+ dict comprehension). That's a very functional way to transform objects from one shape to another with an in-line expression, no lambda keyword there.

But even the lambda keyword isn't so bad, you can create a dictionary of expressions to call by name, a lot more compact them declaring them the usual way imo: https://github.com/jazzyjackson/py-validate/blob/master/pyva...

To your point, I only recently learned there's a Map function in Python, while in JS I'm .map(x=>y).filter(x=>y).reduce(x=>y)ing left and right.
On the contrary it fostered a development in C++ IDEs and .NET like frameworks, whose Qt and VCL are the only worthwhile survivors.

As for your list, I never had many issues keeping a code compiling across MSVC, aCC, xlC, SunPro, GCC.

In fact aCC on HP-UX 11 was the one that gave me more problems.
The problem is that “radical” is in the eye of the beholder. If a language is so poorly specified that developers and the specification don’t agree on the meaning of a program, that leaves optimizers in an unwinnable situation.
Maybe if more people learnt the language instead of crusading on about it's supposed heritage, it would have been the official language of India.
This is 100% my point of view, but nevertheless I must admit that the „creative output“ (movies, music, games, musicals etc) of the US seems so much better than that of the rest of the world…
That you have to redo it all the time, as in kitchen remodels.

Blame it on folks outside of dev? I would ban the word “modern” if possible. Everyone thinks that it’s obvious but no one seems to be able to define it once and for all, lol
My hunch is that instacart is being prepared to be sold to FB, hence this move with an FB exec.