skysight-inc/HackerNews huggingface dataset:
Removal of rights is one thing that is debatable. Not giving them back when the emergency has been gone and in developed countries everybody who wanted to get vaccinated got it is clearly an overstep.
Unrelated comment, but I’m tired of the seemingly obligatory “join our discord” crap… when people used to hang on IRC it wasn’t being pushed as hard as this. What’s the point?
But it's the opinion of the article author - the article that is being linked to. And removing this makes the title nonsensical.

Unless the title is too long or is obvious scummy clickbait, IMHO titles shouldn't be editorialised.
Your argument reduces to, well we haven't destroyed ourselves yet.

... It's not a strong argument.
You're right, Javascript's undefined creates a whole new set of problems that you don't want to deal with, at least Lua didn't make that mistake.

But using False for invalid key accesses seems to be a really bad idea. Sometimes you need to store boolean values in tables. When that table access returns False then you don't have a way to tell if it was from a successful key retrieval or not. (Lua solves this dillema by making that storing nil in a table is just as if nothing really happened, which is pretty reasonable)

If Lua had a more fleshed-out exception system (The current one based on pcall() is a bit limited both in syntax and functionality), I think it would have been better to go for the Python route (throw exceptions for invalid table access). Don't know how it will take a toll on performance though, maybe that's the reason why it chose such a simplistic route for implementing tables?
"Structure and interpretation of computer programs" (SICP) by Sussman and Abelson contains a recipe for scheme interpreter that can be implemented in any language and answers this as well (well, for scheme).
In the Mind of a Master Procrastinator
To be honest, the cartels rule and own everything in Mexico (maybe not always directly, but their influence is enormous), so I don't see why avocados are special in this regard.
> such as filtering glasses or the Night Shift function

Those two are very different. Some filtering glasses can remove the entirely of the blue spectrum, while the night shift function only reduces (but not eliminates) it.
Much of the difference is due to rewriting complex numbers into pairs of floating-point variables. Probably because Lua doesn't have complex numbers?

The same rewrite in Python would not speed things up, it would slow things down.

It's more than that, though. It looks like the Lua code does only 49 repeats where the Python code does 200. It's clear that this isn't just a Python->Lua rewrite, this is a rewrite that was followed by a lot of optimisation work on the Lua code.

Despite that, I kinda buy it. I can believe that you won't get speeds in pure-Python code for this particular problem that are competitive with a JIT. numpy doesn't help, because the number of iterations varies for each point, so you can't easily parallelise. And speaking of parallelisation, he has a point about threading: Doing the computations in pure-Python would not perform well over multiple threads, you need Cython or something. And that something can apparently be Lua.
You have no idea what you are talking about. You can install any kind of distribution by copying over their rootfs. For example, I am running Void Linux on WSL2.
I think this sounds very strange to be honest. Maybe you were doing something wrong?
I see this as the only rational response despite what the truth may be - can you imagine what would happen if Meredith acknowledged that Len was Satoshi Nakamoto?

I think it is also possible Len did't tell his wife about Satoshi, or alternatively asked that she never reveal Satoshi's true identity.
It's gonna be an yearly thing, isn't it. Now with a digital pass so you need to get a paid vaccination or be restricted.

Bet my life that's what's gonna happen.
too bad he didn't know about it at all till a few years ago.

That should tell you how much relevance it has to anyone besides Intel.
Except that it's really true. This is a rearguard action and has been for a long time.

'Attacked from within' was pretty accurate, Kuro5hin eventually went that way too even if they were acutely aware of the problem:

https://atdt.freeshell.org/k5/story_2009_3_12_33338_3000.htm...
Compromising Certificate Authorities and various root endpoints is probably what’s is done since https became ubiquitous.
It is a lost cause to rationally try and sort out what if anything is chronically wrong with js, ruby, haskell, c (or any language of choice). They each have their pros and cons, and have evolved differently for different reasons. Since programming languages many times (seemingly) are like a dear spouse to its disciples such discussions generally devolve into endless and meaningless comparisons, if not worse.

