skysight-inc/HackerNews huggingface dataset:
There are an infinite number of ways to make a project less fragile to changing market conditions. But you can't maximize all of it, it's all trade offs. Would making a project more resilient to semiconductor shortages increase vulnerability to other factors? Perhaps the increased electrical load pushes the battery requirements above the budgeted space. Perhaps the increased costs puts the product above the budget for customers, and making the project no longer viable in the marketplace. There are too many factors that I don't know about to possibly comment on all of it. The replacement of the MCU with discrete components was mentioned, and I commented on a few of the factors with could be involved with the decision, and did not claim to have made an exhaustive analysis of the product spec to determine why the choices were made.
> so you can read them with any tool

what tool can't you read them with? Why is the fs the fundamental unifying abstraction, as opposed to pipes?

> doesn't allow you to do all the things you can do with a real file

like what?
Wikipedia says that google chrome os/Chromium os are using upstart, that would make it the only widely adopted distibution that uses a non systemd service manager. Well Alpine linux is using OpenRC, but alpine is big with servers or as base image for k8s pods, not as a desktop distribution.
https://en.wikipedia.org/wiki/Chrome_OS
https://en.wikipedia.org/wiki/OpenRC

in a way this would disprove the assertion that everyone has to use systemd, because of dependency creep.
This is how you do the script thing:

<img src="kitten.jpg" onerror="alert('meow!')">

:^)

Edit: meh, stupid CSP…
How did you include all the transactions made on the cryptocurrencies various lightning networks? I guess that could be quite hard to measure, since they aren't stored on the blockchain, although are equally valid transactions on the network.
How does that work with Apple's notarization which stores the signature and a hash of your program in Apple's servers ?
I settled on spaces long ago for the following reasons:

- Tabs move the cursor to the next "tab position" but are invisible, which means that whenever someone hits tab in the middle of something (accidentally or otherwise for alignment), you end up with messed up looking text and alignment as soon as you view it with a different tab size.

- Trying to enforce "tabs only for indentation" rarely works without headaches because humans.

- Using monospaced characters everywhere means that you'll never encounter positional issues ever.

I've worked in 2-space, 3-space, 4-space, and 8-space indentation houses and honestly, I don't see the point of viewing indentation in your preferred size. It's easy to adapt to the house rules, and the benefits outweigh the headaches.
This explains a lot of my experience with our offshore engineers.

Glad to see I’m not crazy.
Neither. Consistency among team members is the correct way.
In this case it wasn't so much that Dream chose his audience, but that his audience is primarily impressionable young kids.

I looked through the Reddit threads that got posted around the time this happened and there were clearly a lot of young people who either chose to believe Dream because they didn't understand the statistics well enough to know it was BS, or were trying to rationalize that Dream was innocent based on some weird logic.
> garbled alignment when reading a diff of a file which used tabs to indent

I have never experienced this. Tabs are of consistent length, so how can the indentation be garbled?
> The answer is, for built-in containers, “no, because they use special-purpose generics”.

Unless you want to implement utility helpers working on them then it’s yes again, because Go doesn’t have generic functions either, so while it does have a few builtin generic containers, you can’t operate genetically over them.
I have added myself to your waiting list. Any indication of when you will let new users in?

Some feedback: I think it would be good to know that new users have to add their email address and are then added to a waiting list. I was really excited to start using it and now I have to wait.

OTOH, well done, you got me excited about your product!

I am working on a way to build websites that is also supposed to be as accessible as possible (think older / less tech savvy folks) and doing this via Google Docs would be a fantastic avenue IMO.

Be interesting to know more about what challenges you ran into building this.
Wait! Am I one of your friends?! ;) Reading this comment and the replies made me understand that, despite country/culture differences, we are the same :)
I have to say I didn't see the the comment in this light, and now I'm wondering if I'm under attuned or if you (and others who posted similarly) are over-attuned.

