skysight-inc/HackerNews huggingface dataset:
> I wrote some rust code.

Actually, he wrote some Rust and some C code wrapped in Rust.

> I was writing an smtp server... the kind of smtp server you'd write in two days.

(sigh)

> The error would have been detected far sooner had I not been lazy and checked the return value of chown (for a file not found error). But [excused here]

You can't, and mustn't avoid C error checking when writing C code, even if it's wrapped in Rust.

I was a TA in a first-semester course in C programming for several years, and one of the harder things to inculcate is how return value checking is not optional. It's very tempting to assume your standard library function just works, always.
>Teaching mode requires the stove be preheated to the optimal temperature.

Very poetic. Are you Russian?
That's just replaced with brain signal to chip then "decoder" then game software, which I would think is greater than nerve conduction velocity[1]. But then again, there's no "latency" of hand movement + joystick signal -> game software, so maybe it evens out?

[1] https://en.wikipedia.org/wiki/Nerve_conduction_velocity
lol none, someone who says that doesn't really know what they're talking about. You can use zero overhead subset of c++ just fine and it will take barely any more room than C. Now if you pull in the std library it's over :)
You can curse here
Is this really the case, or does stuff just continue flowing into the tools that are still accessible to users?

I have seen an incredible number of businesses that run off of either Excel spreadsheets, or glomped together masses of Salesforce customizations. I'm not convinced that this is an improvement in matters.

I also think that there's just a lot of custom software that doesn't get built.
Is laughter a treatment? It depends. A treatment is something you use to treat. Not something that is effective. If you want to summarize evidence or present opinion, do so, but don't play with language.
> Packaging Python apps for distribution outside of a Python development context is quite pesky.

It's actually pretty easy, as long as you skip on the various tools meant to make it an "easy one click process resulting in just one .exe" (pyinstaller, cx_Freeze, py2exe etc.).

For Linux things are a little bit different, but you're probably okay as long as you use a very old system to build it (RHEL6/7, manylinux1/2014).
Ask HN: What Happened to Fractal Lab?
http://sub.blue/fractal-lab -- this has made a big splash 6 years ago, it seemed like an almost complete software. I am checking back on it every year or so, but it seems that even in 2021 there is nothing that is even close to it.
By cores, I mean what NVidia calls "NVidia CUDA Cores", e.g. there are 5,120 on the Tesla V100.
CPython is ~7-8 MB zipped. Straight from the source: https://www.python.org/ftp/python/3.9.4/python-3.9.4-embed-a...
> Why am I using my own ffi version of chown instead of the libc crate? The libc crate prototypes chown with unsigned uid_t and gid_t types, and I want to pass -1 because I'm not interested in changing the group. I'll spare you the long rant about how one should never redeclare system interfaces if you can't take the time to do so properly, because it turns out if you dig into it, uid_t boils down to uint32_t, but even so, the manual for chown says -1 should work and I want it to work.

First thing I'd try would be to pass "~0" instead of "-1". Would that work? (Looks like in Rust that would be "!0". I don't know anything about Rust.)
But it works as expected by someone understanding the underlying system, and some existing advanced users do use it. Backward compatibility is important already.

It’s not like you have found a bug in the way the fundamental package handling is done which hasn’t been fixed for a long time, so I don’t think it’s fair, especially over an in context negligible nitpick.
She's always stayed out of politics, apart from when she "stays constitutionally impartial" wink wink

https://www.bbc.com/news/uk-scotland-scotland-politics-29200...
This was several years ago now, during my pre-university days. I lost access to my hosting and my domain due to lack of funds, dead hard drives (didn't use any versioning) etc.

At this point I don't write about much, so I haven't revived it.
Honest question Dang, why is it ‘flame war’ to denounce racist monarchs?
Uber Won’t Let California Drivers Set Their Own Prices Anymore
"If your work isn't ready for users to try out, please don't do a Show HN. Once it's ready, come back and do it then. Don't post landing pages or fundraisers." https://news.ycombinator.com/showhn.html

You can still post it, just not with 'Show HN' in the title.
I really liked the Apache Click framework for building websites. I seemed so natural using it
Yeah, but by stigmatising traditional medicine as 'not medicine', the damage has already been done. Lots of people would be turned off a remedy just because it's 'not medicine', even afterward it was proven scientifically. It is medicine, just not scientific medicine. Compare with the issue of getting people to trust in vaccines when the news headlines are all about very rare side effects.

Keep in mind that there are traditional treatments that we haven't yet isolated the cause of action or the understand the pharmacology due to it being the interaction of different compounds.

I'm not supporting traditional or alternative medicine, but I also don't think that the issue is so black and white, and treating it as such turns people away from the subject entirely.
Looks like Construct has an Animations Editor too :)
I get where you're coming from though, Flash was directly responsible for that golden age of creativity, because it was so accessible that literally children were making cool things with it.

