skysight-inc/HackerNews huggingface dataset:
That was fun!

Not that anyone cares for FizzBuzz but I'll just note that n**4%15 is more efficiently written using the 3 argument pow function in python, eg pow(n, 4, 15).

>>> timeit("(1<<100000000)**4%15", number=1)
1.5620321459136903
>>> timeit("pow(1<<100000000, 4, 15)", number=1)
0.05834826407954097
>>>

If n gets large then n**4 is very large so the % 15 has to deal with a big number. pow runs the modulo operation at the same time as the power operation so the intermediates never get bigger than 15.

https://docs.python.org/3/library/functions.html#pow
Google finally revealed how much personal data they collect in Chrome
Golem and Gitcoin GR9 Hackathon ($29,000 in prizes)
I assume Spotify has agreements with the record labels about how much the royalty owner gets for each stream. Spotify could argue to change that so it's now 50/50 between the royalty holder and the artist.

Depending on how much leverage Spotify actually has here, they can of course try to change the existing agreements they have. Nothing in impossible and harder things have changed before.
That depends, does what you want cause greater harm to society than the alternative? Does manufacturing less repairable devices cause more to be disposed of more quickly? Ideally with the environmental concerns we face, making what we already have last as long as reasonably possible is the least we can do.
(To help keep the salt stuck to the road instead of blowing away.)
The graphics appear to come from the processor, either a
Ryzen 4500u (6 gpu cores @1500Mhz) or Ryzen 4700u (7 gpu cores @1600Mhz).
> (which is just a standard thermal power-plant: usually a steam engine)

CMIIW, but aren't "standard thermal power-plants" (especially those involving steam) usually reliant on a steady supply of (cold) water? That would seem like a major dealbreaker in a desert...
I see, unless there's an army of solar trailers it's not useful.
For me and my tired eyes, no laptop screen comes close to the real deal which is a large ultrawide monitor. So it might as well come with 1080p which has better battery life and no application scaling issues on Linux.
The term describes what is being discussed when people are reasoning by analogy with other things which have been eliminated from use.
The Myth – and Liability – Of America’s Obsession with Rugged Individualism
Neat! In your post you mention that it takes a few seconds until you get to the prompt (and the waiting time is similar for the nix-shell shebang scripts), but recently someone made nix-script[0] to cache these scripts, resulting in a runtime on the order of dozens of milliseconds.

Also, thanks for being dedicated enough to read the entire manual and give your impressions! If you spot typos, things that could be clearer, etc. please let us know on Freenode #nixos-dev or the Nixpkgs issue tracker!

Do you also plan on covering flakes? Flakes are currently gaining adopting in the Nix ecosystem and are pretty exciting, since they resolve issues like ad-hoc project structuring, and since evaluation will now be pure, results can be cached aggressively and nix-shell will be much much faster.

[0] https://bytes.zone/posts/nix-script/
That was true when Stewart's show started, back when being anti-war was pretty unpopular but I don't think it's true in the past decade.

Lorne Michaels (SNL) was interviewed recently and asked about how the comedy skits had changed. He said they could not air today anything like the stuff they did in the 70's and 80's.
Let's not forget to add aortic dissection risk to this. In the experimental setup, all it took was exposure to Cipro and elevated blood pressure in the lab animals.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6233654/
That's the whole point, you're not mysql. You don't need the sophistication of that magnitude. You need to run a standalone go binary to listen on a port. Simple. Why bother with the blackbox of systemD when you can perfectly get away with a basic shell script?
Communicating with the majority of my friends through telegram, and having access to the records of all of our conversations, has revolutionised my usage with computing. I use the "saved messages" (previously messaging yourself) to act as an append only log of info I need to search, and unlike emailing myself the UX is actually good. Search is extremely fast, and the fact I can see all the photos I ever sent someone has come in handy a huge number of times

