skysight-inc/HackerNews huggingface dataset:
C++ has a lot of features (large surface area) and power. This power is the result of powerful language constructs like inheritance, operator overloading, templates, etc. This can make it very powerful and concise for writing code. When power is hidden, it makes it very difficult to read.

C just has data structures and functions (small surface area). Its simplicity makes it much easier to read.

Some languages prioritize adding features and power. C++, Rust, and Swift are examples.

Other languages prioritize minimizing the surface area. C, Go and Scheme are examples.

Programmers either value minimal surface area (better for reading) or maximal features and power (better for writing) and are more likely to adopt languages based on this classification.

For example, C programmers are more likely to adopt Go over C++ and Rust. And, C++ programmers are more likely to adopt Rust.
When I worked in Amazon retail many of the India and China immigrants happily and proactively traded Christmas and New Years oncall for black Friday/Cyber Monday. Or many other holidays. Heck the kids who were spending their first holidays away from home did it to have something to do.

Pre pandemic there was always a cool feel of working a chill holiday day with just a few others, compared to the insanity of those massive scale days. You also got to work on whatever you wanted as managers didn't plan anything.
Apple is active in their OSS work although, if you go look at their OSS project forms and such. Look at webkit, swift, etc.
Patrick Stewart is great, but for me the definitive version is the one with Michael Caine
Which is why I said use Wireguard to talk to your self hosted services. HTTPS can be intercepted with a root certificate, a VPN cannot.
> Could you elaborate on what went wrong? Was that type of failure a new occurrence with the person?

Thanks, good question.

Yes it was a totally new circumstance with a friend I'd known for a year who has been minding my dog.

To thank her, I invited her to spend a week at my beach house. The electricians couldn't schedule an appointment for 10 days, so I told her it would be vacant until then, and invited her to go relax with her dog.

She's a fashion designer with a great visual aesthetic.

Immediately upon arrival she was full of ideas to improve the place. Those vertical blinds are lame - you need new curtains in the lounge. The bedroom curtains are tired - replace them. That carpet in the stairs is so old - rip it up and just have bare concrete.

But I only had 10 days before peak season. I told her I liked her ideas, but I'd like to keep the scope small so I can rent the place out after the electricians finish in 10 days. We can revisit the other ideas in March or April, I suggested.

3 weeks later, she'd taken over the place, which was unrentable. She'd ripped up the carpet without my permission, and left hundreds of nails sticking out of the concrete. When I told her how surprised I was, she said we'd talked about that, get over it.

The new Italian leather lounge was thus stuck in the downstairs garage, because it wasn't safe to move it up the stairs. That wasn't a problem for her.

She ripped out the vertical blinds in the living room and dining room, but only half completed the curtains, then stopped and started a dozen other tasks e.g. fairy lights for the deck.

The bedroom curtains didn't work. They hadn't been gathered correctly, and were tied off too short so they didn't close the gap.

She threw out the kitchen curtains, but the blind she replaced them with didn't fit the space, so she cut the ends off. Or, one of the ends. The other one she left sticking out. The hanging hooks weren't in the right place for the three chord pulleys, so she cut one pulley off and now the blind bends in the middle.

For every one of these issues, my friend's response was to start a new initiative!

It took me 2 weeks non-stop to remake the curtains after she left. This is a task I know she could have completed in a day, because I've seen her with a sewing machine and she is brilliant. But she didn't get to this in the context of the renovation in the 3 weeks she was there.

When she left she blamed me for everything and said our relationship was now irreversibly damaged.
Well, you don't really need to mimic OO to make that code cleaner and less error prone.

Here's what he wrote in order to complain about it:

