skysight-inc/HackerNews huggingface dataset:
Between Windows and Unix/Linux, the general approach is portable at least. Across various Unix flowers, I'd expect some more portability. Can't say much more since I've never tried to use the same code on multiple platforms.

I'd expect you can easily code one backend per supported platform since the backend specific code can start out (and most likely, stay) fairly minimal, like 100 lines or so.

> Using the raw BSD sockets APIs as a starting point for any portable application in 2021 is fucking insane

I started a Linux POSIX sockets "embedded" server project in 2019 using BSD sockets API (TCP) that is rock-solid even though it has some critical low-latency components in the data path (~10ms).

I also worked on a Windows GUI project in 2020 using WinSock2 (TCP). Then I did several experimental projects on Linux POSIX sockets in 2021, building reliable streams on top of UDP. The platform is not that important, I used non-blocking sockets and moved from recvmsg()/sendmsg() to recvmmsg()/sendmmsg() as an optimization, which is maybe 20 lines more code on the backend.

I wasted several months with the wrong approaches on Windows first. I used WinSock2 with IOCP (asynchronous completion ports) and tried to be super clever with multi-threaded designs (roughly thread-per-connection models) and lots of synchronization, even going into "Fiber" approaches with custom scheduling.

That's all wrong, and I/O is very simple. You place buffers at the connections, then you pump data to/from the buffers on a regular basis. You write plain, simple, procedural code, no threading or any other cleverness needed. All you have to do, just like with files or any other I/O, is get rid of the expectation that you can write "nice" non-blocking code in any way. You just don't do that, it won't work out (expect for scripts / batch programs).

I don't see a reason why the story with TLS should be any different (never tried though). It should just be a component that you put between the network buffers and your application code. Something arrives from the network, you shove it to the TLS module. Something arrives from the TLS module, you shove it to the network.

> No RAII, means resource leaks (in C++).

Don't worry - it's just the same as with file descriptors or most other resources. If you're declaring them inline in a stack, something is wrong. Usually there should be exactly one place in the codebase where you're creating / accepting sockets, and one place where you're closing them. There's really nothing to worry about. There's so much C++ RAII zealotry and resource leaking FUD in the wild, but with a systematic appraoch there's little that can go wrong, plus the code will be so much better structured for out.
Is there a visualization somewhere?
They don't; that's why they have human resource departments.
I find there is something enormously satisfying and intrinsically rewarding about working with one's hands, doing woodworking and the like. It's especially so when one has everything to hand and one can work on without distracting interruptions (such as having just remembered that you lent your No 5 jack plane to a friend and you now need it to continue). :-)

I've found that working this way and being able to see the product of one's labors slowly forming and taking shape often brings rewards in and of itself that I seldom experience in my technical work. It's difficult for me to put into words but there's something inherent in the nature of the process and to the flow of this way of working that provides fulfillment and that one rarely seems to tire of doing it. I know a few technical/professional people who are disparaging of such pursuits and view such work as just an unskilled or menial activity—or that it's tedious and boring.

I feel sorry for them in that they've not grasped the idea or notion of doing creative work with one's hands is not the slightest bit in conflict with their professional work and in fact that both activities usually complement one another.

It also makes considerable sense to me that introverts would seek solace and comfort in such activities for the very reasons I've given.
What I think is interesting and not talked about in the copilot cases is there is actually two different copyright actions that come from using it.

The first is if GitHub had a license to distribute the code they have learned on. This is assuming that the code it produces is a derivative, which I don't think would be much of a stretch. For this I think most of the licenses that are used, GPL MIT etc, allow for someone to distribute in such a way.

The second is the user of copilot. They would be getting and distributing code where they wouldn't know the original license, but that wouldn't be a viable defense of infringement. To actually comply with most licenses they would have to follow the requirements.