For this reason alone, I can't really see myself switching to an amnesiac client... not unless something else came along that has the ease of use of making all this accessible for me.
My scenario is not one of power imbalance, it is that I simply cannot create enough economic value doing it to make a living, and I have no right to change anyone else's rules to accommodate for that fact. I cannot make you a bookshelf cheaper than you can buy one at IKEA. At my software developer rate a Billy Bookcase would cost you $1000. It's probably safe to say you aren't going to "stop whining" and pay that.

But you know what I did last week? I didn't mope around at some job I hate complaining about "Big Furniture". I made a bookcase. I also wrote a bunch of software. I can call myself a woodworker, I paid my mortgage, and IKEA sold thousands of Billy Bookcases. All is good.
I think that technically one is supposed to do that in commercial spaces in the US as well, but there’s an enforcement issue. Small businesses aren’t really at the mercy of roaming enforcement agents, but there are services businesses can subscribe to that cover the costs of royalties for playing in commercial spaces.
Classic Comp Sci books, specifically:

CLRS - Introduction to Algorithms (after the authors - Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein)

SICP - The Structure and Interpretation of Computer Programs by Hal Abelson, Jerry Sussman, and Julie Sussman
Unfortunately, this kind of behavior will be rewarded by the job market, because he's now got a bunch more tech buzzwords on his resume than you. Call it the Resume Industrial Complex: engineers build systems with as many bells and whistles as possible, because they want to learn all the hot new tech stacks so they can show off their extensive "skills" to potential employers.
> 1920×1080

Come on.
Under capitalism and according to its most vigorous devotees, it is in fact crazy, because the only important thing to them in life is revenue and wealth. You can see it in the various flavors of "hustle culture" and in the ways people are personally hurt when you insult their favorite corporate brand.
It seems to me that you have precisely missed the point. In particular, you give away your own worries in your frustration that something being described as part of _white culture_ must be implied to be _bad_.

Have you investigated the source material? Engaged with it by doing the hard work of reading it and thinking about it objectively, which you seem to believe are positive ways to approach knowledge? Or are you reacting emotionally to your perception of a one-pager extracted from a whole body of work? Have you considered that some of the traits you're describing may have alternate combinations of traits that could also result in positive outcomes if they existed as the dominant traits?

These are just a few questions that arise for me from your snippy post. If you engaged with the material linked from that Newsweek article, you might come up with more.
C# started adding records when Java was already working on them.

So if you insist on someone borrowing, it is this time the other way around.
"Right to repair" doesn't mean that everything has to be actually repairable down to replacing things at the lowest level of component. It means making the same tools and information available that an authorized repair center has access to. But if the standard of repair is swapping out an entire device or PCB there's no requirement to go above and beyond that.

A lot of people seem to confuse "right of repair" with modularity/ease of repair.
there is a nice answer:
https://justdue.it/
Yes, see the recent changes to the guix system image command (the info/web pages haven't been updated for it quite yet.)
https://www.gsmarena.com/apple_to_move_production_from_china...

https://www.reuters.com/article/us-foxconn-vietnam-apple-exc...
Also I bet the efficiency numbers are for the panel receiving optimal direct sunlight not the high angle light it's going to get because it's on the side of a car nearly vertical.
I know their energy densities are crap, as are their discharge rates, but boy would I love to see nickel-iron batteries take off for large projects. HN is already about scale, scale, scale, and wow would nickel-iron benefit from that. Not exactly environmentally unfriendly, either.

Another reason I think about this for infrastructure projects is, well, America is terrible about maintaining its infrastructure. It's a bit like code -- don't be surprised if that thing you banged out has to be viable for a decade more than you anticipated. And no battery tech stands up to decades of wear and tear like nickel-iron. I just know that any fancy battery stack we want to offset wind or solar will suffer from neglect as the people writing the budgets turn their eyes to shiny new things. Might as well plan for it.
I'm yet to see anyone describe themselves as simply a 'trained Marxist' without any indication as to what that might mean specifically, other than these BLM leaders. A 'trained Marxist guerilla'? Sure. A 'trained Marxist economist'? Sure. 'Educatied in Marxism'? Sure. Even just a 'Marxist', sure. But even with the Leninist part (which the quote doesn't specify - there are plenty of non-Leninist Marxists about) it's unclear what it means to be a 'trained' one. It's not as though there's a 'Marxism coach' somewhere who trains you on understanding the significance of the ratio between constant and variable capital or the labour theory of value.

