skysight-inc/HackerNews huggingface dataset:
Isn't `weak_ptr` the same as `sync::Weak` in Rust? There are a few places I've seen this in use. One of them is if you want to build a tree of data you can traverse in any direction. E.g. parent -> child and from child -> parent again. One of the directions must hold a `sync::Weak`, otherwise we leak memory.

We've been going around this issue by storing flat collections instead of structuring the data as a tree. We for example have parents and children in adjacent vectors, and parent only needs to know the ids in the children vector to be able to iterate over them. In this case you can do a data structure storing the id values that are `Copy`, meaning this whole data structure can be `Copy` and is super easy to reason about.

The other use-case is a database connection pool. When you take a connection out from the pool, you get a reference to the pool itself. The pool is quite often internally inside an `Arc`, and the connection gets wrapped into a guard object holding a `Weak` to the pool. With RAII when the connection drops out from the scope, the `Weak` is checked is it still valid (is the pool alive) and if so, the connection is returned back to the pool.
> but the worst an exploiter can do is hit the edge of the sandbox and crash your application, instead of pwning the user's system.

That is still exploitable. Let’s say you have a web app and the js code interacts with the wasm output - if the latter is exploitable, js code may be as well and it can be catastrophic if it is some deeply personal thing, or your bank account. And that can all be controlled by data alone, e.g. if it is a PDF converter or something.
Reef ‘symphonies’ provide signal to coral health – with help from AI
Getting Started with Home Manager for Nix
Oh so we're comparing paper pushers to brain surgeons now? Guess I've found one eh?
$3000 a month for a modern building, good one bedroom? Not a studio.

In SOMA/Mission? That's genuinely somewhat affordable for tech workers.

You'd get a terrible studio in Manhattan for that, plus all sorts of fees.

San Francisco's reputation is letting itself down. The house price bubble must only be for 3BR family homes with a yard in San Jose/Palo Alto.
Pretty sure IBM mainframes are still watercooled, though I don't know the specific method
the point is to impress while delivering, not delivering to impress. perhaps a subtle difference, but of huge importance to priorities of the individual.
I can very well imagine there is lots of non AI/ML code that smart people could make a lot faster on a GPU. I doubt there are anywhere near enough smart people to do that. I also imagine Nvidea might like to overstate the total potential.
Well this seems like a big deal. "Needs a database" has been an ongoing pain point for working with serverless apps. Staying in the postgres command library, if it works, means you can now just prototype and assume "postgres will be there".

I have a couple of apps I would've used this exact service for in the recent past. Looking forward to trying it in the future.
Toronto faced a similar issue of antiquated electronics with its last set of retired street cars which used (1970s) state-of-the-art silicon-controlled rectifiers for propulsion. However, replacement parts stopped being made into the 1990s and 2000s. In the last days of operation, some units were cannibilized to get other broken down units going as replacement electronics were simply not available and could not be jerry-rigged from other off-the-shelf parts.

(1) https://stevemunro.ca/2018/06/07/will-toronto-get-more-new-s...
Homeless people move from other states to California because it is easier to live as a homeless in the Cali weather.

So that's just fortunate for you. California has to solve its problems, it is the hand that it was dealt to them and they have to make the best out of it.

