skysight-inc/HackerNews huggingface dataset:
Fire codes aren't the reason that you can't build in most of North America.

NIMBYism, and the cultural obsession with low-density, single-family homes only made possible by car-centric transportation infrastructure is.

Which is also in no small part caused by a financial and tenant rights system that pushes people towards home ownership, instead of renting.
Can AI write decent book reviews?
ChatGPT writes convincingly about how to write a good book review -- and then ignores its own advice! Can the reader tell the difference between a review written by ChatGPT, and a review of the same book written by a person?
> rip it out of existence

Come the fuck off this "mature personality" shit if you're going to write like this. He proposed freezing a module no one wanted to maintain in a library specifically meant to host stuff with weaker compat guarantees, he didn't hop in a DeLorean and kill Zimmermann's grandpa.

Meanwhile, the critical project Drew insisted he keep it for is... deprecated and unmaintained!
Sure, my point is not “don't complain”, but “the current HN usage of CAPTCHA neither compels you to use it without consent, nor proposes that you train Google’s AI for free”.

That is, it is about the specific content of the complaint, not a meta-level commentary on the appropriateness of complaining about practices you disapprove of.
Does Debian depend on Go's official non-stdlib to support PGP? (No, it does not.)

> So why haven't they?

They are: https://wiki.debian.org/Teams/Apt/Spec/AptSign

Mandatory aptsign by 2025 and GPG tentatively removed by 2027: https://gemmei.ftp.acc.umu.se/pub/debian-meetings/2022/DebCo...

> my argument is neither for nor against PGP... I'm tired of hearing about how much PGP sucks without also hearing about the solution.

If you're not actually paying attention to what happens in the world around you, your argument is for PGP.
He also made a video about water kettles, which I found just as interesting.

https://www.youtube.com/watch?v=_yMMTVVJI4c
My gosh, I forgot about this one! Thanks for reminding me/us!
One change to make this library more idiomatic would be to make HyperLogLog avoid forcing heap allocation on the user.

So from this (simplified code):

pub fn HyperLogLog(comptime p: u8) type {
return struct {
dense: []u6,

const Self = @This();
pub fn init(allocator: Allocator) !Self {
return Self{
.dense = try allocator.alloc(u6, 0),
};
}
}
}

To this:

pub fn HyperLogLog(comptime p: u8) type {
return struct {
dense: [1<<p]u6;

const Self = @This();
pub fn init() Self {
var s = Self{};
for (s.dense) |*x| x.* = 0;
return s;
}
}
}

The advantage to this API is that the user can choose where to place the HLL (stack, heap, global memory). Also note how the new init can't fail anymore.

That said, in the code that I've conveniently omitted there's one big complication: when the HLL has only few items in it, it doesn't use the dense representation and instead uses a `std.AutoHashMap` to keep counts.

Unfortunately `std.AutoHashMap` is not a type that can be reasonably disentangled from allocation.

I was about to drop my idea of commenting when I realized that a very neat solution would be to also provide the user with the choice (and admittedly extra responsibility) of when to switch from a hash map to a proper HLL.

pub fn init(start: std.AutoHashMap) Self {
var s = Self{};
for (s.dense) |*s| s.* = 0;
self.addFromHashMap(start);
return s;
}

There you go, allocation-free HyperLogLog :^)

I've also come up with my own funky interface when I implemented Cuckoo Filters in Zig, for those who are interested:

https://github.com/kristoff-it/zig-cuckoofilter
This could be rephrased as "people who are different than me" and be just as accurate. It's not a good look.
Here is it decoded:

{"interval":"week","periodicity":1,"timeUnit":null,"candleWidth":4.3486590038314175,"flipped":false,"volumeUnderlay":true,"adj":true,"crosshair":true,"chartType":"line","extended":false,"marketSessions":{},"aggregationType":"ohlc","chartScale":"linear","studies":{" vol undr ":{"type":"vol undr","inputs":{"id":" vol undr ","display":" vol undr "},"outputs":{"Up Volume":"#00b061","Down Volume":"#ff333a"},"panel":"chart","parameters":{"widthFactor":0.45,"chartName":"chart"}}},"panels":{"chart":{"percent":1,"display":"F","chartName":"chart","index":0,"yAxis":{"name":"chart","position":null},"yaxisLHS":[],"yaxisRHS":["chart"," vol undr "]}},"setSpan":{"multiplier":5,"base":"year","periodicity":{"period":1,"interval":"week"}},"lineWidth":2,"stripedBackground":true,"events":true,"color":"#0081f2","stripedBackgroud":true,"eventMap":{"corporate":{"divs":true,"splits":true},"sigDev":{}},"customRange":null,"symbols":[{"symbol":"F","symbolObject":{"symbol":"F","quoteType":"EQUITY","exchangeTimeZone":"America/New_York"},"periodicity":1,"interval":"week","timeUnit":null,"setSpan":{"multiplier":5,"base":"year","periodicity":{"period":1,"interval":"week"}}}]}