https://www.construct.net/en/make-games/manuals/construct-3/...
> address bars are really just search bars, who actually types a full domain anymore?

recently found myself pasting an (local) ip(v4) address in the address-bar and being taken to a search engine - strange times
I'd offer rental prices in Boston for consideration: https://fred.stlouisfed.org/series/CUURA103SEHA

The ladder was pulled up in the mid-nineties, and since 2008 it's out of reach.
> The process of slowly freezing food alters the chemical structure

It's not the chemical structure, it's the physical structure. Slow freezing causes large (relatively) ice crystals, which are more likely to break cell walls than smaller ice crystals. Those broken cell walls result in more moisture loss when cooking, and a different texture when thawed.
> view an image

>

> $ imgcat image.png

> # Note: requires iTerm2 terminal.

I wasn't aware of imgcat. I always use the display command that comes with ImageMagick.
I think they meant "those people who are Westerners who are also privileged" and not "all Westerners, who are all privileged".
Excessive fines could bankrupt startups and even incentivize companies to hack their competition into bankruptcy.
This has the most toxic UI I've seen in my life.

Switching away from my browser and back again causes the page to re-render, losing my place as it did so. Just awful!
I'm surprised at the choice of competition named in the article. I'd say the strongest contender to Adobe's core business is Affinity with their desktop software suite.
Emdrive Propulsion Inventor Defiant in Face of Failed Tests
> These kind of comments are really baffling to me. If they have no interest or investment whatsoever in A, then what are they supposed to do? Can you blame any distribution for not wanting to put in all that extra work to package and maintain it themselves, for every single other piece of open source out there that someone might have a passing interest in? It's a business, they don't have infinite money to spend towards everyone's side project on Github. I wish they did but sadly, they don't.

Were my terms too abstract? Systemd is written such that it's a pain in the ass to keep the multiple options for the several systems it replaces around, if a piece of software that's very important decides to go all-in on Systemd. Gnome did exactly this. Before that happened this problem did not exist. Systemd + Gnome created the problem, for any distros that wants to package them, forcing them to choose between a bunch of extra work or marginalizing anything that's not systemd. I'm not talking about "side projects on GH" but the ability to, practically, not theoretically, replace important parts a Linux system at all, or to write a new implementation that does things usefully-different from existing options because the spec is reasonably broad and the system loosely-coupled. Those are on their way out, and that's on purpose. Side projects on GH indeed. Haha. I think I see where the disconnect is, yeah. Maybe we're talking about totally different things?

> I get that you feel excluded and marginalized but those may be misplaced emotions, if you were never a paying customer or a developer then you were probably never part of the club.

Rad, I'll stop having an opinion or even noticing things that are happening because I'm not part of... what club is this? HN posters couching insults in armchair psychology to try to evade downvotes? Is that the club?
> Imagine living a life where every thing you do is questioned if not actively managed. A life of privileged yes but a life not always your own.