In both cases I don't know if a fair use would really apply. Maybe GitHub could stretch the research aspect, but if you just use the code in your product there is no fair use.
It's certainly not the way disfavored movements or ideas are handled.
The cubicle farm only looked like hell because everyone was coming from private offices. Going from open office to cubicle would be fantastic.
You select the collection here, then specify the fields. The opposite of SQL.
I'm quite interested to see the study that showed infection rates amongst children in lockdown districts weren't significantly different than those with in person attendance.

If you could link to such a study, it would be worth a conversation itself I imagine, examining the methodology, age groups, zip codes, ect.
The economic realities of coal have nothing to do with renewables. They have to do with cheap natural gas. That cheap natural gas is a byproduct of fracking the bakkan field. A natural gas plant can be run with an operator and a tech or two for maintainance. A coal plant takes a huge team of people to keep running, not to mention the capex required to keep emissions in range.

Coal is expensive because other fossil solutions are cheaper. Renewables without storage are in no way a threat to coal alone - they don't fulfill the same function.
"...recently won the Nobel Prize..."

William C. Campbell and Satoshi Ōmura won the Nobel Prize "for their discoveries concerning a novel therapy against infections caused by roundworm parasites". Not viral respiratory system infections.
Yeah, the fact that coal is becoming economically unviable is a huge cause for hope, imo. It means that we might have a chance to claw our way out of this climate crisis through measures that fit within our current economic systems, rather than the more drastic "burn it all down" solutions that some groups are pushing (and which are much less likely to actually happen)
I was under the impression that phalates only linger in the body for a short while? Also - we definitely have not eliminated the use of BPA “everywhere”.
“Defund the police” doesn't mean “reduce law enforcement activity”, it means “move funding and responsibility for non-law-enforcement activity out of police departments to entities that can do it more efficiently and without turning encounters that should not require armed law enforcement in the first place into bloodbaths that then consume even more.law enforcement resources”.

Defunding has, as a corollary, more police resources dedicated to core law enforcement activities, despite less total resources.

(The disband/abolish alternative works out similarly, though it envisions a more comprehensive reorganization of local community services that wont have a monolithic paramilitary “police department” as a component.)
Thank you and good luck with the RBX1 Remix, looks interesting.
I wrote a short "story" about this and automatic updates https://www.middleendian.com/furniture
Yep, even DOCSIS 3.1 modems don't do much for upstream, since generally it remains at 3.0. They have to do physical upgrades, such as amplifier swaps, to actually add more channels and make DOCSIS 3.1 OFDM upstream possible. That seems like years of work, and won't happen any time soon.
But you can have product vision or gather feedback yourself?
The Y-combinator is a function in Lambda calculus.
I believe that since this was written the UK has increased taxes and stamp duties for BTL.

The taxes are increased by reducing the tax relief on interest while still taxing the income.

This means those who can buy houses without debt are OK but buy to let fuelled by newly borrowed money should be harder.
Depends on the type of place you work. These are good times for POC type of projects. If you have an any kind of curiosity in a new language or there's something that you think could be done to make things better/easier/etc for users/co-workers/whatevs, then work on it so you can share it. Startups are obviously much more open to this, but sometimes you can still do this at evilCorp type places (if you have good management). It's also a good way to play with a new library/package that you've been reading all the cool kids are using.

If you're the type that just tends to check out without clear guidance, I'd suggest you're might not be a fit for a startup type of company.
I get that some vocal proponents mean “defund” in a very literal sense, but isn’t this always the case with these things?

There is always a group on the fringe, regardless of political faction, that wants the most extreme version of a policy.

The existence of such groups doesn’t mean that serious policy makers are actually on board with that extreme, nor do the majority of folks who support a more nuanced application of the policy (e.g. change how police are funded vs “defund”).

So I hear you, and yes, those people exist, but giving too much credence to the extremist position and wielding it as a scary straw man against the movement is also problematic.
Didn't Elon disrupt the whole operation at one point, traveling there to get footage or an Instagram Story video?

