skysight-inc/HackerNews huggingface dataset:
>At least this (majority) of people in Europe is mentally prepared to use much less energy than their parent’s generation, and the little remainder should be renewable.

I'm mentally prepared in the sense that the reality is being forced upon me, it is not something I want and it is not virtuous. You wonder why Europe is stagnating? This is it.

We would not be in this situation if you green maniacs hadn't turned off the nuclear plants and prevented more from being built. You've created an artificial energy famine. And buying organic will not work for a global population of 8 billion, as we are finding out in Sri Lanka.

Suffering through 40 degree temperatures does not make you virtuous. AC is good, it saves lives, it is not a luxury. It's the nearest thing we have to terraforming technology, a top 10 invention of the 20th century.

I don't want to be in your self-flagellation climate cult. I don't want to be poor. Fuck you.
It's "amortized free"
The dealers may be more-or-less rational economic actors. Their customers are not. Yes, some will knife you.

https://www.kron4.com/news/bay-area/man-dead-after-tenderloi...

https://www.kron4.com/news/bay-area/4-stabbed-in-tenderloin-...

https://www.kron4.com/news/sf-man-stabbed-in-tenderloin-in-c...
The article missed one very critical element: depending on the tariffs it may be a net zero sum game for a consumer, but solar energy is super tricky grid wise. When clouds pass over the country, when it is night, when it is winter there is no abundance of energy in the grid. Winter could be baseline compensated by nuclear but the variations summer and winter beyond buffers have to be compensated by energy sources can startup very quickly. And that is mostly natural gas.

So while I can totally follow the article positiv argument (as a proud owner myself I experience the same sentiments), in the larger picture, that feeling only works in summer daylight and only if the grid is already on 100% renewables at the given time (which in parts of Europe we are).
Maybe, but somehow Microsoft Office with its VBA macros has managed to remain sane in comparison ;)
The problem isn't the amount of usage of electricity, the problem is CO2.
The newspaper that gives back to the Earth - literally
Facebook and Instagram ads. Impossible to block through CSS now as the CSS classes are dynamically generated + it's even hard to pick out sponsored posts using .js too.
If I move to another country, yes. I have no intention to, but I can’t get a permanent resident permit here for a multitude of reasons.
Heat escapes into space. Global warming happens because of excess of atmospheric gasses that prevent heat from escaping into space.
US Quietly Tightens Grip on Exports of Chipmaking Gear to China
Your're missing the point.

OP writes about banks handing out Bitcoins that don't exist on the blockchain but only in the banks' databases. So the subject of mining is mostly irrelevant here.

As long as people trust them, banks can very well inflate Bitcoin.
I attacked the same problem somewhat differently and found some interesting groups.
You can switch the exponential map you use, use instead a Mittag-Leffler function and find a whole family of groups going from sum to multiplication.
Being groups you can define generalized Fourier/Mellin transforms with them.
I wrote a blog post explaining the approach (there is a link to the paper at the end for more details).
https://paureahack.blogspot.com/2016/06/supersum-subproduct....
std::unique_ptr::release() resets the ptr to nullptr, which will be the first thing the deleter will check for and bail out.

This is a non-issue.
Awesome!
I've been wishing something like FDB's record-layer w/o Java/JVM and this has a lot of potential.

I have a question though- How does it handle conflicts within a sqlite DB and among multiple sqlite DBs?

I believe FDB maintains strict serializability by detecting conflicts among concurrent transactions by checking conflict ranges.

I read the doc and the mvstore code and perhaps it's working by writing the deltas of changed pages with the read version obtained at the sqlite transaction creation?

If that's the case, I'm still unsure what you added to the conflict ranges other than the deltas of the pages.
To make it actually serializable, you'd need to add conflict ranges for all the pages that are `select`ed within the sqlite transaction?
Oh man I couldn't disagree more. Having used Nim's hygienic templates, I strongly believe the escape hatch should be the other way round. Hygienic by default, tag individual identifiers as being 'dirty' to inject them as is into the surrounding scope.