The article obviously panders to ruby sentiments, and the javascript experience can obviously be frustrating to that community, as might ruby to a mainly javascript developer. Might we just leave it at that?
People brag about the number of Discord members in their community, and use it as a kind of status symbol. I do not understand it either.
Cool, good to know people are having fun.
How to store weather forecast data for fast time-series APIs
The thing that's insane to me is you can't even access any profiles without being logged in. This is public information; they've locked things down to an incredible degree and I bet every last dollar I have it's for cynical reasons and not "user privacy"
Consider alternatively: https://github.com/jart/sectorlisp/blob/main/sectorlisp.S
https://github.com/jart/sectorlisp/blob/main/lisp.lisp

This does give me an idea to do it in even less, though. I'll have to spend a weekend on it.

It's also worth noting that the 1.5 metacircular interpreter is incomplete: https://github.com/kragen/stoneknifeforth#why--to-know-what-...
Many years ago, I had to unsubscribe from the Wall St. Journal, because I had returned from the US to my home country India. It was one of the most difficult things I've had to do. It cost me nearly a $100 in International telephone calls to unsubscribe. I simply will never subscribe to a newspaper ever again.
Ask HN: Why don’t ELectric cars come with two batteries?
I was thinking about electric cars, and their recharging times while on the occasional road trip. The solution seemed obvious in my head, but couldn’t think of a reason why it doesn’t exist already.

Say an electric car comes with a small sealed and fixed battery that gives up to say 100 miles of range. This is sufficient for most uses (to work and back, may be getting around the city, grocery trip etc). Another slot in the car that is usually empty may be “filled” with a battery along the highway while on a road trip. Reaching the end of range? - just swap out the “filled” battery.

This way, a customer gets to buy a cheaper car(smaller battery means lower cost). Buyer need not worry about getting stuck with a “aged” battery swapped with their good battery because swapping only occurs on the secondary battery that they don’t own.

Environment feels a little better - users don’t hoard Lithium batteries that they do t need all the time.

Businesses have a new way of earning money by selling subscriptions to such swap batteries.

The swap battery stations may be easily setup everywhere easier than full-on charging stations. The batteries themselves may be charged with renewable energy in huge factories and distributed to remote swap stations.

What am I missing?
No doubt it will be used for that. Covid gave governments the perfect excuse to test out restriction systems, and they work.
Using Zerotier for this for quite a while now and can confirm it is working quite nicely.

TailScale might be an interesting alternative. Even more so as with headscale there is an Open Source server side implementation.
Have not tested neither of those though.
Show HN: Go-PST – A library for reading PST files (written in Go/Golang)
I do think that the main motivation of a big part of those exchanges is indeed fueled by the prospect of the things they buy getting up in value, which if you think about is the same of a social proof-of-stake that you're "cool" - you see the same with real assets with real money, like Supreme merchandising, Pokemon/MTG cards.

Supreme is for the "cool/boasting" factor. Pokemon/MTG is a mix of nostalgia with boasting on social media. Idk what Beanie Babies was about but it had a short run.

Is it an arbitrary choice? Does it require some (little) taste? I don't know, probably A or B, or both A & B.

We all buy stuff with the hopes that people will pay more for it in the future, the difference is that the majority of people exchange broadly accepted symbols like stocks, precious metals, and that renders those symbols as more safe bets - but the motivation is there if you strip off the symbol.

With that said I would never buy a "Bored Ape" NFT. Like I would never buy old Air Jordan shoes for thousands of real money units.

>If you want to appreciate art (of whatever type) what additional benefits of that art does the NFT provide?

Maybe the main value that NFT seems to provide is that is exchanged with crypto. Like I said in my previous comment, it's something people can do with the funny money.

>That speculation, like all speculation, is susceptible to people overhyping it, leading to lots of losses for late adopters.

I do agree with you, yet I need to recognize as well that this thing has momentum and a life of it's own. Even if it is simply because too many people have invested too much on it to go back (time/money), or even if they just believe in that vision...

