skysight-inc/HackerNews huggingface dataset:
There are open source projects: https://github.com/M3-org/awesome-metaverse
Note that this isn't just a gotcha when writing your own absolute value function. The code given in the example is also how java.Math.abs() works.

In C++ std::abs(std::numeric_limits<int>::min()) is undefined behavior (not even implementation-defined: nasal flying simian warning!). Most importantly, the optimizer is allowed to make optimizations that are only safe if abs() only returns non-negative values, but abs(INT_MIN) can also return a negative value (or trap to the kernel/SIGFPE/SIGBUS/etc. on some exotic architecture).

So, in C++ one might be tempted to get around this issue by writing:

static inline int my_abs(int x) {
const int result = abs(x);
if (result < 0 /* WRONG! UB! */ ) {return numeric_limits<int>::max();}
return result;
}

But the C/C++ optimizer is allowed to optimize away your conditional branch. You need to check for INT_MIN before calling abs() if you want to guarantee the optimizer won't thwart you.

More crazily, if the C/C++ optimizer discovers that some conditional branch is always conditioned on undefined behavior, it can just optimize away the branch, or even both sides of an if-else.

static const int x = std::numeric_limits<int>::min();

void f() {
puts("Before\n");
if (abs(x) >= 0) {
puts("Expected\n");
} else {
puts("Unexpected\n");
}
puts("After\n");
}

The optimizer is allowed to determine that neither the if nor the else ever executes and optimize f() to { puts("Before\n"); puts("After\n");}

When I was at Google, Michael Chastain was telling me about one of the oddest bugs he helped debug (super helpful and knowledgeable guy, btw, one of the few people trusted with code ownership of the root of the monorepo). It was basically the above, but the UB was related to static initialization order of floating point variables.

static double y = 22.0;
static double x = y / 7.0; // Uh-oh... depends on floating point static init order

void f() {
if (x > M_PI) {
...
} else {
...
}
}

When my plan for world domination succeeds, one of my first acts as World Emperor will be to appoint a commission to change a lot of this undefined behavior into implementation-defined behavior.
You are probably one of minority who enjoys having financial freedom to buy a new car and replace it after couple of years.

A lot of people just don't have finances and will be buying second hand cars and will generally try to extend the life of it for as long as it is possible.

A Tesla here in Poland costs as much as a small flat in a city center. Half of population does not have income to buy their own flat, let alone an electric car. That half of population currently buys cars that are are about 10 to 50 times cheaper because they have no value to people who have any possibility of buying a new car.

A Tesla might be more reliable for longer, but it will eventually reach that part of market.
you mean something like prevention of overpriced/highly-speculated housing prices?
That's a lovely site, the design really gives me e-book vibes.
I 100% agree, it was not my intention on the post that “nature” is the approach to follow completly, we don’t want to take million years randomly guessing for sure, just borrow a part of what nature does, which is facing the real world, letting some parts die and move on. I agree with your completion to the point
Yes, gymnasts are typically very lean. Source: I used to be one, though I'm not particularly lean anymore sadly.
Nobody speaks out against this stuff. People just quit and go to a truly remote friendly place instead.

Next time you are in a conversation about remote work, see if you notice this: the only people who speak up are the ones who say "I can't wait to go to the office". The rest smile and nod. And yet online polls show a very different picture.
But it already has been forked, several times to boot ?
But who ordered the Node-RED???
How thorough have you been in researching competitors? I'm willing to bet that there'll be some differences either in target market or execution. Even if it's effectively the same product maybe there's something they've missed which would give you a significant advantage early on?
If nothing, it was valuable for me already. My goal was not to preach agile (much less scrum), but to actually try to find a common rationale behind the good and bad experiences that people do feel they had coming from agile. And for me (maybe for other devs too), finding an explanation that makes sense, a more general theory, is very rewarding in itself, it allows contradictory ideas to fit together in my head
Personalized Education System
I'll make no comment on how masterful/well written this is, but these are the most used libraries in the JS world by far margin: https://github.com/nodejs/node/tree/master/lib
I'm honestly not that surprised about the size. In my experience, efficiency and the number of engineers have not necessarily correlated.

For example, I used to work for a company with about 500 employees (relatively large by German standards) and now work for a competing company in the same industry with less than 150 employees. The core engineering team only consists of a dozen engineers.

The output is noticeably larger. The number of new features and especially the stability is significantly better. It is noticeable that due to the small team, each project has one or two "heroes". They are responsible for most of the commits and know the system inside out.

These "heroes" have been working on the same or similar systems for over 30 years in some cases and have experienced a lot in their careers. As such, they can bring experience and advice that is just out of reach for others.

Given the choice, I would always prefer a small team over a large team.
The problem is that some people swear by pangolin scales and rhino ivory.
Counter point: i find the expectation to have a camera turned on rude.