Edit: actually, I realize I don't know whether you meant 'macro' in the C sense or the Lisp sense. I was thinking C
GNU Hyperbole – The Everyday Hypertextual Information Manager
I was about to write this. Where does it stop? Including the warmup time? Travel to the event?

I was quite annoyed watching the video, it felt unnecessarily long trying to back up this claim with unconvincing arguments.
AFAIK, there wasn't any stick in Syene, but rather a well.

And in Alexandria it was a column or an obelisk (and not a stick).

https://lidimatematici.files.wordpress.com/2010/11/eratosten...

It would make sense as the shadow of a stick would have been very short, and would have introduced a huge error when measuring it.
> which will be the first thing the deleter will check for and bail out.

The point is that check itself is an extra instruction (or two, rather) that would otherwise be skipped entirely.

I'm not saying this commonly makes a difference. I'm just saying this might be something that does make a difference for them in their particular use case.

Also note that I was trying to describe the general phenomenon with a simple example, but this obviously isn't limited to std::unique_ptr.
> It's important to point out that this applies to the infrastructure needed for green energy itself, which is not green.

IMHO this is an indication that the adjective "green" is too vague and contradictory that it's counterproductive to use it in current discussions.

Different types of "non-green" have very different properties, different types of pollution are not interchangeable and we have to be specific about which we're talking about.

If global warming is a serious crisis, then it implies that trading off some greenhouse gases for a toxic mining pit might be a good deal, a net win from the environmental perspective, as the environmental damage to these few mining locations are far outweighed by the decrease in environmental damage throughout the planet. The same applies for nuclear waste - their environmental issues must always be considered not in absolute risk, but in comparison to the environmental cost of the generation of an equivalent (immense) quantity of fossil fuel or the environmental production costs of the immense scale battery+solar equipment to replace gigawatts of nuclear power.

Anyone who actually wants to effectively advance environmental goals has to consider possible tradeoffs of one "not green" thing versus another, and be willing to accept compromises that trade off a small harm to reduce a much bigger one; and anyone who insists that anything with an environmental cost is taboo is effectively advocating for even greater harm to the environment.
I don’t think you can just use E=mc2 in that case. The rotation of the star is so high that you have to consider relativistic angular momentum effect in the equation: https://en.wikipedia.org/wiki/Energy%E2%80%93momentum_relati...
Certain MS documentation is actually incredible. For instance, the docs for the Win32 API are some of the best out there, rich with notes, examples, warnings, links to relevant topics. For instance, here's the page for CreateWindowEx: https://docs.microsoft.com/en-us/windows/win32/api/winuser/n.... Having never written Win32 code before, I was able to get a window open complete with simple rendering from a bitmap backbuffer in about two hours using nothing but those docs.

Most of the more recent library documentation they have is not great though -- seems like autogenerated junk, mostly.
This just bring good memories.
On thing I hope they get to make it works better on 4K displays
Show HN: SSHScript – shell script-like Python script
I have many Python scripts which run commands and deal with outputs on localhost and remote hosts. Between these scripts, there are many common routines. Eg. making ssh connections, execution and collecting data.

Based on the subprocess and Paramiko, I created the SSHScript. With it, I could embed shell commands in Python scripts. This kind of script is converted to a regular Python script by SSHScript for execution . Working with SSHScript, I feel like writing shell scripts with Python and all Python packages.

For backend engineers who want to automate tasks with Python scripts instead of shell script s , hope you enjoy the SSHScript.
Bookmarklets & user scripts evaluate in the page's context.

CSP literally says, only talks to these specific domains. https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP#exampl...

The browser doesnt block thr bookmarklet from running (iirc). But most bookmarklets immediately try to download & run some libraries to do their thing. Or they try to send data somewhere. And CSP is blocking those connections.