It's hilarious because it's so vague, not because there are guerillas or revolutionaries who have been trained by Marxists in agitprop/organizing/guerilla tactics. In short, what's the difference between being a 'trained Marxist' and 'educated in the works of Marx and Engels'? If I heard someone describe themselves as a 'trained literary critic', I'd think exactly what GP pointed out too.

My comment is just as much a criticism of the vagueness of the BLM leaders as it is the people who accept them at their word without even inquiring into what it means. For all we know, they could literally just be holding a philosophy degree completed with a Master's project in an aspect of Marxist philosophy.
Ha, good question. Generally, everyone switched to HTTPS. But that doesn't protect against situations like with Yahoo, where the agencies were tapped-in after the SSL termination. I guess it's not a stretch to assume it's still going on.
You'll probably find more of that sort of content in the "homesteading" communities rather than the solitary off in the woods alone Youtubers. Here's an example I stumbled across recently.

https://www.youtube.com/watch?v=UWgG5pmhdik

They tend to get more into the realities of this type of work and lifestyle.
I see the commingling thing brought up in every thread like this, but I've never personally, nor has anyone I know IRL, received anything from Amazon that are even suspect of being counterfeit. If they are counterfeit, then they are such high quality counterfeits that I'm not sure I even care.

It's obviously a problem to some extent, but I can't help but think news articles like that blow it way out of proportion.

As for returns, I've notice the opposite: it takes me considerably less time and effort to return an Amazon purchase than, for example, a Target purchase. I actually did both this weekend: for Amazon, I walked into a UPS store, handed them the unpackaged product, they scanned a barcode from my Amazon app, and I walked out. The whole thing took no more than 30 seconds. At Target, I had to wait in a line for 20 minutes at the Returns counter, had to show them the receipt, also had to show them the card I used to purchase, and then the system wasn't refunding the correct amount so a manager had to be called over and re-do the entire process with some sort of override. The entire process took, at minimum, 30 minutes.

I hate Amazon's bullshit union tactics like in the OP, but they are still the undisputed king when it comes to overall shopping experience, IMO. And it's not necessarily because Amazon is actually great, it's more because the other companies are still really far behind.
They plan to one day: https://www.linux-magazine.com/Online/News/System76-To-Desig...
RuneScape login partly down for past 10 days
Doesn't Rust do the same, when I write `let a = match ... ;` and then rustc complains that return types of branches do not match?
> This is of course a really neat solution, but the proof doesn't really give me much value as a reader.

This is because your number theory-fu is poor.

Don't take this in a bad way, I'm probably even less capable. What I mean is that readability is predicated on a reader. Seasoned number theorists might not be as cool with goroutines or walrii operators or virtual DOMs.
My xiaomi notebook looks a bit like a mac clone and as 2x USB-C ports and 2x USB-A ports. It is not without its problems, but if you want a reasonably priced laptop that looks like a mac I would say it is a pretty good choice.
If the battery costs 75% of the car does it make sense to try to refurbish it? There are old model S cars on the road with half a million miles on and still usable range. After that kind of mileage I expect the rest of the car to be pretty worn too...
I think the annexation of Crimea certainly increased tension between Europe and Russia. I’m not sure how it effected energy policy however.
It's a bigger choice than that for them, or for anyone. If the government requires pervasive tracking, it's either allow it or stop selling phones in China, the world's biggest market for cell phones. And given that economies of scale matter (for things like swallowing flat rate development costs for those nice SOCs they design), it's hard to say goodbye to half your market.