The truth is that still this is a market that is self serving itself, to the point that they seem to be creating new protocols for that purpose. Itself has it's own problems and there are solutions for those problems, that's how value is created and exchanged. Even if the problem is "we have all this funny money and we want to spend it".

Can it all crumble down? I think it can, like many other cultural movements. But I need admit that I don't understand a big part of it, and I think that a lot of this tech literate user base of HN is on the same boat as me.
Thanks for the feedback. It's mainly UK based because most of our team is UK based. Our actual hosting is in Germany.

There is also the option to self-host and still be able to interact with users on other instances, including https://beta.peergos.net.
Communism certainly did!

(I do understand some people may find this offensive, as Atheism is considered immoral or unpatriotic in the US and other countries. I'm not making moral claims about atheists; I am one - but the "death of God" did seem to lead to new secular philosophy/ideology, some of which was dangerous.)
It's harder to find Discord communities than IRC channels. You only had to join a few IRC servers to get huge lists of often-related channels.
No. Lua here uses luajit, a jit compiler and interpreter for Lua which Python can not beat. Python has the numba package, which is in the same direction, less easy to use, more restricted, and I don't know if numba can approach luajit's speed here, we'd have to try it out.

(After working on the numpy code posted in this thread, I think Python is pretty competitive, but it requires quite a few contortions - rewriting it using numpy.)
Yes please. That's in fact what I came here for.
I use f.lux on my Mac [1] and Night Shift on my iPhone since on the latter there is no alternative thanks to Apple's limitations.

There is an immense difference between the two. Night Shift just tints the screen lightly. The colors are all still there, including blues.

f.lux kicks in gradually, but at its peak my screen is completely orange and colors are not discernible anymore.

Empirically, I can see why Night Shift makes no difference.

Edit: On the f.lux website they cite extensive research on the effects of blue light on sleep. [2]

[1] https://justgetflux.com/news/pages/macquickstart/

[2] https://justgetflux.com/research.html
The micro-soldering and what I assume must be custom (or very small batch) cabling is very impressive, but beyond that: Apple has embedded verification in their hardware from the batteries to (if I understand correctly) the screen itself. The fact that this is even possible without big warning signs throughout the OS is what I'm weirded out by.

I legitimately wish I could just be amazed at the soldering, machining, and dedication. But having to include "Bypassed un-disable-able [0] hardware verification on your own device" makes it all seem a touch more dystopian.

[0] Note that HW verification could (and in some cases does) serve the user. But being unable to bypass it on one's own device doesn't quite sit well with me.
> From backend ORMs and headless APIs to frontend site generators, package managers, and build tools—it's a miracle any of it actually works properly in production!

I think the issue is clear from this first sentence. Why are there any of these things in javascript?

The marvel is that in 2021 such a sentence can be written -- that these things are immature seems both obvious and to miss the point.
ha, as the author of most of the code on the client side (and thus those beefy requirements), yes it absolutely is possible to use an ESP32! and that’s more along the lines of the original product that inspired this!

however, this was built to be more of a glue library - take whatever device you have (Pi, laptop, IoT fridge), and plug in whatever “printer” you have (typically a receipt printer, but friends have used a rooted Kindle, or Instagram API, etc). there’s more to it than that though, as the original protocol is generic (it was built to control all kinds of devices - printers with blob payloads are a nice side effect), so it’s also relatively easy to extend if you want to bolt on other uses cases within the same network.

it was never really optimised to be the leanest implementation, but instead easy enough for others to hack on and contribute to. JavaScript/TypeScript on a Pi feels like a reasonable compromise, with heavy emphasis on compromise! so, by focusing more on community and simplicity, it’s fun seeing the weird ways people extend it :)
Worse is better, it still seems.
RocketChat is pretty much self-hosted Slack, and it works great.
Chancellor of Austria Sebastian Kurz steps down
He did add a headphone jack to an iPhone 7 tho: https://www.youtube.com/watch?v=utfbE3_uAMA
Sure, in the same way that your argument "reduces" to chicken little. Isn't this a fun game, creating ridiculous strawmen justifying it with this word "reduces"?
Batteries are heavy. A 100Ah battery weighs 25kgs. Cars have much bigger capacity batteries.
That has been my experience too. Using an app like Flux https://justgetflux.com/ to change the "warmth" of the colours on the display definitely has a soothing effect on the eyes, and reduces strain on it. But I too don't believe it disrupts my sleep in any manner. What does disrupt my sleep is when I am doing something interesting in the computer or phone, and my brain tries to fight off the sleep - I think addiction to social media, games etc. are a better explanation to why people are losing sleep to computers and phones than the "blue light effect".
Out of curiosity is there anything I can view to compare the two styles?
Why would it? Most people don't want that experience...
> People, and especially geeks, like to talk