Its hard form me to guess how much of this is intentional anti-user lock out, and how much is just oversight or technical diffifulty. I could see not wanting to drill backdoors through your own security policy, which is more or less what it woild take, but it sure feels lile a loss. Users can turn off csp for the browser with a flag if they want, but we can only do that to the whole browser, not site by site. Also worth pointing out that just disabling csp for thr browser/site (rather than carving exceptions for userscripts/bookmarklets) is something sites can detect (by succeeding in a request that ought not go through) & could potentially decide not to serve you content or what not if they wanted to be petty. That said, extensions exist & arent readily detectable so there's options... they are just nowhere near as direct to author & use.
Happiness is overrated. I don’t live to be happy. I live to make an impact.
Haha, have a nice night :)
If addition is "the first operation", then "increment" is the zeroth operation. You know, counting 1,2,3,4.

If we define multiplication as repeated addition, then we define addition as repeated increment, where A + B is: start at zero, increment A times then B times.
> you're repeating the totally fallacious argument

I'm not repeating the argument that the bodies must be dug out because there was a crime (although I also don't see how it is invalid, because this discovery is combined with oral sources which do claim some very serious crimes).

What I'm saying is that if this is all true, then there are people responsible for it, who would be rightly held to account - if not legally, then in court of public opinion. So when newspapers publish articles that strongly imply that it's all definitive when it actually isn't, someone's reputation is ruined.

> you get to cast doubt on all the known graves and known crimes.

Here's the thing, though. Every denialist article I've looked at trying to figure out what exactly they claim - and there were like 5 - clearly spelled out that, yes, there was plenty of abuse in those schools in general, and that said abuse did result in dead children. On the other hand, almost every article criticizing them makes the same claim you do - that them casting doubt on the claims made in this particular case casts doubt on the whole thing, somehow. All disclaimers are ignored.

This looks like a classic strawman to me, not a good-faith attempt at fair discourse.
Well, they didn't, though. They certainly claimed it as did the British. However, when the dust settled, we got the border we have today.
This looks fantastic for working with colors, and from a great developer too. A very very similar js library is Culori [0, 1], which I discovered on the original Oklab introduction post [2].

If you're doing generative artwork or any procedural work with a non-fixed palette, a good color library and working in linear or Oklab based colorspace is a must. Using sRGB or HSV/B when interpolating for gradients or generating palettes or complementary colors is extremely painful; a 50% brightness (HSV) yellow is visually much brighter than a 50% brightness purple, with similar issues cropping up for saturation. Balancing the lighting and contrast of programmatically generated colors is so much simpler when you have a perceptually uniform colorspace like OkLCh, or linear RGB if you're working with predefined hex values.

[0]: https://culorijs.org/

[1]: https://github.com/Evercoder/culori

[2]: https://bottosson.github.io/posts/oklab/
Most would say the same of politicians and elites who are constantly robbing us. Worryingly, in public discourse, it’s expected and accepted that they will do so.

So, is it /really/ just the poor crime that creates this culture?
You're right, that ends up being the main workflow.

Though instead of connecting to a remote VM, I've found it better to carry with me a small Linux device running an SSH server. This can even be a Raspberry Pi. As long as it has a NIC, with a USB-C adapter hooked to the iPad you can just use an Ethernet cable, and have an entirely local setup.

It defeats the purpose of carrying two devices around, but I find the iPad's screen and Folio keyboard to be very comfortable for long sessions, so this is my go-to setup for plane and train rides.
An advantage of RC is that you can also use it to verify ownership.

When the counter is 1, you can do anything with the object without affecting any other references.

Like the object could be mutable for a counter=1, and copy-on-write otherwise. Then you can make a (lazy) deep copy by just increasing the counter.
Ask HN: How to disable right-click blocking in the browser
My bank’s website has this maddening “security” feature which prevents me from copy/pasting things like account numbers and avoid fat finger errors.

I would love this block to go die in a server fire.
> If the energy is clean, what difference does it make how much we use?

I think OP argues that if that power isn't going into the grid, it does make a difference, specifically to how much dirty energy is used by everybody else:

> Every solar panel put to use for something that isn't turning an old power plant off is slowing the energy transition.
I have something of a love-hate relationship with that saying. The idea is good, but it’s been tarnished by the sheer number of assholes who have used it to justify bullying people with their opinions.
1 GW into the grid allows us to do maintenance of a nuclear reactor during summer, so it be ready for winter. It’s temporally displacing energy, not unlike a battery.
I agree that it goes both ways. Fixing one should help fix the other. It's easier to start small.
Lidar-enabled iPhones can create models via https://poly.cam/.

Examples via https://twitter.com/polycam3d:

https://poly.cam/capture/2607AE4E-2200-4D2A-A852-488578381D7...

https://poly.cam/capture/72c716c6-77f1-4ccd-8a74-97f080a6b47...
You're providing electricity when there's large supply, and you're buying it when there's less supply and large demand.

The prices actually make sense, as evidenced by you still selling despite the low price and still buying despite the high price.
SEC uses Howey test to classify an asset as security, which includes “expectation of profits.”
Yeah but that's what would make you happy...
That looks great. Is there something similar for comments ?
A JIT Compiler for Forth
Yeah, if distributors are not going to pay fairly for what you produce (much of these by legislation lobbied by themselves) then too bad, you deal with stabilizing the grid

(though of course, household generation can destabilize the grid - but you could deal with this with variable purchase pricing)
Content consumers with cash to spare, and professionals who can work around iPadOS' limitations, or whose workflow isn't affected by them. Think digital artists, graphic designers, photographers, writers, some video editors, etc.
> His vision of the future has no sharp edges, no dark places, no erotic frisson.

This feels a bit lazy. I don't disagree, but can you name any large scale dominant media/communications organisation that does? In today's society, the largest of these organisations requires private investment and political favour - neither of these is compatible with the moral risk of associating with sharp edges, especially erotic ones.

The other side of this is that if Zuckerberg was some kind of libertine visionary, there would be outrage about dystopian privacy issues. To use the author's example, do holodecks have a solid data protection policy?
You just described the fallacy fallacy :)
There's been good webgl & webgpu work. Whats been sad is that none of this is hypermedia like. I kept hoping I could someday have some DOM surfaces I could put inside the 3d game.

Apple's been driving a "model" element for the web. Personally Im unthrilled that it's an object but bereft of an environment; there s no real space or navigability.
As usual, some people will hate this visualisation of the Twitter thread.

If you're one of them, click on a node to go to your usual interface.
Distributed SQL
„Dr. Martin Seligman, past president of the American Psychological Association, believes there are five factors that contribute to our happiness: positive emotion and pleasure, achievement, relationships, engagement, and meaning. Of these, he believes engagement and meaning are the most important. Becoming more engaged in what we do by finding ways to make our life more meaningful is the surest way to finding lasting happiness. When our daily actions fulfill a bigger purpose, the most powerful and enduring happiness can happen.“

— The One Thing

After studying the science of happiness for quite a while, this paragraph resonated a lot with me, summing it all up pretty nicely. Can recommend the whole book!
>Close the MacBook lid and use it in a clamshell mode.

... if you have an external keyboard and mouse/trackpad ...
Reminds me of Joel Spolsky’s famous treatise on Unicode: https://www.joelonsoftware.com/2003/10/08/the-absolute-minim...

This predates the de facto ascendance of UTF-8 as the standard, so he talks about many flavors.
With enough energy we can pull CO2 out of the air, and turn into a myriad of useful things[1], not just making $$ off the things produced, but also lowering CO2 concentrations. The biggest cost input is energy itself. We need MORE energy, not less, to solve the problems we have created.
Technology got us into this mess, and only new better technology can get us out of it, asking people to live worse lives just seems to me to be a political non starter.

1 (one example) :https://caseyhandmer.wordpress.com/2022/07/22/were-going-to-...
Many things can be represented as more complex structures of simpler things.

It's interesting whether a new formalism allows to express things better, unearth interesting structures not apparent using a more busy formalism, etc.