It is easy to see what is going on and that it isn't in good faith. Look a his breached commitments during the Flint water crisis (filter every home to below FDA levels), coronavius (produce ventilators), Peurto Rico huricane aftermath, and more. He as a common pattern with these kind of events.
I'm there now. Our product has achieved cruising altitude, and there isn't a lot to do now but polish it and routinely remind my manager that we don't need to add new features just for the sake of adding features. There's no other challenging products in the pipeline, so ... it's boring. Very boring. I can do my entire job in a few hours a week if I want, and most of that is pointing junior developers in the right direction and interfacing with management to answer questions.

My next installment of the golden handcuffs happens in September, or I'd be out already.
The real story is, most people in Japan don't bother to eat KFC on Christmas. I never did. It's just KFC spend money on ads in Christmas. It goes the same for Valentine's day(to gift chocolate) or Halloween(cosplay) or whatever foreign culture marketing people felt exotic and fresh to shove it to the general mass.
Give or take 30% depending on how Elon Musk's feeling that day.
> Is it clear how many people have access? If access is fairly limited, I'm not surprised at the low number of examples.

I wouldn't be too surprised either, what surprised me was the large number of people who explicitly said words like "many examples" and then couldn't link more than one.

> Here's an example from their own docs:

Thank you! This is definitely a much stronger example than the Quake one. Looking at the git repository it seems like this is generic startup code for a university assignment, so it probably shows up a significant number of times in the training data.

While it definitely makes sense to interpret a piece of code showing up several hundred times in the exact same format as being okay to straight-up copy+paste (e.g., imports, some boilerplate in more verbose languages, keyboard input switch statements), this does seem to highlight that Copilot can't distinguish between code snippets that are always identical because that's just the correct way to do it, and code snippets that are always identical because only one person did that thing, and it just happens to be in hundreds of repositories for one reason or another.
The problem is obviously a type error (not different from the use of a Social Security Number as a National Identification Number).

The government will pay for medication “that works”.

It determines that medication is one “that works” by seeing if the FDA approves it.

The FDA doesn’t want to always be too slow to approve medication so sometimes it wants to approve medication as “doesn’t hurt”.

Ultimately, the problem is that American policy relies on categories rather than spectra. My personal belief is that this is because the bureaucrats and policy makers are taking advantage of common American knowledge of categories vs spectra. So it needs some categorization mechanism and since one exists, they use that one. Presumably, out there is a bureaucrat with the same impulse as the engineer reading your PR who says “We already have a function to calculate radians to degrees. Why don’t we use that?”

In comparison, the NHS will measure how much to spend on a treatment based on an adjusted QALY measure (that boosts the value of the last few months). X QALYs are worth Y pounds.

Almost all American policy, by comparison, is category-based.

Other examples:

- immigration: America does categories (so either family or employment or refugee) while other nations use scores (if you both have family and employment you get some boost from both rather than the US max(categories)) system

- social security: Thresholds on disability and poverty are cliffs resulting in marginal income improvement resulting in marginal post-support income decrease. These should scale down, not drop off based on in-category/out-category
>> supporting conspiracy theories accusing chief justice John Roberts of pedophilia and murder

I miss the good old days when such accusations were extreme. Reporters would hesitate to say the word pedophile on air. Airing such an accusation would almost certainly trigger a serious defamation lawsuit. News outlets would instead talk of unspecified personal accusations. Now, thanks to a certain popular letter-based conspiracy theory, calling any public figure a "satan-worshipping pedophile" doesn't even raise eyebrows.

Is is "popular letter-based conspiracy" or "letter-based popular conspiracy"? I'm slipping on my royal order of adjectives.
>Because you would be subdividing again, which yields 6 groups

No, it would be 2 groups if the single partition was sex. It would only be 6 groups if they also wanted to slice each group again by age, which is not what I'm asking. The 2 groups are not "too small" if 3 groups are not "too small."