Is this backed up by anything?
Not a logician, but it’s the first time i’ve heard Gödel incompleteness being about trying to say something about syntactically invalid formulas.. Do you have more pointers on that ? it makes me curious.
Well, all I did was search "GERD" in the comments; I found out that GERD's linked with inflammation, and went down the rabbit hole about Wim Hof, keto/carnivore, probiotics, etc. Helped a lot, though I still sleep around 6h a night and need to lose some weight, so I'm not worried that it hasn't been completely resolved yet.
We have something like that in the UK, it shows you all the legislation and tracks changes made to them over time: https://www.legislation.gov.uk
In this particular example, Python has the more wordy `x = 3 if x < 3 else x` which you'd rather write as `x = max(x, 3)` to demonstrate Python's muscles in terms of useful builtins.

About lambda syntax, to me it would be far more important to allow multiline lambdas than to have a shorter keyword.
One thing for sure is that life becomes non linear quick, people who have just the right foundation in their 20s will grow solid beneficial experiences (SO, parenting), social status (these days most companies are parenting-friendly).

If you're out the system runs a bit against you, as is time, but now you're fighting harder, alone.

That said, nothing is life is guaranteed so..
I know the following technically violates the guidelines because I will take about voting behavior but HN itself hasn't been sticking to its guidelines since forever and no amount of wishful thinking will prevent people to vote based on political alignment rather than "productive participation":

This was literally the least offensive, non-political and middle of the road way to explain this yet it keeps getting downvoted and now sits at -2.

But HN is a place of intellectual curiosity and doesn't have a racism or sexism problem. People just come here to share interesting facts and neat hacks and everything is apolitical. It's just a coincidence that openly white supremacist comments don't even get flagged and anything even remotely acknowledging racial issues gets downvoted. No, sire, nothing to see here, move along.

Ceterum censeo HN bad.
> Didn't each shuttle cost several billion dollars to refurnish in between launches?

No. The launch costs of the Space Shuttle include infrastructure and development cost. Original cost projections were based on up to 50 launches per year.

With an actual launch cadence of just ~3 launches per year, accumulated costs skyrocketed when distributed over all launches.

Another factor was the heat shielding, which didn't meet the requirements for fast inspection and maintenance due to its flawed design - a flaw that was addressed by Soviet Buran by the way. It remains to be seen whether SpaceX manages to get around this problem in their latest design.

> There will certainly be a market for this [...] and the international community begins to build and man the next generation of space stations.

Plural even? That's a bold assumption. Every commercial venture relies on incentives. There's currently only very little incentive to build crewed space stations.

There are basically only three major applications that ware known to benefit from micro-g environments: optronics manufacturing, growing natural organs, and tourism.

The first two have the same problem in that it only works out if mass production can be achieved. Otherwise getting raw materials to- and finished products back down from orbit is way too expensive for it to be economically feasible.

Tourism cannot be a mass market either. It's not just the price that makes it a very exclusive niche market, but also the medical requirements. William Shatner for example might be able to survive a suborbital hop with Bezos' space dildo, but wouldn't pass the medical exam for a full blown orbital flight, no matter how much money he'd pay.

Another factor for the tourism industry is maintenance and staffing. Even with 3 month crew rotations, the costs for just staffing a space station would be quite substantial. For reference, the crew-to-passenger ratio of luxury cruise ships is between 1.3 and ~4 [0].

