skysight-inc/HackerNews huggingface dataset:
I recently wrote a program of slightly over 200 lines in portable AWK: https://gitlab.com/dbohdan/humsize. I wrote it for a specific operating system (NetBSD), but I have ended up using it everywhere; the portability helped with it. I can recommend AWK for small utilities that transform text in a line- and column-oriented manner and don't need libraries.

The main difficulties were making the command-line interface and testing. You can't have flags that begin with a dash in portable AWK without a shell wrapper, and I didn't want one. I settled on manually parsing key=value options, which I don't think are bad, just nonstandard. They look like this:

humsize format=%6.1f%1s 'zero= empty'

There is no standard way to test AWK code. For testing I wrote a shell script that checks the program's outputs with grep: https://gitlab.com/dbohdan/humsize/-/blob/122aaed8d65dc8c285.... Don't do this; your tests should give the user (you) better feedback. You may think your program doesn't need anything but a couple of trivial tests that won't ever change; it is a pain when you inevitably are proven wrong. I should have instead had a directory with reference outputs and diffed against them to see what went wrong (my own example: https://github.com/dbohdan/initool/blob/72f65d3fde245ff8660c...).

To ensure I didn't introduce portability issues, I set up testing against different awks in GitLab CI.

image: debian:bullseye-slim

before_script:
- apt update
- apt install -y busybox gawk mawk original-awk
- ln -s "$(which busybox)" awk
- busybox wget -O goawk.tar.gz https://github.com/benhoyt/goawk/releases/download/v1.21.0/goawk_v1.21.0_linux_amd64.tar.gz
- tar xzvf goawk.tar.gz

test:
script:
- AWK=false ./test || true
- AWK=./awk ./test
- AWK=gawk ./test
- AWK=./goawk ./test
- AWK=mawk ./test
- AWK=original-awk ./test

Edit: Rephrased and added a nicer shell test example.
Let's hope so. I am not from the US but I have no illusions that this would have a vast negative effect on the net and increase governmental overreach. This is the source of why some people even consider Tiktok a strategical threat.
Well said! Did you ever in that time get any pushback from an overzealous boss about going back to the office?
Perhaps looking at data would be in order.

Real income over time: (about 10% higher today than in 2000): https://fred.stlouisfed.org/series/LEU0252881600A

Bottom quintile over time (about 20% higher today than in 2000): https://fred.stlouisfed.org/series/CXU900000LB0102M (edit to add: this one looks to be nominal rather than real income; I’ll see if I can find the real chart on the computer before the edit window closes; I can’t effectively find it on the phone)
The Twitter API is now effectively unmaintained
GitHub Actions Extension for VSCode
Stuff like this is why I refuse to return back to office. There is some sort of relationship play between "nice guys" and managers. Both of them are refusing to do their work, "nice guy" to complete his work and manager to manage. And somehow I am part of this, and have to work extra weekends!
I'd ignore any reviews that don't provide a host of measurements. Even well intentioned subjectivist sites get it wrong more often than right.

Go here, click on speakers, sort by price, and follow the preference score (generally around 5+ is an excellent speaker on the low end), then read specific reviews for more detail about their strengths/weaknesses:

https://www.audiosciencereview.com/forum/index.php?pages/Rev...

There are a handful of brands, while not cheap, that provide excellent value as up/down their lines they are nearly infallible, such as Genelec, Revel, and Neumann. There are also some that are usually excellent such as Kef.
It often happens, that western manufacturer will pack its old line and move it to the east to make basically same car under different name.
I asked Bing's ChatGPT regarding your quote:

"I’m sorry but I couldn’t find any relevant information about the quote you mentioned. It seems like it’s not a well-known quote. Could you please provide more context or details about it?"
We have long entered the realm of theology here with people really wanting to believe in the omnipotence of a certain tool (possibly even while some other, simpler things destroy them).

What for example is Tallinn's medium- to long-term predictive track record on social issues? On technological development? Anyone can be concerned and have genuine reasons for concern, but that doesn't mean the outcomes materialize.
Because many chalkboards are a greenish color instead. Even slates are often more dark greyish than black.
Warning: spoilers

IIRC this is actually one of the plot points in the Three Body Problem, where they used the sun to send out a signal and make first contact with an alien civilization.
Royal Lives Clause
We’re asking for that equity to be a thing owned by the workers rather than the investors.

You know what’s absurd? Money making more money.
Freedom is merited to those who play "by the rules"

There's a line between extending freedom to parties that don't play fair and being a chump
And see all billionaires disappear to whichever country doesn't do that? The point of remote work, is that a lot of wealth is now very geographically volatile.
You're missing the point if you're looking at how "useful" this example function is
>We need to solve AGI now?

No, we need to solve the problem of AI alignment, regulation, etc now.

https://arxiv.org/pdf/2209.00626.pdf
I've used gopy[0] recently to access a go library in Python. It surprisingly Just Worked, but I was disappointed by some performance issues, like converting lists to slices.

[0] https://github.com/go-python/gopy
To add insult to injury, the $40k bounty seems awfully low for the amount of access the vulnerability gave its reporters.
That would still be a win for cities there.
But it looks like coal and non-renewables' share of electricity there is now declining too, from roughly 4/5 to 2/3 in the last decade* (a lot of that is due to wind energy, which is rapidly ramping up there.

* https://ourworldindata.org/grapher/share-electricity-coal?ta...
> I’m in the data space and a company like Snowflake has a model where you pay for compute by the second and storage by the byte. Very simple, transparent and everyone is aligned.

Not sure everyone is aligned. Sounds like Snowflake got no incentive on optimizing queries. They even got an incentive doing the opposite. They must keep their infrastructure as-is without any optimization on compute time nor storage to earn the same amount every month.
How many of the 25% are what we would consider tricked out golf carts in the US?
> All Hagoromo chalks are well coated to prevent hands from coming into contact with chalk dust when using. Never have to worry about stained, dusty hands when using chalk ever again

You mean not having messy hands after writing on a blackboard is a thing? You mean my whole life was a lie?
also in french (the mother tongue of the creator)
The New Azure
I intend to, at some point, learn a readable array oriented programming language. I heard that J fits that bill. Any other suggestions?

What I mean by "readable" is, that it uses ASCII strings and actual names, not merely 1 character (except for very few cases where 1 character might be appropriate, like "Y" or stuff like that) as function names, instead of symbols, of which I do not know their names. I should be able to not only write once, but read again easily. I should not need a special keyboard or special keyboard layout to write programs in the language.
I'm curious if this could be used locally for an on-workstation or on-prem setup. Perhaps with something like https://github.com/nektos/act
Elon Musk signs open letter asking to pause training AI more powerful than GPT4
> China released its rule for stage 6 light-duty vehicle emissions limits in December 2016, so manufacturers have had 7 years to bring their vehicles into line.

Don't feel too sorry for them if they couldn't read the laws in the country they were selling in.
It's a great explanation, but a "spherical chickens in a vacuum" textbook explanation. Add in realworld atmospheric effects (diffusion) and non-lens things like the internalized reflections of fiber optics and the infinite reversability of optical systems breaks down. Then look to how easy it is to start a "fire" in some substances and the moonlight-to-fire concept becomes less difficult. Greenhouse effects also throw a wrench at reversability.
> PRC anything as massive as the US

Really? I assume domestically China engages in surveillance on a much higher scale than the US.
For this particular code, vectorization and some acceleration library, such as JAX, may be a better path to optimization. Otherwise an excellent article!
No, the scientific field uses it differently than the layman.

Neurotoxic to a scientist means “can have negative impact to neuron function, whether temporary or permanent”.

The layman thinks neurotoxic means “kills your brain cells”.
Ask HN: How does “min” and “hour” get their values in this C++ code?
https://imgur.com/a/UCks0vq

Full code here:

#include<iostream>
using namespace std;

class Time
{
public:
int hour;
int min;
Time()
{
hour=min=0;
}
Time(int h,int m)
{

hour=h;
min=m;
}
Time add (Time t)
{
Time t1;
int m=min+t.min;
t1.hour=hour+t.hour+m/60;
t1.min=m%60;
return t1;

}
};

int main()
{
Time t1;
Time t2(8,40);
Time t3(5,30);
t1=t2.add(t3);
cout<<t1.hour<<" "<<t1.min;
return 0;
}

As shown in the figure above, some of my confusions are clear. But what I fail to understand is how "min" and "hour" gets its value from t2(8,40). I am sorry if this is a too basic question, but I didn't understand so I am asking.
If I am missing any prerequisites to this topic, do tell me about them, that'd help me more for self learning.
When it comes to starting a startup, there are many methodologies that can be used to ensure that the idea becomes a successful and profitable product. Three of the most popular methodologies are Design, Agile, and Lean. Each of these methodologies has its own set of tools and approaches, but when combined, they can help create a successful startup from scratch. Below, we explain how to use Design, Agile, and Lean methodologies to start a startup.
> given how overhyped this whole thing is, expect another AI Winter

even if that's the most likely scenario, that would not mean we should dismiss the danger inherent in some of the alternatives.
Hi ohr, excellent write-up!. I hope you know this is being actively discussed here:

https://news.ycombinator.com/item?id=35367520
EA is laying off 6 percent of its workers
Yes, the share is dropping, but the overall cake is growing, resulting in coal still expanding.
I don’t know if numpy fixed this, but it used to be that mixing Python numbers with numpy in a tight loop is horribly slow. Try hoisting max_dist out of the loop and replacing it with max_dist_np that converts it to a numpy float once.
Or they’ll find a way to make sure they personally get an advantaged through an AGI and so it’ll happen.

See pollution as a concept. No government truly wants to seriously tackle it because their leaders all get some extra power out of the money it brings.
Don't know your install, but Debian by default uses Pipewire, not Pulseaudio. If you are using Pipewire, indeed you can't install a Pulseaudio application. That's expected.

You can replace pipewire with pulseaudio. It's doable, just not trivial enough for an HN comment. In general, you'd have to force removal of pipewire without removing all dependent packages, install pulseaudio and then have apt check that all dependencies are ok. Then, having Pulseaudio in the system, you can install paprefs, a Pulseaudio application.

As I said, it's a solid system, rather impossible to break into an unrecoverable state.
Benzos like Xanax are extremely addictive and popular party drugs.
We're independent vassals
I think they did something with copilot x and vscode, where they have a chat like window in the IDE. But I'm using PHPstorm and since I mostly write laravel code, nothing is better than PHPstorm with the laravel idea plugin.

I also think that the chat mode is the right way to work with an AI (as long it is so slow, like it is now), so I don't mind the copy-paste workflow.
Apple, however, rarely makes alarmist claims about population demographics. Note the two lines in their post.

(I think people give Musk _far_ too much credit by imagining he would have any sort of coherent view on this stuff; he's just parroting stuff he was impressed by in both cases, and doesn't realise the conflict, because that's not how he works.)
I've been working remotely for 10 years. Don't have anything that looks remotely like a traditional family. But I have a nomadic extended family of friends and lovers who meet my social and intimacy needs far better than anything I was getting way back when I used to work in a cube. It would be interesting to see some research about the effect of remote work not just on families in a traditional sense, but also how it impacts societal organization and the concept of a "family" at all. Industrial society was pretty organized around the concept of a nuclear family, but that's not always been the norm in human societies, and from my perspective it looks like new societal norms are emerging.
China already operate a mirror of wikipedia content, minus anything they decided to censor. As far as I could tell they have a reverse proxy that fetches, censors and serves wikipedia inside the great firewall.
> Soviet Union, China and Russia copied the US

Do you really believe in this or are you just saying this? Mass surveillance was a thing in the USSR decades 30-50 years earlier than in the US.

Also much more effective too... Say something inappropriate semi publicly and of you go to the gulag (they toned it down and switch to psich hospitial after the 60s).

> leadership because the state doesn't have to engage in lying too much

tanks go brr... amirite comrade ?
> The party is probably writing love letters to who proposed the act.

This is what they dont understand, if you take the club to legitimate foreign competition, the only ones left standing will ne the ones willing to play dirty.
Well, this article only underscores what we all have seen in the past years: remote working is better for employees (and potentially society as a whole, and the environment). Unfortunately companies prefer to have their employees less happy, but under tighter control, so tendencies to restrict remote work are getting stronger. Let's see if they manage to put the genie back into the bottle...
We've reached the point where the C ecosystem has so given up on having a package manager that isn't Linux distributions that Microsoft added WSL and Docker(-compatible) Linux images are the most widespread distribution format. I don't think we can still figure out a way to decouple the two again, and without that, we can't really create a Linux environment that isn't a package manager with an email client.

And to a degree, the line is blurry with Windows as well, what with how deep MSVC/win32 is integrated into the system. .NET took decades to dis-entangle itself from Windows and become a proper standalone platform, and Microsoft's attempts at getting people to use UWP instead of win32 is ongoing and not very successful so far.
North Korean hackers’ unusual money laundering technique
Maybe if it passed the bar exam?
Faster Online DDL
Camera sensors don't have pixels: https://en.wikipedia.org/wiki/Bayer_filter

JPEG files also don't have pixels: https://en.wikipedia.org/wiki/Chroma_subsampling

Then again, OLED displays don't either: https://en.wikipedia.org/wiki/PenTile_matrix_family
ChatGPT is just a hyperfancy text generator with a massive corpus of text used to train it.

Because that text is so massive, you're bound to get some interesting and even accurate results for most queries, but don't mistake that for intelligence. It doesn't "understand" anything, it just compares weights internally and spits out the most probable result depending on what you asked for.

This is why ChatGPT fails the moment you ask it for domain-specific stuff that requires a bit of flexibility in interpreting it or why it produces subtle errors and presents it as functional with complete overconfidence.

To be clear, it's not useless[0], but the actual usefulness of ChatGPT as a disrupting thing is far overstated insofar as a Skynet nightmare scenario goes.

[0]: Although I'd still caution with using it to solve programming problems or similar such until any pending copyright matters have resolved, given its also willing to spit out licensed code and that can be a legal disaster.
Mentioned elsewhere, but the Meticulous Espresso 'automated lever' machine looks really impressive. It finally went live on Kickstarter[0] yesterday. I can't wait. There are a bunch of videos around; the one Brian Quan did [1] is my favourite.

[0]: https://www.kickstarter.com/projects/meticulous/meticulous-e...
[1]: https://www.youtube.com/watch?v=N-dxaLZTfGc
> The party is probably writing love letters to who proposed the act.

This is what they dont understand, if you take the club to legitimate foreign competition, the only ones left standing will ne the ones willing to play dirty.

And they will know they mist be loyal to their evil government, because you will have demonstrated that you will not treat them poorly
Sounds like you want q:

https://code.kx.com/q/ref/

https://code.kx.com/q4m3/
"affects"
It doesn't seem out of line with the published award scales of Microsoft's bug bounty program[0]. If the researchers weren't ok with that bounty, they shouldn't (and wouldn't!) have done the research with that motive.

[0] https://www.microsoft.com/en-us/msrc/bounty
https://github.com/robpike/ivy

Documentation: https://pkg.go.dev/robpike.io/ivy#pkg-overview

Also see these Advent of Code 2021 solutions with Ivy: https://www.youtube.com/playlist?list=PLrwpzH1_9ufMLOB6BAdzO...
If the pandemic has demonstrated one thing, it is that I don't want to work in an environment where almost everyone is remote. It has become very clear that WFH workers take extra time off at random intervals during a day, and are typically hard to reach if you need to talk to them. Also, the smaller the children, the more likely it is they are subtly unavailable during work time.

This is not acceptable, even though I totally understand these people like that.

Some even have a 40 h job and admit openly that since they are doing WFH, they effectively have the whole day for their personal endeavors. Although in the story I am thinking about, there were no children involved. To the contrary, it is about a person 5 years away from retirement, and their boss has apparently given up wanting to legally fire them and trying to make them do meaningful work. So the solution was to push them off to WFH, and not think about the topic anymore.
My point of view is that locking people up for drug use:

* Hasn't reduced drug use

* Makes them more likely to continue their drug use

* Often leads to the use of harder drugs

* Is expensive

* Provides funding to cartels

* Causes violence

Decriminalising, or legalising drug use removes one of the main motivators of gang formation/violence while allowing the state to focus on helping addicts recover and contribute to society. The money spent on enforcement can now be spent on treatment, reducing the need for further funding rather than increasing it.
BingBang: A simple developer mistake could have led to Bing.com takeover
You can try www.Musconv.com to transfer your playlists.
I agree with you. But it's nice to have some reference about how we can return a response error. I already see too much creativity, weird formats and useless informations in many APIs, so this can work as a basic quality threshold.
Coal is awful, but also keep in mind that it’s shipped to centralized locations to be burned.

Gas for cars is shipped to a distribution center, loaded onto trucks that are immensely heavy and require loads of fuel to haul, shipped to a local distribution center, loaded onto trucks, driven somewhere else, pumped into a station, then those trucks drive back, and people often drive out of their way for gas instead of just charging at their destination. (Nobody has a gas station at their house and few desirable stores include gas stations)

It’s entirely possible that this process ends up using more energy than just burning coal.

https://www.forbes.com/sites/mikescott/2020/03/30/yes-electr...
Did they perhaps force a password reset when this was reported? I was prompted to change my password when I logged in (a work account I don't use much) yesterday which slightly surprised me in that there wasn't a particularly explained reason, and I didn't think it could have been old enough that it was a rotation policy kicking in.
Good catch, that's way off the mark. GPT3 was actually trained over 300B tokens, but some of those were repeats (which is now considered bad practice). Based on Table 2.2 in the GPT3 paper, I calculate the actual training set was only ~238B tokens (assuming they shuffle as they should, rather than selecting each minibatch with replacement). That's approximately 1TB of text (~4 characters per token).

The source of the 45TB number is this quote from the paper:

> The CommonCrawl data was downloaded from 41 shards of monthly CommonCrawl covering 2016 to 2019, constituting 45TB of compressed plaintext before filtering and 570GB after filtering, roughly equivalent to 400 billion byte-pair-encoded tokens.
This is mildly good news, although I suspect that more evidence might be needed to nail the causality here.

> Remote work has the biggest effects on fertility for women who already have several children, and no effect on the fertility intentions of women who have no or one child.

This is the bigger concern though. I suppose no effect is better than a possibly negative effect which one may predict (intuitively you may meet your partner at work and that may not work so well when remote), but it is the more crucial segment to address.
I was at school in the 80s and 90s in the UK and this brings back very fond memories of a highly eccentric Latin teacher I had, who mastered this technique and used it frequently. The other memorable thing about him was how he'd tell us he was going to do some photocopying and head off with no paperwork, only to return 5 minutes later still with no paperwork but smelling of pipe smoke.

Some more modern classrooms had the greenish boards that were a continuous loop that you could roll, but the older ones had black ones that were extremely heavy (maybe slate?). Some of them had a counterbalanced pair on ropes and pulleys in wooden runners, so that when you slid one up the other would come down. I remember in one lesson the ropes snapped and the front-most board came whistling down like a guillotine past the face of the maths teacher and landed with a bang like a gunshot. He was unhurt luckily but was extremely pale and shaken - understandably!
Beautiful! Do you make a lot of coffee? It definitely can get through a lot. I have a niche zero. 20s or so to grind a shot but there is no wastage. Ideal for a home setup making 2 a day.

This is paired with a Breville Barista Express. Unlike most espresso people I am not tempted to upgrade this because I am so used to the workflow and it is quite good for a consumer grade machine (except for its grinder). With the niche I can make something 90% of the fidelity of a good cafe.