Compare the Maxwell equations in the wordy original form, and in a highly compact Clifford algebra form.
There's no money to be made in making an OS.
Back when I was a child people were literally waiting outside stores for a new Windows.
Windows 11 is given away for free.
Yes, the website is logio.org which is very confusing!
>The security benefit to consumers of blocking user scripts is probably a net positive for the average internet user.

Strong disagree. Extensions and User scripts are an unmapped wild west.

Providing a registry type system to securely vend packages/scripts is a very hard security problem.

https://www.bleepingcomputer.com/news/security/mozilla-block...

https://iamakulov.com/notes/npm-malicious-packages/
>It's also worth noting that microservices are more secure and reliable as well, since there's no vulnerable component that has access to all of the secrets nor a bunch of components that ought to be non-critical but actually are critical because anything can bring down the entire application for all other components (e.g., someone makes a sync call in some leaf component that breaks the event loop for the whole application, with failures cascading across your replicas

This is not inherently true. Whether it's true or not is down to your implementation. You can most certainly have reliability and security problems while doing microservices.
I am asking for a concrete task challenge, not a kind of site or technology.
No Pigs Were Harmed for These Pork Sausages, but They’re Real (Cultured) Meat
My google fu is failing me but here are a few of the problems.

---

Reliability

For a connection like this to work the trains have to meet, consistently, every hour or however frequently they run. This is pretty difficult, most rail networks are highly complex and delays cascade across a network. With station transfers this is okay, you can drop off anyone who needs to transfer to wait and let everyone else continue, but in this sort of moving transfer either people just totally miss their connection because it wasn't there, or the train loops around somehow and delays everyone else continuing on.

---

Practicality

Let's say trains meet at 80 mph. Assuming you give people one minute to get their bags, walk to the door, take their seats in the other train (fairly aggressive for anyone who isn't a fit young adult) that means you spend 1.3 miles of distance traveling. That means 1.3 miles of parallel track where neither train can actually stop to serve local communities.

Station transfers in comparison are fairly compact (the length of a train) and they can actually also let people on and off from the surrounding areas with appropriate exits, whereas that's not possible with moving trains.

---

Safety

We can't really guarantee two trains will move at the same speed parallel to each other. Trains are not automated to such a degree outside of self-contained metro networks, full automation is too complex to do in one shot and partial automation is still very complex and in its early days. Also whatever physical mechanism has to be tight enough to accommodate accessibility (wheelchairs can't go over large gaps) and reliable enough to work all the time; what happens if said mechanism breaks down while the trains are moving and conjoined?

---

Finally there's the matter of actual need. If you need trains to not get slowed down, you can have some express services skip connecting to local regional services at all. It turns out demand for that kind of service is fairly limited; as an example, Amtrak has tried several times to introduce nonstop DC to NYC service, but it turns out that the additional passengers do not offset the loss of passengers from Baltimore, Wilmington and Philadelphia.
Do you happen to know Linus' "first rule of kernel development"?

"If a change results in user programs breaking, it's a bug in the
kernel. We never EVER blame the user programs. How hard can this be to
understand?" - from his famous rant [1]

So Linux prioritizes backwards compat as well. It would be insane for any project relied on by half the computing world not to. MS just throwing out their registry and rewriting it would probably break a million programs and possibly break literal billions of people's computers in some way. Its a universal problem - the more dependants any piece of code has, the harder it is to change.

[1] https://lkml.org/lkml/2012/12/23/75
> Boredom is a lot easier to solve than not having enough money...The reason people don't focus on their happiness IME is they weren't brought up to

I think you hit the nail on the head but then reached an odd conclusion. The reason most people don’t prioritise their happiness is because they can’t afford to. Many people on this forum (myself, and by the sounds of things, you too) are massively financially privileged. Many of my friends are too, but many are also very much not. One of my best friends is staying in a relationship she’s unhappy in, because she can’t afford rent otherwise. It’s a shocking reminder for me how lucky I am.