Tourist space stations would be in that category, too for various reasons so I'd expect similar ratios there.

[0] https://www.aboutluxurycruising.com/understanding-crew-to-pa...
I wonder what could be more interesting
The normalcy bias of people combined with the pure arrogant hubris that the USD can not collapse will lead USD collapse

The people in charge of the money believe the world would not dare change to something else. Bullshit

The history of the world shows empires collapse. To believe the US is somehow immune is moronic

Having our levels of debt combined with unrestricted spending, combined with currency minplulation / creation is 3 strikes

The world has already sent a singal we have too much debt and too much spending as they have stopped buying our debt so the fed has to buy it all with money created from thin air

It also ironic you use monarchy anology here. I am sure you are correct that the king also thought they could do what ever they want right up until the peasants chopped the king's head off in revolution. As the blade came down I am sure he was thinking "this is not possible for i am the king "
The Python-only version can be sped up using vectorized numpy operations:

import time
from PIL import Image
import numpy as np

def PyMandelbrot(size):
t1 = time.time()
xPts = np.arange(-1.5, 0.5, 2.0 / size).reshape((1, size))
yPts = (np.arange(-1, 1, 2.0 / size) * 1j).reshape((size, 1))
cs = xPts + yPts
z = np.zeros_like(cs)
red = np.zeros_like(cs, dtype=np.uint8)
mask = np.full_like(cs, True, dtype=np.bool_)

max_idx = 0
while max_idx < 199:
np.putmask(z, mask, np.multiply(z, z) + cs)
np.putmask(red, mask, red + 1)
mask &= np.abs(z) < 2
max_idx += 1

dt = time.time() - t1
print(f"dt={dt:.2f}")
zeros = np.zeros_like(red)
pixels = np.dstack((red, zeros, zeros))
Image.fromarray(pixels).show()

if __name__ == '__main__':
PyMandelbrot(1_280)

On my machine (Core i9, Win 10, CPython 3.7):

> python .\mandelbrot_orig.py
dt=32.01

> python .\mandelbrot.py
dt=5.86

I'm sure my version can be improved upon.
It will happen if we tolerate it. Bi-annual COVID booster shots, for life, for the entire population. Big Pharma's wet dream. No employment, entertainment, travel, or shopping if you resist. Constant government surveillance - 'contact tracing'.
I did web dev for a few years using Angular + various other tools, and yes, it was nightmarish.

I had to come back to it briefly recently. But using "boring" Typescript, esbuild and preact, I have to say the experience was an immeasurable improvement. Verging on pleasant even. Everything was well-documented with strong Stackoverflow coverage.

So, boring > shiny
Yep, The Economist is the weekly print newspaper I subscribe to :)

But my problem is that I have trouble avoiding checking news websites on a more frequent basis. (EDIT: And that includes some online articles from The Economist... which don't seem to come in on a purely weekly schedule, right? Though maybe I'm mistaken.)
Yes, me. Windows is by far my preferred desktop OS, but on the command line I greatly prefer Linux, bash etc.

So I use graphical stuff in Windows (JetBrains Rider, VSCode, MS Office, Firefox etc), with all my dev files in WSL2. Works great, the vest of both worlds!

Previously I was using Git Bash on Windows, which actually worked pretty well too (apart from occasional file system path issues), but WSL2 takes it to another level.
GHCQ? The mens fashion magazine is tapping internet cables? Why?
Some people are convinced it's the latter:

https://news.bitcoin.com/the-many-facts-pointing-to-adam-bac...
The safest way to do this is to step out in daylight when the sun is bright. Take a brief walk. You will also get a boost of Vitamin D that will cheer you up. Interestingly, in Yoga there is a pose called surya namaskar (salutation to the sun) that is supposed to be done early morning when the sun rises.
We should inform Apple that we won’t buy any more iPhones until they provide USB-C charging for it.
Try once a decade: https://swprs.org/wp-content/uploads/2020/10/sweden-monthly-...