Samsung certainly won't take a principled stand on this and stop allowing app tracking. And in a competitive market, deciding to not sell cell phones in China means less development capital for designing the next generation of hardware. They'll start circling the drain and wind up like Motorola or HTC.

I'm not saying that they shouldn't be consistent - just that choosing to not sell in China will mean losing everything outside of China eventually.
I hope they work on Docker Swarm. “Docker compose” for multiple machines needs working on!
In Ontario, sand is typically used outside of cities, at least in Simcoe County. It's remarkably effective at melting ice and snow.
If China kicks Apple out, we can expect 50k dollar iPhones soon thereafter

Do you really believe that people in India spend $50,000 on the iPhones that are made in India, or are you just being hyperbolic?
> You can have a successful movie and not distribute it in China. It won't make the absolute maximum number of dollars possible on planet Earth, but it can still be a successful movie.

The business success or failure of a movie is entirely determined by how much money it makes. To maximize that success (or even to be considered a success), you must publish in China.
There is no dig. Just people finding excuses to be offended. Based on the assumption that any thing pro-motherhood is necessarily anti-fatherhood. Good grief.
What is so bold about the MacBook design in 2021?
https://www.amd.com/en/products/apu/amd-ryzen-7-4700u

Vega 7 @1600Mhz

You are unlikely to see dedicated graphics paired with a U-series processor in most cases. (There are exceptions, but you'll see the dedicated graphics card specified in those cases.)
University of California and Elsevier Announce Open Access Agreement
> Apple seemingly doesn’t mind having a double standard for China.

That seems to be the case with many businesses. Nobody wants to lose that entire market just to stand on principle.
Nope, actually it is wrong!

Even if being an immigrant is correlated with higher rates of some crime, an algorithm cannot take that into account without bigotry. Imagine being an innocent immigrant. If the algorithm tags you as guilty, no amount of explanation about averages or neural nets are going to make you feel better about your erroneous charge. This is the reason “stop and frisk” was such a huge deal: it let the cops “racial profile” for drugs, meaning that at any time all black and brown people were more likely to experience 4th amendment violations by the cops.

Our language around probability doesn’t help either. We say things like “being an immigrant makes it /more likely/ that you will take some action”. There might be a correlation in aggregate data but in any individual case we can only look at the relevant facts. Think again about being an innocent immigrant. Would you accept someone saying that /you personally/ were more likely to have committed a crime? Of course not!

The moral of the story is that stats describing a cohort cannot be projected onto individuals in that cohort. The data flows the other way; individuals comprise an average, no individual /conforms/ to an average. They may happen to coincidentally be average, but no causation has occurred.

Our justice system is supposed to be “innocent until proven guilty”, not “innocent until Bayesian inference suggests high enough probability.”
It’s fairly expensive to develop and pay for tooling on an entirely new notebook. It’s relatively inexpensive to start with a whitelabel design from Clevo or Tongfang instead and leverage the existing tooling and validation work.
Azkarra Streams 0.9.0 Release
If they cannot pay the artists more, a long-term freemium plan might not be a great business model then. If free users are seriously cutting into profits, should they change the free plan to a limited free trial? I was around in the 80s 90s and we didn't really have free cassettes and CDs and radio paid studios & artists with ad revenue. Spotify is well known enough now that it could be argued an unending free tier may no longer be necessary.
I've been alternating between two long term Rust projects, which seems to work in keeping the motivation up for both!

A Dwarf Fortress-like game (and engine): https://github.com/DomWilliams0/name-needed

A x64 operating system: https://github.com/DomWilliams0/DomeOS
Does that measure have an inherent bias? Is it like saying kids with parents that tolerate each other are successful? When they don't tolerate, they separate and are not a two parent household anymore and so don't show up in the measure. Maybe it just means kids in peaceful households fare better?
(Hey, at least they are being "creative" about it: "Let's drive 'em mad by allowing only MTV and making all other channels static!" ...)
I highly recommend Basic Economics. It's an excellent overview of the field of economics for the common citizen.
I don't mind the resolution per se but am a bit concerned about what sort of panel it is. There are some bad cheap panels out there.
The personal computer (as a category, not just the IBM PC). I first ran into one in high school, when the computer science lab got five TRS80s. Before that, it was submitting a FORTRAN deck that someone took to an off-site mainframe. Half a week later, you got your results. But with the TRS80, you got them as fast as the program ran.

Now the CS lab did have a Teletype terminal, though I never used it. But the TRS80 had a real interactive display, not just static paper.

I know there were others before the TRS80. It's just the first one I came across.
> filter doesn't even change the types of its arguments

But map, which 90% is used after filter, does.

const foo = client.someRequest()
.filter(item => /* some condition */)
.map(item => /* some transformation */)

someFunction(foo)

Without a strong type system, how do you ensure "someFunction" is called with the correct data structure ?

The answer is either:

- you implement your own type system (based on json schema?)
- you write the type checks manually in your tests

With a strong type system, it is already done by the compiler.

Every REST/GraphQL APIs relies on a strongly typed schema.

A type system in your programming language is a feature that allows you to "encode" the schema within the language itself.

The most expressive the type system is, the less validation code you need. The less code you have, the easier it is to maintain your code.

You don't like the verbosity? That's what type inference is for, take a look at that Typescript example:

const handlers = {
foo: () => { /* ... */ },
bar: () => { /* ... */ }
}
const action: keyof typeof handlers = someOtherFunc()
handlers[action]()

If your function returns just a string, Typescript would scream at you. If your function return type is ('foo' | 'bar'), then you ensure that handlers[action] will never be undefined, without writing an if/else/throw block.
My fleet is fine. I'm rolling in the dough (relatively to the average person who has to deal with these problems). My maintenance is done in house (mostly by me) at very low cost. I have a slow season to spend on preventive repairs.

The janitor driving a 1997 pile who gets to choose between $1k for a new exhaust or $2k to roll the dice on a replacement vehicle is the person who really gets screwed here.
Sorry for that! We decided to focus on Spotify first due to its large userbase and mention it in the app description but I agree, it should definitely be on the main website too!
Show HN: _hyperscript – an async-transparent scripting langauge for the web
Hi Folks,

We have been working on an experimental front
end programming langauge, hypescript, as a companion project for htmx.

https://hyperscript.org/

Its syntax is based loosely on HyperTalk, the scripting language for HyperCard.

It has some feature that the HN crowd might find interesting:

Async-transparency - as much as possible, the runtime tries to hide the
distinction between synchronous and asynchronous code

https://hyperscript.org/docs/#promises

https://hyperscript.org/docs/#async

Event driven - events are treated as first class citizens, including
event-based control flow

https://hyperscript.org/docs/#event-control-flow

CSS Literals - you can refer to elements in the DOM directly with syntax like
#foo, .bar and <button/>

on click add .highlight to <button:not([disabled])/>

Extendable language - the parser is pretty open and flexible, allowing you
to add new "commands" (statements) to the language

https://hyperscript.org/docs/#extending

Integrated Debugger - the language has a (very alpha) integrated debugger

https://hyperscript.org/docs/#debugging

Inline Web Workers - the ability to define a web worker directly in your page

https://hyperscript.org/docs/#workers

There's a fair bit of other stuff too, SSE and Websocket support, a slew of
useful commands for working with the DOM, etc.

This is very early, 0.0.6, so please be gentle, but it is being used in a few
places in production. I used it to make the / key jump to the search box
on htmx.org, for example.
> They sign shitty contracts that leave them with "virtually nothing" and then complain to someone who is not responsible for them having "virtually nothing".

I guess that's what you have to do when you're powerless. Record labels force you into shitty contracts. They have the power. Who has power over the record labels? Spotify.