If it is not suitable for you to live there, it is fine.
From Argentina to Nigeria, people saw Terra as more stable than local currency
Seems to be hit and miss on mobile web (I can trigger the 'i' to show but don't see it in all views).

Currently travelling so will investigate further when somewhere appropriate (may be cached on my phone, something specific to mobile web, etc).
Whatever your thougts on luna collapse, whoever says it was perfectly predictable and didn't in fact predict it and short it is a liar.
Absolutely this.

The out of towners, who are mostly Blackrock, is just a fella with a spreadsheet tracking new dwelling approvals vs demand.

All the Bay Area has to do is approve new dwellings. The issue is the politicians are landlords with investment properties.
How it works is:

PostgreSQL WAL is sent to 3 'Safekeeper' nodes, which provide temporary persistence of WAL on their local disks. This allows us to provide low commit latencies.

After Safekeepers acknowledge the WAL, a PageServer will receive the WAL from these Safekeepers and transform it into LSM-tree "Layers" - blocks of lookup-optimized changelogs, which (when complete) are sent to S3. At that point, the data is considered fully persisted against most, if not all, outages.

The PageServer (which serves as the long-term data server for the running compute nodes) maintains a local cache of Layers. Still, by design, that is only a cache -- it allows for fast responses but is not strictly necessary for the persistence model.
> honestly life is not any different. I just save most of it

Honestly, it feels like you don't know what it's like to not have money? That kind of financial security makes a huge difference.
This week in KDE: Resizable Plasma panel pop-ups
Well that's not what the parent criticised, it was the range. It's not a replacement that you can treat exactly the same way but it does have other advantages. One, you don't need to detour to refuel before you leave. I don't know about you, but my nearest gas station is about a 10 minute drive in the opposite direction of where I want to go when I'm driving any distance trips, and always has 10-20 minute queues on Friday afternoons/ weekend mornings.

> If I'm doing a long drive of 100 miles, I now need to make sure I recharge before coming back to make sure I'm not stranded.

If your car has a range of 220 miles, you can do a 200 mile round trip without recharging in between. If 100 miles is considered a long drive for you then an EV is almost guaranteed to be good enough in range for your normal usage. If you're driving 250 miles or so in a one trip, you're likely stopping at some point along the way for 20-30 minutes _anyway_.

> I can't just have a friend drive out with a gallon of battery to get me going again.

Which friends of yours would you call to drive 100 miles to give you a fuel top up if you ran out on the way? Frankly if one my friends called and told me they ran out of petrol 90 minutes away from me and they wanted me to come rescue me I'd help them call for recovery, not drive 3 hours and go get them
I am kind of ashamed to bring this anecdote in a comment to such a high brow article, but it should be noted that "Ode to Joy" was the villain's song in the first "Die Hard" movie. It's played when the bad guys finally open the vault. The chief villain, Hans Gruber, is himself, of course, German and has received "a classical education".

(The director, McTiernan, had noticed the use of Ode to Joy in A Clockwork Orange and was a big fan of all things Kubrick's).

Using that music for the villain also plays beautifully in building some moral ambiguity; it can be argued that Gruber is in fact the protagonist, trying to achieve something (and succeeding, when the vault opens), while John McClane, who doesn't want anything and isn't even happy to be there, is the antagonist.

But then in subsequent movies, the Ode to Joy somehow becomes the good guy's song, which is super weird because McClane is anything but German, or classically educated, or... educated.
> The ability to jump between worlds

I feel like it is not possible from low level language, but contrary, it is possible from managed languages. It is easier to give a small escape hatch in a GCd language to allocate n bytes and manipulate it as if you were in C, then to add some hacky semi-GC to C/C++/Rust. Don’t get me wrong, unqiue pointers are really cool and useful, but shared pointers for example can’t be that painfully implemented without full control over execution (thinking of circular dependencies here).
Here's one more: It's not Google.
Sorry, cannot edit; Yugabyte (ios spellcheck).
If everyone gets the benefit, does anyone really get the benefit?
In a zero-sum game of prospective home owners bidding against eachother, if both of two opponents the option of longer mortgages, does affordability actually increase? The sticker price just gets bigger.
A different comment suggested they compress the green channel, and then compress the red and blue channel as differences against the green channel.

This makes a lot of sense to me, since green is sort of 'luminance'. It is like a poor-mans LAB color space that exists before demosaicing.
This looks great. Does it support streaming to Airplay devices?
I'm tired of this doom and gloom. Things have never been better for the average person globally. Someone in relative poverty today lives better than even the wealthiest people a few hundred years ago.
The issue with a full Linux system’s overhead is that if there are any new security vulnerabilities the situation could blow up in your face (e.g. the system is used to send spam, or host malware), so you need to maintain it at least minimally. With a serverless cloud architecture at worst it’ll stop working.
I'm a firm believer in that any team that actually works together is greater than the sum of its parts. Teamwork is simply a quality multiplicator, we don't produce great work in a vacuum.
I'm one of those.

I'm more interested in the comments than the posts.
Any suggestion for a good book(s) to study and understand Homomorphic encryption ?

I prefer a book format and haven't yet come across a good one on this topic yet.
> I think the state mainly exist to know what has been created in the past but since been deleted from manifests and therefore needs to be purged. The caching/performance argument is rather weak, because Terraform refreshes by default anyway before any operation.

Beautiful summary.

For resources with flexible tags, one could easily imagine tags like Kubernetes's:

terraform.io/name
terraform.io/instance

However, for tag-less resources you have no choice but to store state to map real-world IDs with what is in the config.

I wish Terraform "tried harder" to avoid state when it can be avoided. Perhaps it could introduce some soft state, where deleted resources are refreshed by looking at tags and not state.
This is something worrying me, looking for a junior role. I was a teacher for 5 years (math and physics) and recently went back to get a masters in Theoretical Physics and Applied Maths, mostly leaning towards the latter. Lots of data science-y stuff and mathematical modelling. Been applying to jobs for a while now, and no luck unfortunately. Wondering if I should just give up and go back to teaching, especially as I can return to my old school which was laid back and not horrible (and I didn't hate teaching), or keep pushing through. I've got a runway of about a year, depending on how reasonable the housing I can find in Ireland is (not very).

Part of my issue is I'm also looking in Ireland, where I'll require a visa, even if it's a critical needs job so they're easier to get. Does hurt, but I haven't had any luck with my applications in America either.
This is really a clinic on the dereliction of the USPTO and erroneous court rulings that have led to software patents.

But... the fact is that Red ripped off JPEG2000 and are now suing over it. And why not, when they're abetted by a corrupt patent regime.
Warning: Objects in this mirror may appear uglier than you wish.

That algorithms trained on human biases exhibits human biases is no
surprise. There are no neutral images. Unless you point cameras
randomly at any and all objects in the world, every single training
image must pass through the filter of human selection. Unlike our ears
and microphones that are omnidirectionally receptive we point our head
and eyes at specific objects, and the camera is a technological
facsimile of that process. When it comes to Art, to paintings, one
could hardly choose a stronger filter for the inherently human
elements of the visual psyche - even if you limit it to bowls of fruit
and sunsets.

> Imagen can be safely integrated into user-facing applications

I am intrigued by the use of the word safely here. Safe for whom,
from what and to what end? Micrological thought control? To hide us
from the truth about our own psyche, individual or collective?
This sounds really interesting! I wonder what kind of scaling use cases neon is good for. Is it e.g. good for custom scenarios like a geospatial timeseries database on top of postgres?

We have admittedly not really a clue about current database cluster tech as we are IoT/ML researchers, but we are running a custom timescaledb cluster that receives constant nonchunked write load from a lot of devices and may encounter some long running queries on an around 500GB DB filled with geolo (even timing out if users are too creative), why we splitted into a single ingress master and multiple outgres WAL readonly replicated query clients to relax the consistency and sync, that seemed to be killing us (we need postgres because of postgis and have no capacity to rewrite the front-end). I wonder if neon would be good for such a use case and if it easily supports postgres extension like timescaledb hypertables and postgis). Most of the time our system just measurements, but sometimes we really need to scale up for PoCs, which makes dimensioning really hard (for us).
> Just my experience, YMMV.

Indeed. IME (around 10y C++, mostly c++14 and c++17, and 6y Rust), I measure x2-x3 velocity in Rust, a lot of which comes from the tooling, a part of which from ub-freedom and much easier and safer parallelism, and the rest from the expressive type system and functional polish.

This is for initial development. Factoring in the maintenance over the years I suspect it tends to an order of magnitude of difference.
While there are people who are indeed nitpicky, unfortunately I do think that it crossed the line. The specific time is not the main message: the point is that extra time hinders emergency response, and it can be reasonably interpreted that "half a minute" is a granular measurement.
More generally: https://github.com/StevenBlack/hosts
It slows my shell start-up a few hundred milliseconds, but I keep a nag in my bashrc to list changed files.

yadm_diff=$(yadm --no-pager diff --name-only --exit-code)
if [ $? -ne 0 ]; then
echo -e "\e[1m\e[91m[yadm] \e[0m\e[92mThese config files have been modified:\e[39m"
echo "$yadm_diff"
fi
> Not a lot of attack surface for memory management problems to show up.

A single bad pointer arithmetic, out of bounds access can wreak absolute havoc.
Sneedacity debacle.
Firefox is the best
Self Shredding Bash Script
This bash script deletes itself using Unix Shred after successfully running.

This can be used to reduce the chance of leaking sensitive information contained within.

https://en.wikipedia.org/wiki/Shred_(Unix)
> they’re clearly struggling

Currently at $0.999 USD. Is that really your definition of struggling?

https://trade.kraken.com/charts/KRAKEN:USDT-USD
> On that $5/month VPS there's management overhead - you need to have at least basic Linux knowledge

Don't you need that as well as cloud-specific knowledge if you go serverless?

> and ideally more than that to know not to do stupid things like chmod 777 and database exposed on the public internet.

You still need some arcane knowledge to make sure your serverless doesn't experience cost overruns, right?

IME (your's obviously differs), the amount of cloud-specific + vendor-specific knowledge needed to avoid using a $5/m VM is a lot more in volume and a lot less in stability[1] than learning basic Linux once and using VMs everywhere[2].

[1] How the different cloud providers bill, when they bill, how to control your limits, etc changes much more often than knowing how to keep your server patched. Knowing how to get your serverless DB going on AWS doesn't help when you want to use Azure. And each cloud vendor regularly requires you to update your knowledge. Knowing how to keep a PostgreSQL-on-Linux up-to-date can be learned once and used for years. Even if running a managed DB, you'll still need to gain some of that knowledge anyway.

[2] Once you get to a scale where treating your machines like cattle rather than pets, you'll obviously have the team required to use cloud stuff optimally.
You said you would be interested:

https://butterflyeconomy.blogspot.com/2022/05/place-cutlure-...
We've built our current cloud offering on k8s, and that is our only scale-to-0 implementation.

That does not mean that you cannot run Neon outside k8s, but we are not actively maintaining nor supporting other hosting options.
One more reason: firefox will work on older Macs.

Case in point: Chrome started to misbehave on my fathers rather old Macbook (missing root certs, refuses to render google drive, etc...)

When I open Google drive, after being a completely cryptic (to a non-tech person) set of error messages, I realized I needed to upgrade Chrome.

I tried to upgrade Chrome and was told I'm on an unsupported version of OSX.

I tried to upgrade OSX and was told, no such thing exists on this older hardware.

Lo and behold, firefox has none of these issues.

Ditch Google as soon as you can, and Apple as well.
For sites that are running in CKAN using the datastore plugin on CSV/tabular resources, there is essentially a sql endpoint to make queries against that data. There are also automated conversions of that data to csv/json/xml. In my experience though, there's not a lot of activity around those apis -- people tend to just download the data.

(CKAN is an open source, traditional web app style (flask/jinja/postgresql) open data portal that powers a bunch of open data portals, including data.gov.ie)
I very much disagree that we should take what he says at face value. That has never been a good strategy for predicting his actions in the past.

I'm also not sure what I think of the Twitter purchase. It's been good fun to gag people I don't agree with so I don't have to listen to them, but whenever I get into a (self?)uncensored space I feel the anger and resentment boiling over all around me. I'm pretty sure we can't keep the Overton Window closed this tight for long.
I'm not sure about quicker. Doesn't scrapy use elementpath?. which converts a css query to an xpath under the hood as there is no complete CSSOM available for python. Likely as there is no modern standards based python dom to operate on so doing it on lxml tree is probably the best option. I find the main difference is xpath can return an attribute value where as css returns the node. You can use either from the terminal in my lib... https://github.com/byteface/domonic (as it uses elementpath like scrapy)
Mozilla? Thanks but no thanks.
The majority of the hate towards systemd comes from hating Pottering attitude.
There are plenty of commercial chat apps (particularly ones embedded in other applications) that use IRC under the hood. You don't always know that this has happened, though.

In fact, almost every non-IRC chat app around starts out as some variant of "trying to improve on drawback X of IRC." For a long time, IRC was the default choice and you only did something different if you wanted to fix one of the problems with IRC.

I hope matrix can become this new default.
Perhaps categorisation itself is inherently prejudiced? It's part of how the brain works.

Like how some people will say they are colour blind and others that you must see colour, both are about categorising (and the application of) the world.

How does an AI deal with human-like categorisation?

Perhaps in this story, the technology is too advanced for the culture at the moment.

Or maybe it's political - the company has had issues with dealing with stereotypes before and employees. The issue wasn't whether the stereotype was truthful but whether it was politically accepted or not.

In other words categorising things is at least personal and if today's politics is politicising the personal, then categorisation is political.

It may be actually always impossible to have an impartial AI. Maybe the future will be artificial lawyers of AI presenting their biased side and other biased AI deciding which arguement is best? Maybe the future of AI is a replication of humanity, good and bad. Perhaps AI will believe in God rationally.
Another option if you want to offload the tiles from embedded in your docker image to static file hosting would be to convert the mbtiles output to pmtiles [1]. Then just upload the pmtiles file to s3 or similar and use the maplibre plug-in to read tiles directly from that large file using byte range requests without a tile server.

There’s a python utility to convert mbtiles to pmtiles, but I’m also planning to add native pmtiles output to planetiler soon [2].

[1] https://github.com/protomaps/PMTiles

[2] https://github.com/onthegomap/planetiler/issues/98
There were Bayer sensors before Red.

If I remember correctly, three-chip cameras became impractical at higher resolutions because of the focusing problems that resulted from refraction. Red, green, and blue wavelengths refract at different rates... which was a problem when they're all coming through the same lens. I don't remember details beyond that.
Ditch 'em all — Microsoft, Apple, Google, and Amazon (the "evil MAGA"). It's like when folks complain about CNN or Fox News but keep feeding the beast by paying for subscription television: Stop hurting yourself, folks!
This is why I would just stick with

<input type="date">

and let the user agent deal with that complexity
I find Edge is a nice alternative
Ask HN: I submitted my startup(ShowHN)follow rules but it was flagged in seconds
Yesterday, I published my startup for the first time here with (Show HN) and before publishing, I read the rules related to it and checked several times that nothing was violated. In fact, the text pattern I wrote was quite similar to previous launches (Dropbox, WebFlow, etc.).

If someone does not like a startup, why should he flag it? Instead of leaving a comment!

Or do I have to collect a certain number of points before publishing?

After more than ten years of following YC and the startup school and reading PG blogs about startups and stories about lunching in HN .... It was really disappointing.

Samples:
My YC app: Dropbox - Throw away your USB drive (YC S07)
Show HN: Codecademy.com, the easiest way to learn to code
(YC S11)
Show HN: Firebase, a scalable real-time backend
(YC S11)
Show HN: Webflow - Design responsive websites visually
(YC S13)

My Post:
[flagged] Show HN: Build, manage, and scale your ecommerce visually (selldone.com)
I saw a job posting recently looking for senior developers with 3 years of work experience. I mean, I have 3 years of full time experience + a little more experience working part time and internships, and I would consider myself a junior dev.
We wrote a custom storage layer for postgres, so in our setup, postgres node (k8s pod actually) doesn't store any data, and it is easy to start/stop/reschedule it. So while we actually are DBaaS, the closest analogy here is Aurora or Alloy, not RDS-like setups.

A bit more details are on https://github.com/neondatabase/neon
I’m sure you know it but in the majority of cases JIT-compiled languages run bare-metal machine code just as well.