skysight-inc/HackerNews huggingface dataset:
I recently wrote a toy JVM implementation in Rust where basically the whole Java-semantic memory management has to happen without the borrow-checker’s guarantees.

But contrary to expectations, I didn’t have many unsafe usages — they were all hidden under some abstraction (like allocate_object function of an ObjectPool), there is perhaps 7-8 in the whole (semi-partial) implementation? (Though it doesn’t yet have a GC, so there is that).

So all in all, in my anecdotal experience one can reasonably well hide the unsafe usages and then use the good expressivity of the language to combine these APIs in strictly safe ways. I also ran the program regularly through MIRI (a rust AST interpreter, which is similar to Valgrind in goals for my use-case) and whenever I found a memory bug I could pin-point it to a few lines of code at most, greatly speeding up debugging.
I think those people would say to wrap the stopProgation in a function named.

doNotTriggerEventInFoobarJS()
Also i think big chat apps will be surprised how few of their users switch. I still see open source projects regularly moving from rocket.chat to discord for the UI.
Been using this as my music player for about 3 years now (i've switched to it from foobar2000).

It has very low memory footprint and works great. This is the app that "showed" me how great TUI apps are and i wish more TUI apps would exist as equivalent to GUI ones.
auto* is just to indicate to the reader that your_malloc for sure returns a raw pointer and not some RAII type already.

std::vector::push_back can throw an exception, if for instance you just allocated 2 gigabytes of memory before and it does not have space to reallocate its internal storage:

std::vector<int> allocation_counts;

auto get_mem(int n) {
auto* memory = your_malloc(n);

// if this throws: the function exits there and "memory" is lost forever
allocation_counts.push_back(n);

return memory;
}

A simple way to "RAII-fy" it would be, assuming a `your_free`:

// Typedef this somewhere
using your_ptr = std::unique_ptr<void, decltype([] (auto p) { your_free(p); })>;

auto get_mem(int n) {
// encapsulate in your_ptr
auto memory = your_ptr{your_malloc(n)};

// if this throws: memory's destructor is called which frees the memory
allocation_counts.push_back(n);

return memory;
}

Or if you want your custom RAII type for some reason:

// memory.h or something
struct mem {
mem() = default;

// copy is not meaningful here
mem(const mem&) = delete;
mem& operator=(const mem&) = delete;

// move
mem(mem&& other): ptr{std::exchange(other.ptr, nullptr)} { }
mem& operator=(mem&& other) { ptr = std::exchange(other.ptr, nullptr); return *this; }

// allocation & deallocation
explicit mem(int n): ptr{your_malloc(n)} { }
~mem() { your_free(ptr); }

void* ptr{};
};

// your code
std::vector<int> allocation_counts;
auto get_mem(int n) {
auto memory = mem{n};

// if this throws: mem's destructor is called which frees the memory
allocation_counts.push_back(n);

return memory;
}
Your comment is really hard to follow. I'm not sure if you think I am critical of EVs in general. I am just making observations about Sydney.

I'd 100% drive an EV if A) I could afford it (or want to spend that sort of money) B) I could charge it. Neither of those things are true.
probably going to be an expensive boondoggle for TSMC, politically necessary though it is. Reminds me of the Wisconsin / Foxconn project in 2017. Re-shoring is difficult, especially when artificially induced by China bad hysteria
I have bought three Tesla since they first came out. I love the cars, dispute imperfections they are still the best I have driven. But - I’m embarrassed to have any association, however remote. with Musk.

There were plenty of warning signs, but it’s wasn’t until Covid (“Silly, it’s just like a flu”) that I couldn’t look away any more. Since then his megalomania has only grown. Where does it end?
Yes, we are discussing either simply using Postgres replication to move data to other regions and use our proxy to rout reads to the datacenter closer to the user (like fly.io). This will have issues with supporting more than ~5 regions.

OR we can separate storage from replication and purpose build a multi-tenant replication service. This will support as many regions as you want (over 200) but it's more work. We will publish an RFC for that.
I also have a tranche of quant folk on LinkedIn but I always assumed they were either selling snake oil or if the roles really were that lucrative, there’d be a work-life balance clash. But it’s not my field, so this is more a gut feeling.
As usual, it depends.

GC's don't exist in abstract, and there are plenty of GC enabled languages that also have value types and manual memory management capabilities.

There is no need to throw everything away when the right GC enabled language is chosen in first place.
Under a fractional reserve system they would simply lend the money, not spend it as you earlier said.
And more importantly, how do you tell in the limited time window the patent examiner has ([1] claims it's as low as 19 hours.)

edit: [2] has a more in-depth look at the problem

[1] https://www.oecd.org/site/stipatents/5_4_Frakes_Wasserman.pd... - "on average, an examiner spends only nineteen hours reviewing an application, including reading the patent application, searching for prior art, comparing the prior art with the patent application, writing a rejection, responding to the patent applicant’s arguments, and often conducting an interview with the applicant’s attorney"

[2] https://www.patentprogress.org/2018/03/06/granted-19-hours/
Just because you will not be able to make more Bitcoin doesn't mean that you will experience no inflation.it just means that it will express itself different.

'Inflation is the rate of increase in prices over a given period of time'.

Either this will break Bitcoin because it is limited or the Bitcoin domination will change.

Already people are no longer buying one Bitcoin but subbitcoins like 0.01

Edit: and just in case you want to argue that this is deflation: Deflation is also bad. But BTC might reach a fluctuation point were it would see deflation and inflation.
I'm not the normal case (dropped away from uni due to personal issues, lucked out getting better work than some of my compatriots graduated into 18 months later) and I've been in work for two decades & change (working on the same family if products, though I've been in several companies due to buyouts and such over the years), so I can't speak for the junior looking for work.

One bit of advice I might suggest though is to consider the industry you end up working in: for instance those of us in companies targeting regulated industries tend to weather financial storms a bit better than others because the need to follow regulations doesn't fall away in fact if the behaviour of an industry is seen as a cause of a crash (here's looking at you, sub-prime lending) then regulation will increase and non-tech companies will want some way of implementing/monitoring/automating compliance with it.

It might not be sexy work, but it is relatively recession-safe work.

Though as others point out: networking, and just being good at working, and good at adapting to change, are important too. Even in a relatively safe position the cost cutting axe may fall (due to a slump in sales, or post-merger, etc.) and how well you work with the rest of the company or how key your experience & flexibility are seen as being, can be far more important than pure technical skill when it comes to keeping a safe distance from that blade.
I think things like the personalized timeline and comments reactions may be considered toxic by some people.
Normally, I’d agree. But on the other hand Musk has been working overtime the last few months to wreck his personal brand.
We will send you an invite code soon. This is a good start and also RFCs on github. We will be publishing more and more
Yes, it still requires VACUUM. I believe Aurora does too.

It would be cool to push down at least parts of the VACUUM down to the storage layer, but it would require more invasive changes Postgres code, which we try to avoid. Maybe in the future. Ideally though, I'd like to improve PostgreSQL itself, to reduce the need for VACUUM in the first place.

Disclaimer: Neon co-founder
> There are both technological and non-technological reasons why you’re lucky to get an international wire done in less than 2-5 days

What are the technological reasons? I can transfer EUR between different euro countries in a matter of minutes. I thought that transfers were only ever slow because of regulations, AML etc.
Given how long GC enabled languages with manual memory management capabilities do exist, 10 years ago there were already options available, D would have been an option.
On top of that the patent requires the Jpeg2000 compression algorithm to be useful.

If the choice is between the current state of affairs and no software patents, then no software patents is the way to go.
Could you include it in the tech preview? https://neon.tech/docs/cloud/compatibility/
I’ll check it out! Thanks for the pointer. I don’t have a personal need for a remittance solution (bachelor without much family), but given my geography I bump into people who do with some frequency.
How hard do you think it would be to shift the day of the week? It's just a + and a % operation.

How does this justify installing a 500kb javascript dependency?

Saying this is "not that simple" is just you mentally deciding to lose for no reason.
Pulumi also has a newer iteration that uses provider APIs directly. A pain point has been that terraform provides tend to lag significantly with platform APIs, or just miss some functionality entirely.
Pulumi can use TF providers but in general has custom providers, as I understand it - generally you would not be using the TF provider for most deployments.
Well aware of this, without going into it all. -- I interviewed there some years ago. The manager at the time who was interviewing was a really cool dude but he moved on to Amazon since then.
I found the study „Association between vaccination status and reported incidence of post-acute COVID-19 symptoms in Israel“ (https://www.medrxiv.org/content/10.1101/2022.01.05.22268800v...) quite interesting.

See https://postimg.cc/HjjsR2SF for a overview of the results.
It's cheap. Storage footprint is 15Mb and will be shrunk further. Min compute footprint is a 1 core container that shuts down when not used.

We are already working with customers that do that. This is for sure a great use case for Neon.
This means that the true resolution of digital cameras is roughly one third of the advertised megapixel value, depending on the exact Bayer matrix design.
Which actions specifically do you think contributed the most here?
I would say nostalgia is just as strong in Japan as anywhere. Nostalgia for the Showa era is a famous one.

The more likely issue is that people are just less prone to uploading copyrighted material due to laws.
So, when do we expect to see that outrage for the people that invaded and destabilized Iraq, Afganistan, Libya, Syria and continue to kill countless people with drone murders?
What if, and bear with me here for a minute, the software fields are going to fare the best out of everyone? The value of tech investment is no longer in question like it was in 2000. The world's largest companies are tech companies, and it's now accepted wisdom that software is not a cost, but a rocket ship and the rocket ships have just become reusable (due to the magic of software I might add).

Maybe it's everyone else who should be worrying that their lowly mere human productivity is going to badly suffer in a tightening job market. Just like in 2008 the meatspace employment was hit hard and never recovered, maybe we can expect a doubling down of investment in productivity multipliers and increasingly replacing jobs with software and ML. I mean how can any heartless MBA look at the output of DALL-E 2 and Imagen and not immediately start scheming to fire 90% of their creative staff?
>As far as I know this kind of weapon is not freely available in shops and even if they have it for sale You need to have speciall european gun card.

You do not need the european gun card to buy these in Poland. You can have shipped (like from https://saguaro-arms.com/) or just from a private transaction. You do not need the gun card to buy the powder in a private (or "gifted") transaction either.

>And this kind of guns requires skills to use

A percussion black powder revolver takes a little more skill than a cartridge one, but not much. It's also quite deadly.

>I do not believe that mass shooting is even possible with it

Yes if you ignore the entire 18th and most of the 19th century, during which masses of people were killed with these weapons.

>As I said the main barrier is that there is no possibility to impulse buy.

Private sale is unregulated [0]. Conceal carry appears to be legal without permit [0]. Just as here in US I can get a pistol legally in 5 minutes with no checks or registration or permit, same can be done for a black powder revolver in Poland.

Watch Paul Harrell explain these firearms, they're no joke and I recommend every Polish resident consider one for self defense.

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

[0] https://en.wikipedia.org/wiki/Gun_laws_in_Poland#:~:text=Unl....
This is my big pain point with Terraform. Sometimes I forgot to update only through Terraform. Especially when it's trivial to do the change through UI but not necessarily the config.

I wish Terraform could automatically detect the change and convert it into code.
Rediscovering the Lost Art of Fluxgate Magnetometer Cores (2021)
Not great.

A bit more than two years ago my wife went back home to Japan to give birth to our daughter. Then covid hit and her stay there was prolonged. At some point she decided she'd rather stay there permanently.

I accepted that she wasn't going to change her mind, so I started doing everything I can to prepare for a variety of possible futures:
- Learning web development to transition from my current career as a university lecturer in an unrelated subject, as this would give me the possibility to sooner or later work remote which might allow me to move to Japan, and/or earn more so that I don't end up struggling to make ends meet in case of a divorce.
- Learning Japanese to a level where I can read most things and hold a decent conversation, to make the option of moving to Japan viable.

I went to Japan for a month recently and realized that it's basically impossible for me as a foreigner to ever have a satisfying social life there, despite speaking the language to a decent level. I'm not sure I can live there without completely destroying what's left of my mental health.

Now that I feel just about ready to start applying to some React/Node jobs, the market crashes and from what I've read many companies here in Europe are implementing hiring freezes, especially on Junior roles. On top of that the market in Austria has never been anywhere near as good as some other places. Of course I only need one job, but it's very demotivating.

Most days I spend 14-16 hours between my current job, commute, programming, and language learning. I basically enjoy all three of those things, but the grind is wearing me out. I find that when I take time to meet family and friends I'm so exhausted mentally that I often barely participate in conversations, and feel guilty the whole time that I'm not being productive.
"One-upping" is, in my opinion, something very different from competition.

When I am writing my books, I am not trying to one-up anyone, but I still operate in a competitive environment where actions of other players influence both my inputs (paper, printing costs) and outputs (how much can the finished book cost and still be attractive to potential readers).

Same with SpaceX. They fly to space. Some others fly to space too, including some smaller startups like RocketLabs that are nevertheless very vibrant. This has some non-zero influence on SpaceX activity. For example, they want to be a trusted partner of NASA/US Gov, because NASA/US Gov rewards them with launches, even if it does not directly help their stated goal to make life multiplanetary and may even distract from it a bit.
There is https://elsaspeak.com/ - AI-powered coaching app. It helped me a lot.
Maybe he is talking about exception safety. vector::push_back could throw an exception.

But this is far fetched because people doing manual memory management don't usually rely on exceptions, and just abort the program when this happens, so the leak is pointless.
> And when you cloned the disks, you changed the DECNet address on each PC?

Kind of odd that the entire fail safe seems to depend on self-declared addresses.
My favorite is the Now This "Who is?" articles that get recommended to snapchat users. If you are the subject of one you will either be a saint or get doxxed.
"Whataboutism" is what hypocrites say when their hypocrisy ia pointed out to them.
> S3 is cheap.

S3 has its limitations though, like too many small files and the get/delete/list ops get very expensive. There's also an upper-limit on throughput per S3-bucket partition. I guess, sstables that pageserver flushes periodically help work around these issues?

> Neon storage is in a way a filesystem, however it doesn't expose filesystem API.

Genuinely curious: When would anyone consider using filesystems like Amazon FSx for Lustre instead which is backed by S3 anyway over implementing a filesystem-esque abstraction of their own (like neon.tech does, and other solutions like rocketset.com, tiledb.com, xata.io, and quickwit.io do).

> Pages are organized in LSM trees and background processes put layers of the LSM trees to S3.

Curious how merges are handled? Also, are you using RocksDB / some other engine underneath?

> Bare metal implementation will require new code to orchestrate starts and stops.

Speaking of new code... SingleStore started as a very high-throughput OLTP database and eventually evolved to into a HTAP (?) database. Do you see Neon evolving in a similar manner, too?

Thanks!
Simple BFS from the starting position should do the trick.
Not just lead, but lead by a huge margin.
It was already ridiculous 40 years ago.

When I got introduced to C++ via Turbo C++ 1.0 for MS-DOS in 1993(!), I saw no longer a reason to do that other than being forced to deal with legacy C code.

Turbo C++ already came with collection classes, and RAII has been a thing since C++ no longer was named C with Classes.

Unfortunately re-education takes generations when a language happens to be copy paste compatible with C.
My hunch is that Inaturalist gets traction because it is social, which makes it fun, which makes it successful.
To elaborate on this: Apple's license only permits installing Max OS X/OS X/macOS on "Apple branded" computers, so it's technically illegal to install it on Hackintoshes, no matter whether you bought the OS or not.
USA has more people in prison than China by a huge margin.
Plant of the Month: Robusta Coffee (2021)
JVM’s ZGC promises sub-millisecond pauses regardless of heap size, so I’m fairly sure it is no longer applicable to say that GC’s are incompatible with this type of workload. Though of course where these things really matter one should also look at the underlying OS and at least pin the process to fixed cores, as the OS scheduler may cause bigger latencies than the GC.

Though for completeness’s sake I will add that in case of the JVM, variable tail latency still can be experienced due to the JIT compiler.
That's pretty cool, but I wish they'd deal with all of their other problems first. I ran Rocket.Chat for over a year and I encountered more errors than any other program I've hosted. It culminated in one problem causing a database corruption, which was the final straw.
It’s hard to know what’s real vs. subjective on this for a layperson like myself, but I’ve found it tough to get a font solution for the terminal that I really like.

I’m currently using WezTerm on Mac OS because it renders very crisp fonts and has GPU-accelerated ligatures, it’s pretty slick and I’d recommend trying it out.

I’ve messed around a bunch with my Ubuntu machine with the same terminal/font/etc. and never got a result I liked.

If you have a really good config that you like I bet I wouldn’t be the only one who gave it a spin!
I knew my bet to sticking with Postgres would pay off! This looks super exciting.

I thought of doing something similar for our data warehouse with AWS Fargate and Postgres but the cold starts and limited disk space required too much engineering on top to make it work.

Moving to Snowflake comes at the cost of losing so many Posgtres features in exchange for speed. Things like foreign keys, constraints, extensions etc which requires so much engineering to replace in Snowflake. I would be happy to pay 25x the price for a 10x speed increase for a specific query.
Were you studying at an "approved" school? Back then that was a big thing for some of the FAANGs.
> GNU was promoted as an editor. Just because an organization or project expands into multiple different projects doesn't mean that is a bad thing. Does it matter to you that GNU makes 100 different things?

You're comparing an organization consisting of projects headed by different people with very few strict inter-dependencies and whose primary goal was being compatible with as many Unix systems as possible at the time, to be able to slowly start replacing their utilities, to a single umbrella project headed by the same people and parent company, whose utilities are deeply interwoven (can't run a systemd tool, say, resolved, without systemd) and are expressly incompatible with the ecosystem they're trying to replace.
The same is true of every single crypto token though.

The entire value proposition of the crypto-currency industry is like "I will create this virtual token out of thin air and people will pay real money for it because.... reasons".
We got a lot of "join waitlist" submission. Thank you HackerNews for this!

Please email beta@neon.tech for the invite code. We will ask for feedback in return.
I think the best thesis for this is decentralisation. The stateless approach only works if this one tf file (or set of files) manage(s) the whole world.

As soon as you get to multiple teams managing (say) AWS infra, you can't infer that a resource present in infra but not in tf file means a resource should be deleted.
> Right. If your browser isn't on the short list, it just isn't supported. Want to access discord from a tty over ssh? Go fuck yourself, not supported. Want to access it through your custom text-to-speech system? Go fuck yourself, not supported.

Are you seriously mad that a company selling a commercial product doesn't support tty support for their browser app?
Speculation is fun, if you’re aware that you’re not doing science.

Another fun theory I’ve read is that the piece was called “Für X” for different values of X at different times.

According to this theory, Beethoven intentionally didn’t publish it so that he could continue to use the same piece to impress different women, “Look what I wrote for you”.

Efficient.
> Of course you could control a CI/CD system with a Nokia 3310

I have a feeling that such a system actually exists somewhere in this vast world, and probably even operates to this day...
Sorry to hear about the various hurdles you’ve had to (and are still having to) overcome.

Sounds like you’ve learnt a lot along the way.

Good luck with the next chapter, I hope your experience sets you up for well deserved success.
Google has banned the training of deepfakes in Colab
How would death spiral on DAI look?