>Also read my last paragraph about 'playing' with your data like that.

I did, and I think that's valid. However, it has no bearing on my point about the size of the groups.
Link to pdf with prescribing information highlights which includes a small bit of detail about Aduhelm's mechanism of action and other details:

https://www.accessdata.fda.gov/drugsatfda_docs/label/2021/76...
Fantastic stuff!

Here is a list with a few more GPT-3 books, including the very first book co-written by GPT-3 and K Allado-McDowell (from Google AI).

https://lifearchitect.ai/books-by-ai/
[1]: "The mean age was 42 years (SD ± 15.5) and the median time since symptom onset to the inclusion was 4 days [interquartile range 3–6]. The primary outcome of hospitalization was met in 14/250 (5.6%) individuals in ivermectin group and 21/251 (8.4%) in placebo group (odds ratio 0.65; 95% confidence interval, 0.32–1.31; p = 0.227). Time to hospitalization was not statistically different between groups. The mean time from study enrollment to invasive mechanical ventilatory support (MVS) was 5.25 days (SD ± 1.71) in ivermectin group and 10 days (SD ± 2) in placebo group, (p = 0.019). There were no statistically significant differences in the other secondary outcomes including polymerase chain reaction test negativity and safety outcomes."
Example from the cheatsheet:

```
WITH
P := Person
SELECT Person {
id,
full_name,
same_last_name := (
SELECT P {
id,
full_name,
}
FILTER
# same last name
P.last_name = Person.last_name
AND
# not the same person
P != Person
),
}
FILTER EXISTS .same_last_name
```
Am only wondering when the US will switch to Celsius like the rest of the world.

At least we got Fahrenheit 451, but still.
The mines are also cursed.
Off the top of my head: EdgeQL grammar is relatively complex and we need SELECT to disambiguate in many corner cases.
I’ve been trying to use a pi4 as a desktop, with xfce, and was a bit disappointed. It’s usable but less than an old iPad. So I was surprised you got by with a pi2! I’ll have to give that h264ify a go.

For games, I was super pleasantly surprised to rediscover old open source games that I had completely forgot and actually love: frozen bubbles, neverball and monsterz :)
Cairo claims a historic right to the river dating from a 1929 treaty between Egypt and Sudan represented by colonial power Britain

And

A 1959 treaty boosted Egypt's allocation to around 66 percent of the river's flow, with 22 percent for Sudan

Wow. That sounds like it obliges Burundi, Democratic Republic of Congo, Ethiopia, Kenya, Rwanda, South Sudan, Tanzania and Uganda to collectively use no more than 12% of the Nile's flow. Colonialism was not good to Africans south of the sahara. No wonder they got together and made their own treaty.
No, this isn't supported, sadly. We might support this mode eventually, but the ETA is unknown.
You can think of that guy as a fixer. His job is actually three jobs. Fixing issues. Quality control. Monitoring the building crews performance.
Football-mad Italians gear up for big night
"All of these coy little word games and character assassinations being conducted in the name of the common good is achieving the exact opposite result."

You aren't kidding. That whole hydroxychloroquine thing was a mess.
Functional-Ish JavaScript
You can't really compare the Pi 2 to a 4. That's like comparing a 486 or Pentium to a Ryzen.

The Pi 4 is a serious device. 1GbE, USB 3.0. It demolishes the previous Pi devices across the board in performance. I think this is where people get confused by others using the Pi4 as a NAS or server or whatever. There is this misunderstanding of just how equipped the Pi is today.

> Video editing: same as above. Also not enough RAM.