Different people have different expectations and there are probably a lot of reasons for the wide variety.

However it kinda sounds like you have a different expectation than the team you work with. Would be mindful of taking the stance that ‘everyone else is wrong’
No company is going to pay everyone the highest amount they possibly can.

Letting someone's salary get to a point where they need a 60% raise to get back to a market competitive salary is terrible people management.
while WhatsApp is the largest I am aware of (it's one of the leading platforms Worldwide anyway), there are quite a few, sometimes in the form of Elixir:

- Discord

- Pinterest

- Spotify

- Klarna

- Riot games (the messaging service)

- PepsiCo (for their billion making e-commerce)

- Toyota (for the connected platform)
I guess they would think you're not impartial in this. Perhaps encourage them to get a third party opinion.
Ultimately the resident, as the cost is going to get passed along in new home prices, which will then get passed along for existing home prices and rent.
iOS 15 App Activity Record Viewer
Simplistic. Starts with lowest common denominator (monochrome nothingburger) and progresses from there too slowly.
ZealOS a modernized fork of the 64-bit TempleOS
These issues that you described can happen with any language, ask any programmer or system engineer with long enough experience they’ll have stories with weird problems.

Regardless which language you pick, there will always be these kinds of issues.
Cisco has some systems like this. I've used them. It's neat, but it only really helps with a small number of participants.

Also note that while audio is physically 3D, we are only good at distinguishing on a 2D plane. Basically, you easily get left/right, and you kinda get near/far, but you don't get up/down. Not unless you cock your head.
Invasion of Aliens
Perhaps, but if the evidence quoted by the review here is typical, then that reflects badly on the book.
Wikipedia is riddled with curated edits by malicious editors who block any changes which doesn't suite their political agenda. Because it is not overseen by any board, there is no scrutiny
Until brilliant engineers find novel ways to make the drivetrain so cheap it breaks down sooner.
LICEcap – simple animated screen captures. How to install and use
Plans to shift aviation from magnetic navigation to true navigation
As an applied mathematician, I disagree. Proofs are often useful in applied maths, and most applied maths is much more closely related to pure maths than to engineering. Infinities show up in practical applied maths, but there are more abstract things that don't (yet).
> that is you define what happens encapsulated in a class

Apart from that it is really unintuitive to have something "static" within a class (which is commonly understand as a template), it is not encapsulated because it is static _and_ public. _And_ now you can search for this thing everywhere - and what happens if you find two of them?

Yeah no, the idea of "public static void main" wasn't a great one, no matter how I look at it.

It's much better to be explicit and ask the user to decide which file they want to use as the starting point.

> Of course implicit imports are needed, like what else would you have without

They are of course not needed. You could also just import everything manually. Okay, Java's import suck, but in a better language you could do "import prelude._" in the beginning of every file and otherwise you are left with keywords only. Not saying that's a great idea, but it certainly can work without implicit imports.
My first experience with agile was not with Scrum but XP, and it was a very good one. There are so many people here conflating Agile with Scrum, and I shouldn’t be surprised I guess, but my goal was not to invoke the “No true Scotsman fallacy”, I don’t care about pointing who is agile and who is not, or what names you use for what, but I do care about the principles behind it, they can give us very good ideas on how to balance certainty vs uncertainty, upfront design vs feedback cycles, in whatever environment you are. Some environments you will need to balance more to one side, some more to the other.
The more opaque and subjective a system is, the more it will favour advantaged groups (principally those of high social class) - in my experience this is especially true of systems that are nominally intended to help historically disadvantaged groups (which tend to benefit high-class members of those groups). Objective standards, consistently applied and enforced, are disadvantaged peoples' strongest weapon against discrimination.
As long as they will also take on the financial risk due to potential errors in their code.
Vaccine efficacy isn't dropping because of mutations, but because the body forgets.
Actually, they lacked 0, so they could not even terminate their C strings properly.
yes ... a lot.

scaling may be different but very efficient approach to getting to reasonable scale (perhaps 1000s of users)
It would be a mistake to read this article without taking into account years of anti india articles, smeared with false facts done by Washington Post. They throw such unbelievable statements which won't fly if done for USA. But in case of India, it passes under scrutiny radar
How about connecting multiple LEDs to a single website and track what section / page of the site is being viewed? Not sure how feasible it is but it could be fun too.
This is great advice and it is definitely how i learn best too.

But what do I do if i don't have the time necessary to do this always?

At my university i have 4 graded assignments i have to hand in every week and they always consume a lot of time. Between working on those there is barely any time to even study, except on the weekend, which by this method might be enough to study two subjects max.
I feel like this works but not for the pace of a college degree.
It's sorely obvious that the creator of this project was a computer scientist, or someone who thinks in an overly technical manner rather than an artist, who thinks more about emotions and feel.
>The job of a homeless shelter is to provide homeless people with temporary shelter instead of having them living on the streets.

The job is more than just warehousing people. Its making sure that shelters are clean, safe, sanitary and efficiently operated. Here in New York homeless shelters are filthy, understaffed, overcrowded and filled with violent predators, leaving many homeless to feel safer sleeping on a sidewalk. Like San Fransisco, the problem certainly isn't from lack of funding - its from corruption and mismanagement.
SHOW HN: Reduce development build time up to 50%
Hi,
We build a tool to take your development build in the cloud and bring the result back to your machine. For now, it just works for Android.
If you have an issue with your build time, check it out.
Feedbacks are welcome
Even before the sale, most of the customers are non paying. They are offering the service for free in countries with largest userbase(India and Brazil I think). I really doubt it had reached 50 million paying at any point in time.
Nobody I know paid it even back then. That's why they used it, because it was free.

It's like Microsoft Office these days. If your home license expires they keep threatening you they'll disable it. For years and years.
Another Personal Electric Aerial Vehicle which looks promising: https://www.volocopter.com/solutions/volocity/
No, companies need to train and retain people. If you can't find (10X enginneers|some necessary widget), make (them|it) yourself.
Ask HN: Should a UG student today take up CS or ECE?
Given the student has equal interest in both the subjects, and has a drive to learn whatever interests them. What degree makes more sense in today's environment?
> If you can't be bothered to have your camera on in meetings then you probably shouldn't be in that meeting in the first place.

That's a very black and white view. We (also relatively small company) take a much more flexible route. Some meetings, use a camera, like when you're presenting something to a group it adds to the story to see facial expression etc. Lots of other meetings use voice only, similar to how you just call someone when you have a question. Adding video doesn't change the answer and puts restrictions on participants to sit still in front of a camera while voice only can be done with a headset walking around.
I've done my research just yesterday and decided upon mailbox.org. I fully switched over in less than 4 hours.

It's hosted in Germany (GDPR regulations and reasonable privacy), supports custom domains, provides cloud storage and office suite and supports full inbox encryption with your own public key - the service provider allegedly can't even read your email after they encrypt it.

To move your existing email from GMail, first remove large junk/spam/ads emails and then download everything with Thunderbird over IMAP, then slowly copy emails to mailbox.org folder.

It also provides cloud storage (which I intend to use in addition to Syncthing) and cloud office suite.
I like the idea but the way the pictures are generated seems way too obvious. It's clear that there is a small set of "patterns" with randomized parameters. So it becomes like "do people like the water drops in the corner or in the center? red or black?". Might be more interesting if the generated images were a little more sophisticated and varied.
patrakov is talking about updating the docker daemon/engine (that runs on the host), not the images that you run with docker.
I agree that virtual meetings ARE fatiguing but guess what... a full day of in-person meetings is also fatiguing. Meetings ARE fatiguing. At least when I'm virtual I don't spend my day bouncing from one meeting room (sometimes in different buildings) to the next hoping to find a toilet somewhere in-between or have time to grab a coffee. I'll take virtual any day.
Check out slack huddles, they actually work fairly well now.

Was not a fan initially but have grown to like the fairly fluid transition to fully sync comms (for the kind of interaction where I used to go to a co-worker's desk before we were full remote).
Almost like Erlang was designed by a telecom company ....
Would be really interesting to know about the details about how opinions diverged.
Related to the last bit: I was somewhat surprised DuckDuckGo is not a total scam because for years it got installed on my pc packaged with other software if I wasn’t paying attention (or the installer was especially crappy and didn’t let me opt out)
I'm regularly in meetings where people are on camera and where everyone has them off. It's clear the degree of people not following the discussion when the cameras are off is much more substantial.
I just can't keep focus on online meetings, everything said just quickly washes over me. IRL meetings are a bit more engaging, but if they become more presentation-style, I just fall asleep (either in the sense of "I'm not paying attention" or "zzzz").
Fantastic! Thank you for compiling this playlist :)
do you just melt when in the office?
Prosecuting FSD claims, historical or present, seems like a slam-dunk case for the FTC…
Optimized code is not an anti pattern! What is an anti pattern is premature optimization, code you write a certain way because you think it is optimized but because you don't understand the compiler and hardware, it is not.

Optimizations in standard libraries are generally good ones, and reading it can give a good idea of what is or isn't worth it.
Himalaya: CLI Email Client
This government loves throwing around corporate welfare with zero benefit to the public.

The largest handout was $40B given to companies that were not eligible for the JobKeeper program. The government and tax office have no intention of clawing back that money. Meanwhile they literally sent false robotic debt notices (a program declared illegal) to people living on the lowest welfare payments in the OECD.
I thought this was satire about Apple's new iPhone at first.
> Though I'm sure someone's going to step in and say "Have you not heard of [stupendously niche use case]?"

> they might hand-edit a machine-generated one to make a change someplace in it

Ah, there's [stupendously niche use case] ;)

Seriously, though, I do agree with your point that good software should handle every edge case. I'm not arguing that.

But the case for having trailing commas does seem to be generally predicated on handwritten JSON, so I'm saying it's _unlikely_ it would be used in that way, and therefore that such failures would be rare and thus not a very grave counterargument.
> Every surficial map especially lies when preserving shape, area, or distance. You can’t get them all.

That's really throwing the baby out with the bathwater. For a map of a city, you can get all three just fine. The curvature of the paper will be within margin of error.
Rents everywhere you look, not only in housing. If you want to be a car mechanic, prepare to pay rent on your diagnostic computers. Want to be a farmer? Your tractor won't work without yearly service visit. If it breaks in the middle of the field? Yeah, you can't fix it yourself anymore, need to pay. You want to program microcontrollers with something more than arduino ide? Yeah, yearly subscription for your IDE, or per-compilation fee. I could probably find such examples in many more fields.
Which is why corporations need checks and balances - including safety and hygiene tests on ALL products sold.

Of course, corporations have a financial incentive to check their own products - there will be a huge lawsuit coming out of this and Walmart will end up paying millions in damages.
Usually there are officially licensed contractors that provide repair services on behalf of the manufacturer. These contractors will have all the right equipment, materials and procedures.
Very specialized things are normally outsourced to other mechanics. You can easily earn a life if you specialize in fixing car switchboards, specially when you are the only company in town that does it. Tools are expensive normally and earning the skills need a lot of self-training hours. As long as the spare part is expensive, too delicate or too risky there is a niche.
> Yet people seem to focus on the technology, because that's more easily replicated, and easier to accept, in my opinion.

I think you are correct. It also works as some sort of advertisement. Others feel like they made the right tech choices, if they choose the same tech as WhatsApp or Spotify. Completely forgetting that they probably need to be somewhat proficient in Erlang to get the benefits from the language etc.

I guess that "hire extremely good developers" is less sexy than just choose Rust/Erlang etc...
A static React site, an Express backend, and a REST API is hardly exotic
Cannot find if it supports any version control? Does it?
>speed of light is almost but not quite 3.0E8m/s

On that subject, if you decided to make your base unit of length the distance light travels in a nanosecond it'd almost be a foot but not quite.
In my experience, conference calls never managed to replace travel, but in many cases video calls have done so. Even my consultant friends who travelled extensively now use video.

In that respect, conference calls did not work, and cameras are important.
I see the problem as being one some History professors refer to when they remind students to consider that life is remembered backwards but it is lived forwards. A good tool would have the flexibility to adjust previously defined activities dynamically as events unfold. Yes, last week I blocked Tuesday afternoon to writeup a test plan but the phone rang and things changed and that single activity 4 hour block ends up being completed in 5 chunks over three days. The UX should be easy to break that work plan up but it isn't and I certainly don't want 5 tasks for this little thing anyway. Likewise, as a result the journaling of that time as it actually happened is lost along with the ability to gain useful metrics except at a less granular level.

Also, for what its worth I'm not sure about the 'i' thing or why u felt the need for a throwaway in this case, but it would be interesting to hear what tools you do use after trial and error.
Why No Best Programming Language Exists [in 231 Words]
Very curious about the circumstances surrounding this move, especially as the EFF is one of the few organisations taking a principled stance on the state of the internet.

There is certainly a lot of doublespeak - the EFF's own news page is titled "John Gilmore Leaves the EFF Board, Becomes Board Member Emeritus", but the body of the text confirms that "the EFF Board of Directors has recently made the difficult decision to vote to remove Gilmore from the Board.".
Consider visually processing (counting at a glance):

X X X X

and

X X X X X

How many are in the first? How many in the second?

It's my rule of thumb that all human pre-attentive processing can handle 4s at the pre-attentive level, and 5s+ require cognitive engagement.

This sound rule here seems to be the same: voice + 3.
Take in mind that this would be absolutely illegal in Europe in 99% of the times, and a huge pain in the ass in the 1% remaining.

And when I say huge I mean huge. Months of bureaucracy. To start can't be done without the maker agreeing and certifying that the modification does not affect the safety of the car (and the maker would never agree, of course).

For a TV show? of course. Do it. Just don't expect to be allowed to drive that car in a public road. Ever.
I just feel like smells intended to cover up bad smells make you associate them with each other. I'm sure that bathroom sprays for example are its own category not used elsewhere, to avoid the association.

I'd prefer to smell bleach / chlorine when entering a bathroom over a shitty spray myself.