if (mode == ambient) {
// handle pixels as ambient...
int steps = right.a.x - left.a.x;
float dv = (right.a.ambientLight - left.a.ambientLight)/steps;
float currentIntensity = left.a.ambientLight;
for (i=left.a.x; i<right.a.x; i++) {
WorkOnPixelAmbient(i, dv);
currentIntensity+=dv;
}
} else if (mode == gouraud) {
// handle pixels as gouraud...
int steps = right.g.x - left.a.x;
float dred = (right.g.red - left.g.red)/steps;
float dgreen = (right.g.green - left.g.green)/steps;
float dblue = (right.g.blue - left.g.blue)/steps;
float currentRed = left.g.red;
float currentGreen = left.g.green;
float currentBlue = left.g.blue;
for (j=left.g.x; i<right.g.x; j++) {
WorkOnPixelGouraud(j, currentRed, currentBlue, currentGreen);
currentRed+=dred;
currentGreen+=dgreen;
currentBlue+=dblue;
}

Nobody should do that. We use a temporary variable of the correct type. For example this way (but it could also be done with pointers to access directly the union variable):

switch(mode) {
case AMBIENT: {
PixelDataAmbient l = left.a;
PixelDataAmbient r = right.a;
int steps = r.x - l.x;
float dv = (r.ambientLight - l.ambientLight)/steps;
/* ... */
break;
}
case GOURAUD: {
PixelDataGouraud l = left.g;
PixelDataGouraud r = right.g;
int steps = r.x - l.x;
/* ... */
break;
}
/* ... */
default:
show_error("Illegal mode");
}

There is no need to cart all the .a. and .g. around and clutter the code. And there is no possibility to accidentally access the wrong fields the wrong way: trying to access l.ambientLight in the second block (GOURAUD) will fail at compilation since a PixelDataGouraud doesn't have an ambientLight field. It is also not possible to do PixelDataGouraud l = left.a; since left.a is not a PixelDataGouraud.

Much cleaner, much more readable and avoids most of the possible errors he complains about.
I wonder what he would say about the missing of any mention to Dinosaurs in the Bible...
We're in the same situation, but went with a pack of simple styluses instead of switching platforms. Working ok so far, arthritis definitely gets in the way of the iPad solution. That being said, we're definitely avoiding a pile of family tech support because of the iPad.
I live in Austria and we do not have people living in tents on the sidewalk anywhere. (But we have some homeless people)

Part of this is probably due to the fact that I pay 48% of everything I earn in taxes and I am totally fine with it!
Thus proving the hypothesis that “all jobs that need to work at Christmas are truly important” to be rubbish.
Otherwise you couldn't drop the braces like you currently can when passing hashes to functions.

x, y = 1, 2

puts x: x, y: y
# ==> {:x=>1, :y=>2}

puts x:, y:
# ==> {:x=>1, :y=>2}

puts x, y
# ==> 1, 2

Which would be inconsistent and annoying.

(and knowing Ruby, I imagine there might be some syntactical ambiguities as well)
Lets also get rid of web search engines while we are at it, or transparent caching CDNs /s
Probably because companies exist to accrue money, not social capital. If we held every company accountable for participating in the exploitation of Chinese minority cultures, we'd probably set ourselves back 50 years in terms of technological progress and manufacturing capability while the CCP continues to happily enslave any which culture they oppose.

I'm not saying I agree with the practice, but do I find it hard to believe? Not even slightly.
Yeah, my company treats me very well so I was definitely willing to patch this thing during an unfortunate timing. If they were always treating me like shit, I polish up the resume too. You should do it.
Please consider https://github.com/microsoft/azuredatastudio/issues/102#issu...

>SQL Operations Studio was built on the back of many open source projects that all use the MIT License for a reason: it's the right way to keep moving the community forward, empowering your users to do cool stuff and build useful things for the community.

>We're just asking SQL Operations Studio to use the same license that Visual Studio Code does.
This is a problem that will get worst in the coming decades.
A beat up commodity shipping container cost me $3,300. If you can deliver a functional home without taking a loss for $1,700 more, you're a genius and a wizard.
As other people have said: when you let the government expand its power in emergencies then you’ll never run out of emergencies.
Thanks for this. Rereading + your comment and I think I have a better understanding of why this is progress.
In practice, you would just replace the queue with a disorganized rabble of people standing around, where as soon as the person currently being served leaves, there is a mad dash at the one secure spot, which is at the very front.
Could be a scam or money laundering scheme for the Chinese government or it's henchmen.
I had a wierd conversation that backs this up, talking to a 70 to 80yo guy, he seemed extremely fit and mental young, but as we got talking about the brexit vote he suddenly got angry/ passionate!! about how the polish are coming in and talking all the jobs, he went on and on for what seemed like ages (about 2 to 3 minutes)

I asked him in a calm but intrigued way to explain more, has he lost his job or has is family been affected? He suddenly changed his demeanor from angry to very calm and passive then said there's been no immigrants to his village and he's retired, but that they might come though - I thought wtf

I asked him does he read the daily express? he shrugged like, whats that got to do with anything and he said yes, the conversation moved on
A simple solution prior to writing to a file in this case is to check if it already exists. It shouldn’t matter what triggers this bot if it’s programmed safe and idempotent.
> For private cars, the average utility factor (UF)—the portion of kilometers driven on electric motor versus kilometers driven on combustion engine—is 69% for NEDC type approval but only around 37% for real-world driving

Not a majority, but 37% of your driving on electric is a significant chunk. Would

And to take a Prius Prime for an example, you can still have a very efficient vehicle when you're running in normal hybrid mode:

> C/D observed 75-mph highway driving (hybrid mode): 47 mpg / 49 mpg / 47 mpg

If you're trying to make the most difference with limited battery production, that's 8.8 kWh of batteries for a Prius Prime. You can make more than 6 of them with the batteries that go into a single "low range" Model 3 (54 kWh).

Six cars doing a bit over 1/3 of their miles in electric mode, or one car doing all of its miles in electric mode?

That's a relatively short electric range car, if 25 miles isn't doing enough for most people there's probably a good middle ground where you use half the batteries of a long range EV but cover 90% of your milage in EV mode.

This is of course ignoring that the Model 3 is a lot more fun to drive than a Prius Prime, but just to make the point about battery usage.
Can we please not promote neo-Nazis (s*ckless) or their software on HN?
Perfect example of the kind of simplistic and wishful thinking which plagues modern economics. They assume that their model of the world will solve a problem without bothering to check if it does.
I've enjoyed The Robot Brains Podcast with Pieter Abeel [0] -- interesting insights and anecdotes and great guests! Some of the episodes I enjoyed:

- Ilya Sutskever (https://shows.acast.com/the-robot-brains/episodes/ilya-sutsk...)

- Andrej Karpathy (https://shows.acast.com/the-robot-brains/episodes/andrej-kar...)

[0] https://shows.acast.com/the-robot-brains
I'm suggesting that we do comparison with things conductive to the act of comparison. With the atrocities we are discussing there is nothing to be gained from comparison because things are already maximum bad: The numbers just vary. Comparison can take away the weight of that, which in our fuzzy wetware translates to dissipating motivating energy that could have gone into action.

I do agree with your point and I am not a believer in the law of the excluded middle.
> I’d try to put myself in my colleagues position in order to understand my colleagues feelings but because we have different thought processes this didn’t work at all.

I commend you on acknowledging this. Neurodivergence changes how one experiences situations, skills, and motivations, and many well-meaning people tell neurodivergent folks that they'll magically experience things the way they're "supposed to" if they just build enough character (try harder, see things differently, adjust their attitude, etc.).

You're helping your colleague simply by reacting to them with curiosity, rather than just getting frustrated that they don't fit into the incomplete worldview you had going into the situation.
Yes, node.js and JavaScript transpile issues in particular are super annoying. But idk if any book would help you with this either.

I recently discovered Vite (with pnpm) and so far I haven't had any annoying JS/npm/engine issues, so that would be my recommendation. Generally to setup something I either a) run `<build-tool> init`, b) "create new project" in IntelliJ, or c) clone a medium-sized project on GitHub, then remove the code and leave the configuration files.
If you want to cause tremendous inflationary pain to the working class and rolling blackouts through an energy transition this is how you do it.

We are not at the stage where we can bootstrap green yet. You still require fossil fuels to build a green economy. Sure, coal is bad as an energy source, but that EV you want has a ton of steel inside and that requires metallurgical coal. The copper required for a green economy needs to be mined, and the machines used in a mine require a portable, dense fuel source like oil.

To make matters worse, energy prices feed into other areas of the economy. Ammonia costs have skyrocketed due to the energy issues and that's causing the price of wheat and corn to skyrocket.

The proper policy is carbon credits and a measured transition unless you're ready to punish the working class and developing nations.
Worldwide we have plenty of merchant ships. Taking a few out of operation has no significant impact.
Not exactly the same problem, but my wife has been unable to visit my elderly mother in law who lives alone in a different country because of covid. My mother in law has problems from time to time with email, skype, etc. We switched to zoom because my mother in law can share the screen and we can move the mouse, type etc. We were lucky in that we had an acquaintance we trusted in the same town that could install it. But the basic thing is doing a video call a few times a week so they keep in practice and have a cordless phone or cell phone they can use to talk them through getting zoom connected in the first place if they have troubles. It's not quite a slick as solutions like team viewer but I think my mother in law would not be comfortable with us remote connecting anyway. Good Luck!
Related: Technology can save us.

Nope. Only we can save us from ourselves. Technology is a non-specific amplifier of the energies and values of humans.
It was mostly about availability of such luxuries. Even if you were "rich", money in a controlled economy was pretty much useless. Everything was rationed (one car per family, 2 breads, 1 bottle of milk per day, etc.) unless you were in the right circle (which meant being actively part of the secret police or a snitch for them). Also, travel abroad and imported goods (unless imported from USSR or a few other select communist countries) was strictly forbidden for the plebs.
If ADHD = poor attention span, how do you explain hyperfocus?
With an online business you're not placing the value on the software created, but on the potential to create lasting addiction.

The same way when you see news of large drug busts, the numbers floated around are based on how much the confiscated load could fetch on the street (iow. end of the chain, with addicts paying through the nose) - not on how much it cost to manufacture.
> intercepting MSCHAPv2 does not compromise the credentials.

But the cryptography it uses is horrible. A random Web search suggests that Schneier declared it insecure in 1999 and Microsoft in 2004 or so. In the mid 2000s there where commercial services on the Web to recover forgotten Windows NT passwords for $20 or less. (I used it once, worked perfectly). I understand it's the same algorithm. You don't even need to recover the password. You can use the hash you captured to get access later because it is unsalted.
This is amazingly exciting

Would she know about any list of projects that intend to use the new measurements?
One of a few past, great HN threads on implementing idempotency –

Implementing Stripe-Like Idempotency Keys in Postgres https://news.ycombinator.com/item?id=15569478
Not sure how common or secure this is but even inside my password manager, only part of the password is stored there. I have a common password that I add to complete the password.

So even if someone had access to my password manager, the passwords in there are just partials.
Yes they are still working on world domination and needs to act kind and responsible, unlike Google and Apple that is ahead of them.

If Microsoft had the most popular search engine and the most popular mobile operating system, they would be gathering all our data and putting ai robots to answer our questions.

These big tech companies do not have the best interest of us in mind. They are a force for centralization of power into the hands of billionaires.

It doesn't have to be this way but it requires users to smell the coffee and want another Internet and another big tech industry.
I think for me it was kinda letting go of what job title or self-imposed "career objective" I had set myself and just focusing on trying to identify the things I found the most satisfying. Or at the very least what I disliked the most.

I stopped trying to weasel my way to the "right" job/role to get one step closer to my "career goal" or had the right job title, and focused on some self reflection about what I get the biggest kick out of. If you had a good day at the office today, actively try to identify what it was specifically that made your day good (was it a day of code? Bug fixing? Debugging? Meetings? Design work? Etc)

Sounds obvious and simple but I think it took me a decade or so to realise this. Perhaps I could only really come to this conclusion once I had already "proven" myself career-wise and was making enough money to come to the realisation that I could stop trying to climb the career ladder and focus a bit more on what I get a kick out of, and not if the next role was a steppingstone to something else.
Surely by that same argument scrapping or abandoning any automobile instead of reselling it is going to increase the value of new cars relative to used cars, which might be a net negative for the environment even if the newly manufactured car is a zero emission vehicle.
I don't really like either, but (anecdotally) I've found the Google Home experience to be nicer. I fully intend to get rid of all my current "smart home" trappings when I move, but I have a hard time denying that Google has come in clutch a number of times. Alexa is fine, but there's sorta an inescapable air of consumerism that surrounds using it. It's like you're fighting against Amazon to get the functionality you want most of the time, which is more annoying than it is helpful.

Look on the bright side, at least nobody bought you a Homepod!
This is really super close.

Interface is really consistent, for example List and HashSet both have diff operation.

You could probably write a function that will supply you with the collection best fitting your requirements.

What I'm missing is combining multiple collections into one variable for sets of requirements that no single collection satisfies.

Also I'm not sure if Scala syntax could support other ways of accessing than simple indexing, like for example multi-dimensional indexing and slicing or even slicing by some inequality conditions like SQL does (with use of indexes into data). Basically if you could write LINQ and J in Scala syntax.

Even if not, the Scala collections look amazing and thank you for pointing me in the right direction!
Amusingly, this works on gitlab too. I was surprised that the shortcut was "so good that competitors had to implement it."
That's what I have read. The problem is acquiring quality mushrooms.
Aurochs, super-size oxen that used to roam the Earth
Agreed. With its static typing, namespaces, and stability over decades, I can think of few languages other than C++ appropriate for enormous projects.
My Volt has 300lb/ft of torque and accelerates quite lovely. Sport mode is a fun drive. Much more pep than the VW diesel I used to have. And the car drives for 80-90km on battery without touching the ICE. I go months without filling. I drive 93% electric, only using gas for road trips. You've looked at the wrong PHEVs.
Marktext – Elegant Markdown Editor for Linux, macOS, Windows
but their usage detector is buggy.

I only use it to assist my parent and don't really use it much. but they will pop up the message and saying they have detected business usage with my account. And then disconnect after 5 minutes.
>When some starve and others hoard food, is property more important than hunger?

Yes, because destroying private property rights will lead to further famines. It's something called second-order effects, which Communists seem utterly incapable of understanding.

>The famines were environmental, for centuries.

None were ever on the scale of those caused by the Soviets, Mao, and others, so they clearly weren't just environmental.

>It was only collectivisation and industrialisation of agriculture that stopped the famines.

Industrialization is doing some Atlas-tier lifting for the rest of your argument in that sentence. Collectivization did nothing to stop famines unless you count causing millions to die and thereby having fewer mouths to feed in the following years. Reversing collectivization, on the other hand, increased food output six-fold in Xiaogang, China: http://www.china.org.cn/china/features/content_11778487_2.ht...

Edit: Note that the villagers of Xiaogang had to undo collectivization in secret because they risked literally life imprisonment and execution. They even made pacts with each other to care for the others' children until adulthood if any of them were caught and executed.

Edit2: Since HN won't let me reply to your response directly, here it is. I lived in the Czech Republic and befriended countless people rich and poor who suffered under the evils of Communism. Communism has led to political violence in every single country that has adopted it, without exception. For a good historical overview (since you implied I haven't read any boons on the matter) I would recommend From the Gulag to the Killing Fields, which contains excerpts of historical accounts from every single country that established Communist regimes. You support a Godless ideology of murder, oppression, and lies.