I wouldn't even do this on my Macbook Pro with 16GB of RAM. Anything less than a workstation with gobs of RAM is just asking for a headache. Unless you're just chopping together the random video for the family once a year.
Agreed. The consistent muscle memory support for both the mouse and the keyboard shortcuts (Win 1,2,...,9,0), whether your regular programs are open or closed, is probably my favorite part of the Windows 7-10 UI.
The front-end GUI /usr/bin/non-session-manager is replaced by a symlink to nsm-legacy-gui in a New Season Manager install. One doesn't really run the daemon directly anyway.
Ah yes just feels like yesterday (15 years ago) when I was berated for questioning the supposed awesomeness of open offices. FAANGs of the time were moving to it so must have been good! I even remember my manager and some of the senior folks at the time treating me as a culture unfit when I mistakenly let know my preference!!
I use an iPhone, keep all my casual media and textbooks on an iPad, and use a MacBook Pro for work. I'd really like to use Apple if I could, but I have no idea why all these people are supporting Apple maps.

I tried desperately to use it for half a year (in the US), gritting my teeth at the endless frustrations. From the inability to get info on any business or location other than a highly biased Yelp popup, to the voice directions telling me to turn as I'm approaching the turn before it actually wants me to turn, to the flat-out wrong streets. I've found myself being led to random dead-ends that the map said should be a thoroughfare, but obviously never had been and would unlikely be in any near future.

Similarly, I'm astonished at the bad service in their cloud, files, photos, music, and suite of office document programs. Just terrible for such a huge company. I can only conclude that they don't care, since they're making more than enough money on hardware.
Stop buying fish, most important thing you can do.
Really shows that teachers hate children. Zero risk to kids, and will only cause problems big and small.
One past thread:

Vladimir Lukyanov's hydraulic computer - https://news.ycombinator.com/item?id=18525534 - Nov 2018 (72 comments)

Kind of related but not directly:

MONIAC – Monetary National Income Analogue Computer - https://news.ycombinator.com/item?id=18843255 - Jan 2019 (6 comments)

The Water Computer (2016) - https://news.ycombinator.com/item?id=18846599 - Jan 2019 (26 comments)

MONIAC, a hydraulic computer that modeled the economy - https://news.ycombinator.com/item?id=9812721 - July 2015 (6 comments)

MONIAC: an analogue computer using fluidic logic to model an economy. - https://news.ycombinator.com/item?id=4438081 - Aug 2012 (1 comment)
I think we're going to hit a stage where if we don't restrict industrial pumping from these reservoirs they are going to just run dry. Having grass in deserts, unlimited housing in deserts, and growing food in places where it just wasn't made for without sucking billions of gallons of water from other places just doesn't make sense.
Volvo, Daimler, Traton to develop charging network for electric trucks in Europe
Theoretically, isn't a "functional" version of this program possible? Machine-learning aside, I have to wonder how precise platforms like ContentID are, and how easily they could be fooled by an algorithm designed to fool the system with near-imperceptible changes (eg. cutting out certain high-end freqnecies, dilating the speed of the track by very small amounts, etc.)
Except GNOME rewrote GNOME Shell in JavaScript. I don't think GTK3 requires GJS, so I'm not sure why it uses more RAM than GTK2, maybe due to CSS? I know it's still Cairo-based, not GPU-accelerated or DOM-like.
In Tampa bay, red tide is already[1] killing literally tons[2] of fish per day. How long can this last without a complete collapse of the ocean ecosystems?

[1] https://www.fox13news.com/news/red-tide-temporarily-closes-s...

[2] https://www.fox13news.com/news/in-one-day-nine-tons-of-dead-...
Switch to double edge razors. My razors have zero plastic on them. All cardboard. You can get a lifetime supply for about $300 too. And I mean lifetime, until you die.
Whether or not the post misdirects, or is false, is unrelated to what the author wrote in 2003.

It's not even established that they were "misdirecting" then, either.
If you force a team of talented people to go into perpetual “maintenance mode” for a product many of them will want to quit (understandably!).

At any rate, a new UI generates interest in an OS the way few other features will, so while it annoys old timers it has a clear marketing function too - see the ridiculous speed at which everything had to get a “dark mode” for their UI a few years ago as another example of this.