I bet if they were more aggressive in using defaults it would be a lot smaller.
US also has gotten Eastern Europe and South Korea involved.

https://emerging-europe.com/news/ukraine-joins-europes-list-...
Looking forward to it :).

It seems the V port should be pretty straightforward (the repo is 880 LOC and doesn't have any dependencies).
In the spirit of curiosity - how would you go about measuring that? A counterfactual is almost impossible.

That being said - when in doubt, I favor more regulation for safety, not less.
is there any open source reference implementation for such a vm that is dynamically generated based on JS/TS?
I would argue there is a third. I'm open to taxes going up if the extra money is used effectively. Also what behavior are the funds incentivizing? If they are not used effectively or the incentivized behavior is not optimal then I am against them. For example cities like LA and SF give money to the homeless with virtually zero requirements so they are in effect incentivizing homeless people to move there and stay homeless. I am against this. I would be for spending money to clean homeless people up and get them jobs and provide shelter until they have acclimated back into society. The program would require actual proof of the participants trying to fix their circumstances. I am always for feeding and caring for homeless kids.
I'm on the fence about this. For the longest time I'd have 100% agreed with you, but more recently realized that there is value in just having my mind be exposed to the subject for a prolonged amount of time. Sometimes the more interesting insights will be mine, rather than what the content of the book was. It also helps with retention. Of course some books just still aren't worth it. My canonical positive example would be Zen and the Art of Motorcycle Maintenance which is a very high bar and obvious example.
I'm not in the bioinformatic domain but maybe there are some legacy tools that depend on some specifics of gzip.

I was thinking something like the possibility to seek through a compressed file (after having built an index). Your DNA file is probably stored on a shared folder somewhere (if it's big you probably don't want to copy it to every workstation) and you point your software to the gz file directly, it create a seek-index on the first use, and then when you need view only a small section of the file you don't have to extract the whole file.

Some more advanced compression like zstd might use some form of dictionary to do the compression/decompression, which may be bigger (up to 32MB? max dictionary size for zstd whereas lz77 used by gzip use a dictionary based on a sliding window of the last 32K token) which you may have to transfer.
I disagree strongly. In your analogy, if the compiler broke down all the time, you would probably need to understand assembly to do programming. ML is amazing today, but still kinda sucks. In general you’ll have a bunch of failures on the way to a successful novel application, so it’s more critical to understand what’s going on under the hood in ML than in your programming analogy.

If you just want to apply well known things to well known things, sure you’re right. But as soon as things go wrong, I couldn’t imagine how much more inefficient my iteration cycles would be trying to do novel work without understanding linear algebra (for some kinds of novel work) or calc (for other kinds of novel work). I think you kinda get at this when you say it’s not necessary but it helps. It’s not necessary, but it helps a lot with anything off the beaten track.
> Surprised to hear people are doing this with all the obvious potential problems.

Surprised to hear people think everyone out there have similar life circumstances to themselves.
These lower power limits reduce performance a lot on chiplet CPUs (unlike your monolithic APU). The impact is maybe a little less crass on Zen 4 because the 7nm IOD seems to use less power than the old 12nm one used in Zen 2/3.

For example, a 5600X in CB R20

PPT Freq Points (nT) Core power
82 W 4500 MHz 4350 54 W (stock)
65 W 4200 MHz 4000 43 W
38 W 2500 MHz 2400 17 W (lowest allowed)

The SoC/uncore consumes around 15-20 W on Zen 2/3, so at 38 W you only leave 15-20 W for the actual CPU part of the CPU. Meanwhile the low-load and idle savings are essentially nil because all of the idle power is the IOD/uncore.
> Most bills are introduced to Congress with little expectation they will pass

This is in part a trial balloon. If a draft is floated and canned, and nobody hears either way about it, that says something. If a vocal minority flips out, on the other hand, that makes it a priority: you've found new group to engage.
pg added that formatting option specifically for code, way back when he first wrote the software.
I was re-watching Alien (1979) with my wife just yesterday, commenting on what a masterpiece it is, even at age 44. I've gotten into 35mm film a lot lately, and have a new appreciation for these other movies shot entirely on film (the lighting, dynamic range, camera work, the physical sets, the practical effects, etc...). This is in addition to the writing, acting, and pacing. There are some real gems in movies from that era.
Lolz. I don't know Polish, but Google Translate renders these as "Kuba borrowed my pen" and "fucking Kuba borrowed my fucking pen" respectively.
I have two more. I don't think any English speaker really cares about them, but they're fun.

One: you "bring" things toward the speaker, and "take" them elsewhere. So "don't forget to bring your umbrella!" is incorrect.

Two: "like" compares, and "as" joins independent clauses. So "I wish I could communicate like tptacek does" should be "I wish I could communicate as tptacek does." A correct use of like might be "You, like tptacek, comment insightfully." A famous example of a controversial misuse of "like" was the 1970s slogan "Nobody can do it like McDonald's can." It should be "... as McDonald's can." When that came out, grammar aficionados lost their minds.
> Do what works for you. The only truth is what you can directly experience in the laboratory of your life. All the other teachings are just suggestions.

This is just your own opinion at this point. It's not buddhism. Buddhism has specific teachings that it posits as being true, regardless of whether you've personally experienced them.
The example about security guards is pretty outrageous, given the size of the penalty ($100k), the duration (multiple years), and the fact that there aren't any trade secrets involved with security guarding. Does the FTC's proposed rule just go after this type of noncompete? I thought they were targeting all of them. If so, my guess is that's their 'opening bid', and they're expecting pushback from industry. Then they'd decide on a final regulation that reaches a more reasonable position — and made it appear they had given up ground.
That's nice, i just dump them in a GH repo. I get a backup too :)
I don't know if others had this feeling but "No country for old men" felt like a non sci-fi Terminator. The relentless cold blooded death threat aspect.
And it is is just a drop in the ocean when you consider the natural radioactivity from ⁴⁰K.

It may be a local, time-bounded problem in the first few years after the accident in that certain isotopes may bio-concentrate and affect fishing and agriculture in that region.

So far as the ocean as a whole goes I'd be more concerned about chunks of styrofoam.
"All public SARS-CoV-2 consensus sequences"

That seems clear enough.
Yes, physical things degrade over time, but they don't just vanish without a warning when you update your phone.

Also, my grandparents had their rings until they died, my vinyl records from the 70ies play just fine and I have books from the 1950s that I would not deem outdated. The skillet will last for centuries maybe.

On the other hand, some of my favorite apps just stopped working without any warning after using them for three or four years, just because I updated my iPad. In one case I lost some of my work, because I could not open the file format anymore.
Oprah said it best.

If you give money, the other side will always resent you when you try to get it back. They'll think "I'm struggling to pay this, and this person had it" however irrational that may seem.

If you care enough to give, just give. If you don't, don't.
Ask HN: How can I host my own blog for free in 2023?
For compressing similar genomes, specialized tools will do better. AGC [1] can compress 620k SARS-CoV-2 genomes (19 GB uncompressed) into tens of MB. More importantly, AGC allows you to extract individual sequences without decompressing the entire file. In addition, zstd/xz wouldn't have a big enough dictionary to compress multiple human genomes efficiently. AGC can compress 300 GB human assemblies to 1.5 GB, a 200-fold compression ratio.

I agree for sequence reads, zstd is better than gzip in almost every aspect. The only problem is that zstd is not as widely available. Many Linux distros don't ship zstd by default but on managed clusters, common users don't have the root permission to install zstd system-wide.

It is worth mentioning that many mainstream bioinformatics tools can read FASTQ over pipes. You can use something like

mytool <(zstd -dc in.fastq.zst) > output.txt # bash; also works on multiple zstd input files
zstd -dc in.fastq.zst | mytool - > output.txt # general; for multiple input files, use mkfifo

Those who prefer zstd can use it now.

[1] https://www.biorxiv.org/content/10.1101/2022.04.07.487441v1
The type conversion assumptions here are real problematic. "64 bits ought to be enough for anybody"-style statements ignore integers as bitfields, large constants (eg Avogadro's number), any kind of math with large intermediate terms, all kinds of stuff.

Makes me very suspect about the rest of this project when they try to glide past all of these issues with nary a mention.
ideally the hot wire is switched, and the outside of the edison socket connects to the neutral wire, so especially if the light is switched off, you're often only in a position to get a shock from whatever is on the neutral wire, which might have been what happened in the bathroom-fixture case

commonly the neutral wire has something like 20vac rms on it for a variety of reasons

if you are ungrounded (due to rubber boots or whatever) your body is in series with your capacitance to ground, and that will commonly give you just a mild vibrating feeling or nothing at all

this 'path of least resistance' thing can be pretty misleading, because if you have two resistors in parallel, the least resistance is always the parallel resistance (i.e. current through both resistors in inverse proportion to their resistances) and not just one resistor or the other
Ask HN: How to write documents quicker?
Hi,

I'm a somewhat experience software engineer (5 years in big tech) and as such I often have to write stuff.

Note that I'll talk about writing to simplify, but technical docs are a mix of writing and doing diagrams, for which I have the same problem.

I know that I write well (don't use this post's title as an example), everyone is always happy with my docs, praising them or even using them as bar-setting for the team so there's no problem with that aspect.

However, I write extremely slowly. About 30 words per hour, most of the time. Writing is a literal mental torture for me, not because I don't like it (I do), but because I make no progress.

To more clearly explain my writing "process", I will usually struggle to start, until I get a small burst of [inspiration / motivation / productivity / ???] (I don't really know what) and I will be able to write a few lines, before my next productivity collapse. And then the cycle repeats all day long, where I will have bigger or smaller bursts (30 seconds to 5 minutes) where I make progress, followed by sometimes hours of inability to focus.

I basically get distracted all the time, by anything. Often I know what to write, but the words just refuse to come out.

The second thing that impairs my speed is that I want to write and format everything well right away. It's not that I can't draft small sections in bullet points, but if I'm writing the actual doc, it has to be perfect, otherwise I will be distracted by the extra space or the title that is formatted differently from the others.

Things I have tried:

- Putting distractions out of my reach: it doesn't help, my mind will just go wandering,

- Going to the office: it's even worse,

- Working with someone else next to me: no difference.

I am looking for suggestions of people that struggled similarly and were able to improve. For example, I remember a website that allowed you to type but not to go back more than 2 lines above to edit, which may help with drafting.

Thanks, and sorry for the wall of text.

PS: I imagine that on this kind of topics people will mention ADHD. I haven't been assessed but I don't think I have it. I was never great at focusing before, but I don't remember it being such an issue in my childhood. Also it seems like it's getting worse progressively (I'm 28).

PPS: As an example, it took me pretty much exactly an hour to write this post.
I decoded that, gzipped --best, then re-encoded and got something that's shorter at least

H4sIAAAAAAACA7VU3W7TMBS+5ykmcxuNdOlGyd3QmECCIdYWNKYKnSanqVfHNrbTNqoq7QF4Sp6EYyfpaMYtdz7H5/vOz3fsHePSoVmDYCnbIK5YxDQarnKecVezdBAxx0ucSu5YKishIpaBzAV+47lbsnR4mgxHF+dv4jgZJYPh4PV5xBaCa405SxcgLEZsrUTlKXI0AojTmYq8kD90x8woa5fAzcGxBOMmtUaqSnCJVBVuHRLDE2sJZoVujNZyJS1Ld3viLAqDBTjytGi1FBlrCccZiI4RDHmtq3KOHst+P/6iMk8qmRs6eo9rCDovhXOpKxeiOZXRh0Qs51aHBvtXVJmqXAee6pOvYSIU+DKO5/HFgMBXaiP/8i8WSZKAR2qQ6NUJLXh5wECJJFog23gZriFzioYXnw7P215vIPA0oP2+4wmYxkkHUjpD6YLKT8Vfs39x+PZz3FKSiNWXWx6Y5HGEVpb72TebQjlroMCP78csvZ+11m2wDpDepGa+UkuyUrU+QVkJx7XgSN1Ra3OwPl/dyHe0qLvWDM30l9qzetXbpT3z0htOO/oWslVhFKXvVg/XNBF7WEQl/GC9TqPB4ow9Ax7jPoEOA1ZGKwMOvZHz9YGORsw7ct8oL65w7VeXjKyyTpW3IAvsXpqty7nymt3v2nMrT2N8nj9gFoQ8uvxZKYft+r/7Mv0wuQvPhyZO1BN6zN+V9HeXJQ0sg1c3uPlxp8wqLFvv7T//Hfq/wf8Qaz/bv/gDbvc6N5oEAAA=
The "amount" of shoplifting you see while stores continue to REDUCE attempts to intervene should show you just how much of a non-issue shoplifting is to most businesses. It's more expensive for a company to pay for insurance that would cover an employee being injured trying to detain a theif or pay for an actual security guard than just to say "fuck it" to a small percentage of goods. Average shrinkage for retail is like 2%. A permanent security guard would cost like $60k to $100k a year, and yet is still super uncommon.

>Police and prosecutors would have our backs strongly.
Prosecutors still have your backs. The idea of NOT prosecuting a shoplifter is pretty much a non-consideration anywhere, and even in the small part of california that people claimed the DA did prosecute saw them voted out. It's police that just seem to ignore crime in some jurisdictions. In my local supermarket growing up, the store manager and local police RELISHED going after shoplifters. It was stupid easy, a few cameras and a bored officer is all it takes.
> For pre-formatted code leave two spaces at the start of the line

[...]

> There's no special notation for code

You just explained the special notation for code, which is so important that it is HN’s only block environment, and then turn around and deny it exists?
Can confirm that the data is often, though not always, stored in a shared directory and that yes, many tools can/do read gzip files directly which probably hinders the adoption of better compression algorithms.
exactly. At times in my life $7000 might as well be $1MM, If you take money from someone pay it back.
I grep'd for parquet and yours is the only comment that mentions it. parquet -> arrow -> AI
Ozone layer may be restored in decades, UN report says
I know you can do that, but I’m not sure how much memory it saves in practice.
* The Whole Brained Child - https://www.amazon.com/Whole-Brain-Child-Revolutionary-Strat...

* "How to Stop Losing Your Sh*t with Your Kids: A Practical Guide to Becoming a Calmer, Happier Parent" - https://www.amazon.com/How-Stop-Losing-Your-Kids/dp/15235054...
I did this for an Othello game back in the 90's. The state was encoded in the URL along with the players move. It seemed weird to encode a slightly different URL for every move the player might click, but that also meant squares that were not legal moves didn't get a URL. And that meant the mouse pointer would change when you hovered over a valid square! Another trick was to return the updated board state, but also include an automatic reload after a few seconds with the computers next move already determined. This made it look like "thinking" was going on when in fact it was already decided when the board updated on players move ;-) This was all in a CGI script. As others have pointed out, it also supported "undo" via the back button. Fun.
I recall toward the end of the amber monitor period, that "white" monitors came into vogue. These were similar to the amber monitors but used white phosphors instead of the amber ones. We sold a lot of them made by Wyse. They looked cleaner and more "modern" compared to the older green and amber monitors. They could do graphics but were mainly used as text terminals.

Not long after that, larger grayscale monitors became popular for desktop publishing. they were often used in a portrait orientation and had higher resolution than the older terminal-style monitors.

By the early 90's full color monitors were cheap enough that they started to replace all of the monochrome and grayscale monitors.
Opting out of background refreshes would mean that fetching a module version that (1) no one else had fetched in a few days and (2) does not use a recognized
open-source license might not be in the cache, which would make 'go get' take a little extra time while the proxy fetched it on demand. The amount of time would depend on the size of the repo, of course.

The background refresh is meant to prefetch for that situation, to avoid putting that time on an actual user request. It's not perfect but it's far less disruptive than having to set GOPRIVATE.
Your comment in this thread is the first time I've seen anyone mention that it was being worked on since... June 2021? This despite repeatedly raising the issue up until I was banned without explanation. I was never told, and still don't know, what disabling the refresh entails, the ban prevents me from discussing the matter further, and I was under the impression that no one was working on it. We have suffered a serious communication failure in this incident. That said, I am looking forward to your follow-up email and seeing this issue resolved in a timely and amicable manner.
The best storage format for genomics data is DNA. At some point in the future, it might actually be cheaper to just re-sequence than to store the fastq. Instead of optimizing the digital infrastructure, it might be better to just optimize the lab infrastructure for storing the physical DNA.
High-end GPUs have been around 250-300 W for a very long time (with the odd xx95 X2 Ultra Titan model consuming more). "Ridiculous power numbers of new GPUs" is a pure-bred meme.
You could measure it by people who perish in structure fires, a metric on which America is far behind Europe.