There's a very real truth to japan's generally law abiding culture and it's the double edged sword of homogeneity. "good area"s didn't signify anything about race/culture difference to me (I wasn't even thinking of foreigners/non) in the negative, but more about how the basic "shared programming" of japanese culture is generally tilted away from crime/disobedience/singular action and towards law abidance/obedience/group action. If you take a look at how certain systems are set up (online security, in person security, how paperwork is done, etc), it can only exist in a country with very tight cohesion which comes from very tightly held shared values (or at least the appearance of that), whether that's a good or bad thing.

I didn't see that the commenter was implying that the heterogeneous portion was responsible for all the crime, but just that the dominant culture was on average more lawful than another might be, and that since that culture was so concentrated crime in general was lower than you might find in other places -- reducing the need to worry for everyone who lived there.

That said, Japan definitely has that kind of insidious/hard-to-demarcate racism/classism/etc. Japan as I've experienced it is just really good at 'other'-ing groups of people in some way or another and you could see it as a product of the culture, their historically generally xenophobic nature (also culture, I guess), or some other things.
How to install and configure the Kube-Prometheus monitoring stack with Jsonnet
I've realized that it's difficult to differentiate between work and life after a point.
And there's nothing wrong in that.
Instead of trying to balance work and life, we should be trying to balance stress and relaxation.

It can be physical or intellectual stress vs physical or intellectual relaxation.

Too much of either is bad.
Apple hasn't employed Chris Lattner since January 2017: http://nondot.org/~sabre/Resume.html
For your website, there are a variety of tools and resources available
> there are many ways of running a lottery that don't involve burning tons of electricity in the process

You need something to be the limiting factor on the amount that you can try to win such a lottery. With proof of work, it's electricity. (assuming everyone is about as efficient as each other)
Early on, they talked about it being proportional to cpu-time. That has become more abstract since.
I use 2 spaces for indentation, but I agree that tabs are more logical.
The reason why I switched to using spaces (years ago) is because tabs look terrible when copy-pasting code in a text area in the browser; they look way too big.

If everyone chose tab spacing sensibly, then tabs would be ideal but there always seems to be some people somewhere who will exploit any flexibility provided by any technology to do something retarded.

At least with 2 spaces, I have full control over how my code looks everywhere.
Ctrl+Backspace deletes all the spaces in one go.
But they do. I pay enough in road tax and fuel duty to cover the upkeep for the roads in the UK. Drivers here pay more than the government spends on the roads so the excess goes elsewhere. Ego the roads are profitable.
I don't think Apple should be allowed to both require that all apps on the phone go through their store and that they get a cut of all the business that goes through that store. Either allow other stores or allow other payment methods in the one store they do allow. Unfortunately Apple has recently made it clear they will use their control over their store to disadvantage competitors.
Or energy use per transaction based on full throughput capacity (full blocks).
They’re not first class though: you can not take in, return, or work with the ADTs, only with concrete instances of them.
Show HN: TinyStore - A minimal store for your Shopify Lite plan
Is there any way to use cosmopolitan with shared libraries? In some cases licensing doesn't allow one to make a single executable.
I would like to offer a different perspective.

The end of gold backed currencies in the 70s and replacement by fiat currencies hinged on the middle east oil states agreeing to sell oil in USD, in return for global policing by the US[1]. There is thus an intimate relationship between the current system and fossil fuels and the military, which goes beyond just ‘existing infrastructure’ arguments. This doesn’t mean we should countenance burning coal to mine bitcoin, but we shouldn’t forget history either, and as such the argument of the OP has some merit.

Second point is about transaction volume. Compared to total global money, the transaction volume of fiat is also very small. The recent money printing should make this obvious. The amount of fiat in fixed income markets and derivatives is staggering compared to what you mean by ‘transactions’[2]. Bitcoin has payment solutions in the works, it is likely that transaction volume and unit of exchange utility will increase over time. Additionally, if we take an actual example of a collapsing fiat as occurred in the hyperinflationary period in Brazil in 1994, the Government fixed the problem by inventing a new currency [3]. It is quite possible that in the current era, countries with collapsing fiats would use cryptocurrencies for this purpose, as there are some obvious advantages.

[1] https://www.lynalden.com/fraying-petrodollar-system/
[2] https://www.marketwatch.com/story/this-is-how-much-money-exi...
[3] https://en.m.wikipedia.org/wiki/Hyperinflation_in_Brazil
just means it's an old server.
Omnimatte: Associating Objects and Their Effects in Video
> The "victim" voluntarily gave that money away.

This explanation, much like its sibling "voluntary transaction" defense of market failures and economic coercion, sounds to me like a bully who hits their victim with their own arm, and then exclaims, "stop punching yourself!".
It's easy to forget that programming is an art and being soul crushed by the business side of it.

Space bar is our chisel, to craft beautiful codes and reassure our mammal brain that being in the zone make us closest to god
> Why?

Because saying that they were separate groups implies a level of propriety to the decision that doesn't hold when the groups "overlap".

> You're saying it was pushed.

Am I? Where?

> But actually the maintainers agreed.

At the risk of repeating myself, this implies a level of propriety to the decision that doesn't hold when the maintainers are the same in each group.

> I work for a company where every year there is a mandatory refresher on anti competition laws / behaviour.

Didn't take, did it? Just for giggles, see if you can identify the common factor in these classes of anticompetitive behaviour:

- Cartel price-fixing
- Refusal to deal
- Conspiracy to monopolise
- Dividing territories
- Regulatory capture

> I think you're failing to understand how offensive you're being towards these developers.

I don't. I also don't think they need you to defend them.
If you don't mind sharing, how you was able to mass $3M liquid at 34? Any way congrats and keep it up :)
Cool! That date axis though...

PHP's 3 years 2011-2014 are much shorter than 2 years 2014-2016.
NodeJS's years 2017-2020 that were ~50% longer than 2013-2017.
We use tabs at work. I haven't ever had any alignment issues or nasty diffs. Some people work with "two spaces" and some people with "four spaces". The rules of alignment have to make sense, you don't just align wherever you want. There's a style guide of when to align and when not to align (but the IDE and tooling does it all for you) and it all comes out quite beautiful no matter how you have your tab chars to display.
What about IQ
Isn’t it stringly typed, full of runtime introspection and rather slow?
Oh, really?

PHP is a programming language, and it shows every sign of having been designed to the same level of detail as English.
That's not how this works in any editor or IDE.

I guess 99% of the arguments around tabs or spaces are wrong.

I use spaces because that's common in Python, which is the first language I learned and because I saw some bad codebases that mixed tabs and spaces.

But I don't think it matters. The only thing that matters is consistency.
Delighters – The “Wow” Feature Set
You need to look into insulin resistance and how to fix it. Key words intermittent fasting. look for Dr. Eric Berg Dr Jason Fung and Dr Benjamin Bikman on YT.
With today's technologies it's absolutely possible to work outside:

A lengthy meeting where your role is a listener? - jogging

Programming? - park, garden, beach

Make breaks, walk, swim, run, enjoy fresh air, no need to stay indoors.
`import { useState } from 'preact/hooks';` yes https://preactjs.com/guide/v10/hooks
Ask HN: What higher quality analytical content do you have a subscription to?
I'm thinking of picking up a subscription to The Economist but wondering if there is any other sources of high quality that are worth considering.

I'm a little tired of the UK's low depth newspapers, I was pleasantly surprised at the high quality of some of The Economist's videos [0] recently.

[0] https://www.youtube.com/watch?v=kBHZiXUDV6A
In this case it is using an unproven mechanism that requires proof of a negative ("nothing important in the body uses this mechanism"). It cannot be done safely and quickly.

Just because someone survives 12 months and feels fine doesn't tell us anything about the safety of that mechanism. We could literally be injecting people with HIV and it'd only be showing "rare side effects" for the first 12 months as far as symptoms go.
Got it thanks. I suspected as much but I thought it would be insanity to actually use the Space key.

My opinion is that it is split based on role/platform. The first half a decade of my career I used tabs, the past half a decade of my career I have used spaces. The difference? First half I was an Android app developer (Java). Now I'm a backend developer (Golang).

I also lead the time so I get to make the decision on what the team uses. Hopefully spaces is the right one :D
iOS's backwards compatibility for apps built with old SDKs is mostly pretty solid. It tends to be things more like architectural changes (e.g. dropping 32 bit) which are an issue
Thank you. The other replies made me worried my memory is failing me.
What about FIXME ?
You should read Brave New World by Aldous Huxley.
My pet theory is that the preference for spaces comes from people who want their codebase to be equivalently readable in any editor right off the bat. With tabs, depending on editor configuration, the same codebase could look fine on one machine and be a mess on another.

Furthermore, I believe that with certain indentation styles (e.g., when arguments in a function call align with the opening paren) tabs require that one extra preliminary step of configuring one’s editor in order to view the code properly, while with spaces that extra step has more optionality and is only needed in order to edit the code with auto-indent.

IMO since one has to adapt their coding style to the dominant style of the codebase (single/double quotes, etc.) either way, one might as well adapt to the indentation as well, so I’m not against spaces.

And of course, due to people who don’t take care to set up their tooling and end up mixing tabs and spaces for indentation, a particularly hot mess can arise—and what’s worse, that mess can accidentally look fine in editors that happen to be configured in a particular way. Because of that, I keep whitespace visibility turned on across my editors.
Perhaps we should be including a priority in such comments, eg:

TODO: high: don't use bogosort

Would only be useful if it became a defacto standard though
It should be trivial to find prior art, i remember doing this is as a kid (as does everyone else probably).
Also, there is no need to pull on the chain as described in the patent, you merely need to shift your weight.

All in all, another dumb patent.

The final paragraph indicates it's not to be taken very seriously anyway. How much is a patent these days?
> The throughput of transactions is not coupled to the amount of electricity used to mine. They are two elements in the system, that doesn't mean they move proportionally in any way.

We know that. This is not an argument against cost per transaction being an adequate measure of efficiency for a transaction processing system.
Seems like their Content Security Policy should block those from executing as "unsafe-inline" is not allowed.
Caactus – Automated UI tests in seconds
A smart contract is only as smart as the programmers writing it.
Gnome is one of the most customizable DEs around. You can customize almost every aspect of it via the extension mechanism. I'm even running a full tiling WM right now that is coded as a Gnome extension (PaperWM).
Home Gardening
I'm curious what you mean by "homogeneous". I've just had a quick Google and apparently the Gini coefficient in Japan is ~0.3 compared to ~0.48 in the US, which is one definition of "homogeneous". Another search turned up some suggestion that said coefficient correlates well with the percentage of people who have been victims of theft/assault or who feel unsafe walking home alone.
Ok, so first of all, I'd strongly advise you not to use tabs for Ruby, just because it's a community very heavily based on stylistic consistency, and the community is very much on the side of spaces (see https://ukupat.github.io/tabs-or-spaces/).

For one example of something that wouldn't work with tabs (although not my original point, see the whitespace between `key:` and `key,` on line 66 here: https://github.com/rails/rails/blob/main/actionmailbox/app/c...

For an example closer to my original point, see line 13 here: https://github.com/heartcombo/devise/blob/master/app/control...
That does not work in practice. Consider

void foo() {
connect(this, action,
that, callback);
}

If the "that, callback);" line was indented with tabs, then any other tab length would make it go at any random place. Thus if you just use tabs your code is only readable with the tab length used for writing it. So instead you can introduce spaces for alignment ; now that you have spaces needed for alignment, why not just use spaces for everything instead of two characters ??
Yes, around 3% of our customers still uses it. TBH IE11 has the same usage rates and we are abandoning it soon, but IE11 has a secondary problem of lack of support.
Mixed is the worst. It doesn't make sense logically.

Isn't indentation just another kind of 'alignment'?
After all, we use indentation to align text on the page... The differences between between all the supposedly distinct kinds of alignment are too subtle and difficult to describe in words to be used as a rule.

It's better to stick to simple rules that are easy to follow and enforce - Leave no room for ambiguous interpretations.

Also, I hate it when developers try to break up code in weird ways to align all the equal signs together for example. I would prefer that they never do this. Maybe if our eyeballs were stuck inside our heads in such a way we had to move our necks to read each letter, then it would be a good idea... Then it would be worth the complexity it adds. In the real world, however, moving one's eyeballs a few millimetres sideways isn't very difficult.

There is no need to litter your pristine code with extra spaces just to save people from having to shift their eyeballs a bit when reading your code. You save the reader like 10 eyeball shifts out of 1000...
Is there a group of developers somewhere that charge per byte of code they write?
A macOS GUI tool to test iOS push notification - https://pushever.app , I find many other tools out there dont have a simple UI/UX I want, and most of them are web app (which means my push certificate and credentials might be exposed)

Same principle above for PDF file that you dont want to expose online :
GUI to add page number to PDF: https://pdfpagenumber.com

GUI to reverse PDF page number order: https://apps.apple.com/us/app/reverser/id1440371872?mt=12

And most recently a ping checker on mac menu bar (so that I can know if connection problem happens during Zoom meeting while WFH) :
https://simpleping.fluffy.es
Tabs are not of consistent length. A tab does not insert X spaces worth of whitespace. A tab moves the cursor to the next tab-stop.

There can still be alignment issues if different people choose different tab-stop intervals.
Who is Amazon?

The missing link to much of this “Corp is evil” fear is that someone has to do it. A real person. Sometimes corporations do “evil” things but in my view and what I’ve seen it only seems to be when it’s easy to spread responsibility out.

Who would go into the mailboxes and move ballots? Did they print out hundreds of new ballots and swap? Did they do it at a office printer? How long did they spend carrying suspicious stacks of ballots? Did any security camera see them carry it across the building? There are too many questions to this situation.

Who’s idea was it to do this? Did Amazon C Suite email someone and command this? Is there a paper trail of top down commands? Why would any low level warehouse employee (incl warehouse management) be incentivized to risk this much criminal behavior when they wouldn’t ever realize the full billions that the corporation is. The whole corporation would benefit but one or two people would have to take huge personal risk when they wouldn’t likely be rewarded nearly as well.
This would be a pretty good short film.
>Errors as values is a far superior approach to exceptions.

Can you elaborate on that? Usually the argument on which one is better is that it depends on use case.
Interesting that some of them don't grow, or don't grow much, over time.

Someone at PostgreSQL and Django is actually reading and fixing the TODOs.
Show HN: Semantic Segmentation – Drone Deploy Aerial Dataset
Semantic Segmentation - Drone Deploy Aerial Dataset. Unet implementation using Pytorch.
If one needs to be force fed to appreciate them, that already shows how much of a problem they are.
Perhaps politicians lying is business as usual, and it only seems to have increased because society gradually forgets things as they recede into history.

Just in the past the lie was "Iraq was behind 9/11 and has WMDs" or "The war in Vietnam is important to fight and easy to win"