Gotta say, this sounds like a better argument for abolition than against.
I had a friend who was doing this. The way it worked is there was a secret FB group where items would be posted, and if you were up for reviewing the item you'd message the group coordinator who would send you money to buy it. You'd then buy and review the item. Initially you would only be reviewing small items ($5-$10), but as you gained more trust you could get more expensive items (not sure what the limit was). Some items even came with an additional $20 for doing a review. I cautioned them that what they were doing was a good way to get their Amazon account suspected (I didn't even think about their FB account) and they eventually did stop. Most of what they accumulated was crap, but there were a hand full of nice items - though thinking about it now, the only thing they got that I thought was cool was a decorative snail statue.
> But in the end what you buy is the ability to run a docker container

That’s not entirely correct. You don’t run a docker container. The filesystem is extracted from an docker image and mounted in a VM (firecracker).

Big difference that requires the cleverness described in the blog post.
Or do what you want. However I think c++ with just RAII and smart pointers brings so much more safety than C I don't know why it doesn't get more attention. You don't have to use all the rest, just those couple of things can bring a lot of safety to a project
I will concede that it would be nice if I could opt-in to a 'be-really-nitpicky' mode for clippy. I would even do it sometimes. Usually I just want something with a little higher SNR.
According to my watch, I have pretty good recovery. 150bpm down to 120 or less in 1min

Boxing for 10 years trained that into me very well. 1min rest between 3min rounds
What’s not to like about iMessage?
It's very clearly sarcasm and not a serious PR move, though I agree it makes the article confusing and hard to follow. Changing it to a different source link seems appropriate.
>> The error would have been detected far sooner had I not been lazy and checked the return value of chown (for a file not found error). But [excused here]

> You can't, and mustn't [...]

It doesn't really sound like he's trying to excuse anything. Quote the intro more fully:

>>> I used unsafe. It was unsafe. After months of contemplating this unfortunate result, I've found someone else to blame.
I completely agree, natural habitats with native flora and fauna tend to settle into balanced ecosystems. As far as I can tell, that's not what you're arguing for, though, as that is not at all what modern animal agriculture is similar to.

As far as crops, the majority of what we grow is fed to animals. For example, according to the USDA, approximately 70% of U.S. soy is used as animal feed. If you're interested in reducing crop farming, go vegan. (Source: https://www.usda.gov/sites/default/files/documents/coexisten...)

As far as the limited abilities of carbon sequestering, "Grazing management could potentially, and under very generous assumptions, offset between 20-60% of annual average emissions from the grass-fed only sector," meaning that even all grass fed beef is still going to involve horrifying amounts of GHG emissions, completely ignoring the cost/land use that would make it otherwise unfeasible. (Source: https://phys.org/news/2017-10-grazing-livestock-climate-impa...)

Bonus link for more info on ruminants and carbon sequestering: "https://www.cambridge.org/core/journals/animal/article/abs/m..."
> As a result, the industry shifted to encouraging the use of "real" programming languages for everything, even the simplest systems, because the greater up-front costs were saved many times over by having a sane story for long-term maintenance and improvement.

That makes a certain amount of sense; I know I've sworn at insane Excel spreadsheets that have lived far longer than they should have.

The thing I'd argue is that the vast majority of business tools are only useful for very few people for a very short period of time. Sometimes they are never useful. Doing those in a "real" language can have an ROI of centuries (or never), so just never get automated or tried. There's a very important place for cheap prototyping and if non-developers can do it that's even better.
Today's new users are tomorrow's experienced users.

I guess it depends on what Nix wants, if it wants to remain a niche system, then things are good as-is.

Though, on the other hand, the comment says a new CLI is close to release, so I guess people are trying to improve things.
Pentagon holds press briefing on AI
Urga burga? It isn't clear what you are replying to.

Of course location will always be a factor in prices, but policy can exacerbate the effect or not, and we tend to have policies that exacerbate it.
I have a friend who works on ads for video games mostly. Their company uses Google and Facebook for the majority of those spend, which one has better value for money tends to change every time I ask them. They definitely made FB ads work well for them for many years.

In addition, I’ve noticed people here commonly tell stories about how X’s ads never work work. I find it ridiculous. All of those digital ads definitely work for many companies, even if they don’t work at all for others. Ads is a competitive market. If your ads don’t work, it doesn’t say much about the platform, and may say more about your ads/product.

(Disclaimer: FB employee, but I don’t deal with ads)
Wish I could (actually, I'd prefer JSONB or other binary format). Unfortunately, every program in the UNIX ecosystem assumes unstructured text in pipes, and makes it my responsibility to glue them together by building ad-hoc parsers with grep, head, sort, sed and awk.
I tried mine out a year ago and they all worked (the ones I had recorded). I think the MO technology they used was pretty robust (compared to recordable cds and dvds)
I don't think we necessarily have to sacrifice something. We learn new skills and knowledge all the time. Using the new limb could be a skill. Maybe it's not as dexterous as the motor cortex and real hands at first, but there might be some benefits over natural hands.
Amazon enters second day of vote counting in historic union election
I enjoyed this little game you played.

I wonder if it might be easier to read if the mad-libbed article was left in normal styling and the explanatory paragraphs at the end were italicized instead?
> So why would you inflict your morality on others just because they belong to another species?

I don't. I'm indifferent to any sort of value judgment in the matter. I simply acknowledge and accept that my biology requires the consumption of nutrients. Circle of life, and all that.

Organisms are the only sufficient source of nutrients I have access to. Unless you're here to enlighten me about how to cook rocks, I don't know what you're on about.
I am in the same place, I would like to get some advice.
Like a lot of things in life, this boils down to a political problem.

Change the laws in your area so the electrical utility/grid operator is required to buy it from you at prevailing rates.

This is the case in many (if not most) areas of the USA. Excess power simply feeds back in the electrical grid. The electrical meter works both ways so power feeding back into the grid runs your meter backwards. If this reduces your bill to less than zero, the utility will send you a check for the amount due.
I've done this before with pyinstaller, and it's pretty straightforward. This wasn't even for a customer-facing application, instead an internal utility that I had initially made to save myself time. The first time I tried to distribute it without bundling the interpreter and libraries, it took a full hour to get it mostly set up for 4 people. Sure, every problem from multiple conflicting python environments, to pip commands for using a firewall's proxy, to people not having used cmd before were all solvable problems. But at the end of the day, it was more straightforward to bundle it as a .exe, give people a file path, and tell them to double-click it.
Terrence Tao is astonishingly productive.

https://terrytao.wordpress.com/
That's why I went with To Do list :-)

It's not totally trivial, but a reasonably skilled person should be able to get a not-too-janky version working with a bit of effort. (Also, where are you that undergrads get to interact with monkeys?!)
I feel like we need to separate the JavaScript based open platform from the actual web.

I love the idea of accessing USB devices from JavaScript but I don't want my browser anywhere near them.

Both are great ideas and share technologies, but can (and should) be separate products.
FreeBSD/arm64 becoming Tier 1 in FreeBSD 13
SQLite is really great. By using it, you don't have to install and maintain another service, and you don't have to think about things like network security. From that point of view, that's clearly simpler.

But it also introduces a few challenges. It's not as easy to connect to your database remotely to inspect it, with something like SequelPro for MySQL. It's not possible to create an index or drop a column without blocking all writes, which can be annoying if your database is large. Database migrations in general are harder with SQLite because ALTER TABLE is limited. [1]

One last thing regarding losing the few seconds of data. If you use something like Google Cloud Regional Persistent Disk, then your data are replicated synchronously in two different data centers, which means you can lose your server, restart another one, and not lose any data. Can still be combined with Litestream for backup to S3 with point-in-time restores.

[1] https://sqlite.org/lang_altertable.html
I agree that usually the first bottleneck is the edit-rebuild cycle. But I think bottlenecks (plural) are a better way to view things than a single critical path. If my edit-rebuild cycle is fast enough that it doesn't bother me, then depending on what I am working on, I may quickly start noticing configure times. An accurate build system will reconfigure when any of a lot of different files are touched. (And inaccurate build systems waste a lot more developer time, just less evenly distributed and with more frustration involved.) So I reconfigure if I'm working on something relevant to the build system. I reconfigure when I pull down changes and rebase. I reconfigure when I'm switching between tasks (perhaps because my tests take a long time in CI), and in fact I won't switch tasks if reconfiguring takes too long. (And yes, I have multiple work trees, but my object directories can hit 20GB and it wastes even more time shuffling stuff around when I start running out of disk space for 4 work trees * 3-5 different configurations.)

And interpreter startup bites you all over the place! If it adds half a second latency to my shell prompt, I won't use it. And Greg gave the math for things where you're restarting the interpreter a million times, which isn't uncommon in my experience.

You should always profile. These things are heavily dependent on the type of stuff you work on. Et cetera. But my personal experience at several very different jobs says that these things do matter, a lot. Also, if you work at a moderately large place, the productivity loss from small inefficiencies is staggering. You have to look at the full picture to really see it properly; when things are slower, people don't just wait, they context switch and may never come back that day. Good for engagement numbers on HN, bad for productivity and flow.
most probably the m1 stuff introduced some conflict in some dead and unmaintained driver and it was better to ditch them than work on a fix
How locked in are you to Wordpress plugins? How feature-rich is your site?

Is something like Webflow too simple?
But they don't give background for how they chose the terms they used as inputs. They just hand-wave through that part of the methodology.

All you have to do is cherry pick the inputs and keep re-running until you have the desired output. Garbage in, garbage out.

> 58 well-known hate terms and phrases

Funny enough, I didn't recognize many of those "well-known" terms and every single one of them ended up being white supremacist.

On top of that, 58 is a pathetically small dataset to draw conclusions from. You'll need far more than that to credibly demonstrate a bias. I can probably come up with that many racial slurs off the top of my head and I bet you anything the overwhelming majority of them will be blacklisted.
It would also help a company that grows rapidly by acquisition. It's a real beast to deal with cross-domain synchronized authentication.
As a chinese, I'm also amused when Americans are so adamant about something they know so little about. Somehow chinese that have been exposed to both western and chinese media is gonna be more brainwashed than those that only read western sources