skysight-inc/HackerNews huggingface dataset:
> Don’t advertise California prices in Oregon?

California borders with Oregon. Radio waves cross state lines. People see highway billboards and then drive into another state. People use the internet and you don't know where they are.

> Anyway, a sale’s motivation is to move products off the shelf and make room for more profitable products; they’re already losing money.

A sale's purpose is frequently to bring customers into the store to buy other products, or get customers to try a product for the first time to drive repeat business.

There is also plenty of advertising that isn't discounts. Maybe your product is great and you want to inform the customer that they can get something better than the competition for the same price. Maybe you're just publishing a comprehensive price list for all your products.

And in all cases, "losing money" is not a binary result. Losing a small amount, or not making as much as you wanted to, is very different from losing so much that you go out of business.
There are various ways to geo-engineer. This is not the best one.
Technically the array subscript example is UB even before the dereference. a[1][7] is equivalent to `*(a[1] + 7)` and a[1] + 7 itself is UB.

(6.5.7) Additive operators

> If the pointer operand and the result do not point to elements of the same array object or one past the last element of the array object, the behavior is undefined.

Interestingly a[1][5] is also UB, but for the dereferencing a past-the-end pointer, not for the arithmetic.
If we are honest vanity signaling is a large part of it. Basically the Gucci bag equivalent for techies.
Time for WWWLLM communication!
> The promise of privacy is one way in which they position themselves, but I would not bet the bank on that being true forever.

Everybody so quick to forget Apple was/is part of PRISM like any other company.
very similar to https://othr.us
I don't think this is necessarily the case.

With multiple smaller movements the printer doesn't have to come to a full stop between moves. It can simply compare the movement vector of the current segment to that of the next one, and adjust the direction it is moving in accordingly. Use enough segments, and you get some pretty smooth movement.

As dotnet00 already mentioned, this is exactly how printers currently implement arcs: the software interpolates the arc into a bunch of tiny line segments. If anything, I'd expect an arc gcode to generate more small movements than whatever the slicer is outputting.
Same here, using Scala in a Haskell-like way and while Scala has more dependent typing than Haskell (ignoring liquid extension), it's still not sufficient and practical. I think we are quite far from having fully featured dependent type systems in a mainstream language. Maybe typescript comes closest so far.
>indicates that is probably a technological dead-end.

Which is why IMO PRC exploring SSMB /synchrotron EUV is so interesting.

IIRC EUV development picked plasma over synchrotron because plasma projected to be cheaper, even though technically synchrotron had more benefits. Queue many, many years of technical challenges and now commercialized EUV machines cost 200m, 400m for next high NA. Which is about the cost of multiple small or single medium size synchrotron facility in west. TLDR is it's amazing plasma EUV works, but it's also a failure in the sense that it is FAR less economical than originally envisioned. Economical dead end if PRC ever figures out cheaper alternative tools AND doesn't have to pay IP fees which they would have operating under western ecosystem.
I think it's supposed to be a return not a break.
Debugging in Ruby with Pry-Byebug
Be more productive by Aaron Swartz (2005)
You just know there's a lucky Apple engineer out there that has MacOS running on a iPad for testing purposes.
Govt is a tool of the large abusive employers at this point. Tesla, Amazon and Apple have all been in the news for illegal anti-union behavior and I expect them to get no significant punishment for this at all. Meanwhile the trials take years in which they can simple continue to misbehave. This "policy" is probably discussed within their giant legal depts and c-family with plenty of plausible deniability sprinkled on top.

Meanwhile the word "socialist" already freaks so many voters out in the US, that frankly I do not see an easy way out for you guys.

> "union problems"

Glad you put it in quotes, as unions are solutions for oppressed workers. Though unions you got weekends, holidays, end of child labour, minimum wage, paid sick leave and more.
They don't have $800 to buy another one so soon. So they take the one that "works slower" to some tech who knows the deal and tells them this machine sucks because you can't upgrade it, and now they think your brand is crap (because it is), curse you for the next however many years until they have the money and then buy the next one from someone else.
I think you underestimate the costs of climate change.

When areas of the planet become uninhabitable for humans without air conditioning, then there's going to be a mass movement of people which will most likely lead to famine and wars. Currently we rely on stable weather patterns to produce most of our food and that's not likely to be able to continue.

I fear that war is going to come about because of the changing climate.
Archived version: https://web.archive.org/web/20240507233237/https://www.rolli...
Seems like the wrong problem to solve. "Systems programming" is hard, and should be hard, for reasons unrelated to the programming language used. Something like Rust which forces you to constantly reevaluate your design before you even press the compile button, is ideal.

What's really lacking are safe, easy, strong typed general purpose languages that can leverage AOT compilation for high performance and static analysis etc. A language with the learning curve of Python, near C performance and strong safety guarantees of Rust. There is nothing that suggests to me such a language would not be possible. Swift and C# come closest but they are warped by their respective corporate overlords.
It's expected that a warmer year would be warmer at the majority of points in time. Variance should normally result in there being both warmer and colder points.
To be warmer at every point in time, the year needs to be significantly warmer.
> Well, in the sense that garbage collectors solve memory management. But pure functional programming in the Haskell sense doesn't really manage file handles for you, or database connections.

No, I was actually talking about the latter and not about memory management at all.

In Scala we even achieve this on the library level. (e.g. https://zio.dev/reference/resource/ which also compares the existing problematic try/catch with its own approach)

And despite Scala being strict, the GC still makes it unsuitable for many cases where you just need something like Haskell.
LUKS on USB drive attached to not-rooted phone using Termux, QEMU, Alpine Linux
FWIW I always ask some really super simple coding questions in interviews, even for really senior people with apparently stellar CVs. Let them pick their language or use psuedocode or whatever.

It's surprising how many 'senior' engineers are actually BSers who will slow you down or derail you completely rather than speed you up and you need to spot them because they will excel at getting through the non-technical interview filtering!

Also, I'm interested in how you explore things and explain things. I'm not actually interested in acquiring an implementation of FizzBuzz or whatever. I just want you to show me that you 'get' it and then we can get on to the interesting stuff like 'tell me about your last project' etc.

So don't be too hasty to think the people doing technical interviews are idiots thinking devs are interchangeable cogs etc.
Of course, but that disproves that an "inline definition is a definition that is provided inline with a declaration" [in an header file]. An inline definition is a definition that is marked inline, implicitly or explicitly. Whether it is defined together with the declaration or in an header vs translation unit is immaterial.
I think that's what they are trying to achieve with Mojo.
In NL healthcare I pay about €150 p/m, covers everything except dental and vision, which you can add for a bit more
UniSuper private cloud outage caused by Google Cloud issues
yeah, thanks! I added an edit.
> Hi-Fi Rush was a fantastic game,

Its part of this months "choice" offering on humblebundle.com
If all you care about is revenue - sure, don’t see any point arguing with you. It’ll end with “it’s not going to yield additional revenue”.
Location: Jakarta, Indonesia

Remote: Yes

Willing to relocate: Yes

Technologies: Python, Django, Flask, HTML, CSS, Javascript, JQuery, MySQL, PostgreSQL, Bash/Shell, AWS, GCP, Alibaba Cloud, Linux, Nginx, Jenkins, Git, Atlassian products, Terraform, Kubernetes, Docker, Packer, Ansible

Résumé/CV: https://docs.google.com/document/d/1vjyTRgw3hqzRia-QFJb0uXSH...

Email: tsimyau1612@gmail.com

Summary: An IT Engineer with more than 6 years of professional experience and 2 years of managerial experience leading 6 junior and senior engineers. I'm passionate in multiple areas of IT including, but not limited to, automating everything.
A practical guide to using the JSONB type in PostgreSQL
Maybe not Xanadu 1.0, but surely it will be Xanadu 2.0
It’s ok, when it crashes it reboots and runs the same way from the beginning, so it would be like nothing even happened.
I keep hearing this argument over and over. I suppose that China would find it very important to become independent of Western suppliers due to tensions that have been going on for years. So, if it's so easy for them to develop the same technology with the same features and performance, why haven't them done so already?
Why aren't activists immediately pushing to re-add sulfur? If you see that as bad faith, I guess we don't see the world close enough to discuss
Yes, that's exactly what I meant.

Also, dereferencing a pointer with the wrong dynamic type.

> all ca 200 UBs in my head

Technically there is no enumerated set of all possible UB. Anything not explicitly defined in the standard is UB.

/extremely-pedantic
A quick google finds https://github.com/ffenix113/fastxml which seems to be doing the 'tips and tricks' of arena parsing and things. Any idea how fast it compares when you get away from memory allocations and things and end up just seeing how the compiler does basic byte manipulation?
Now you had me hoping for an implementation of fitting Needle behind the existing Pattern/Matcher API, and a compiler plugin that substitutes Pattern.compile accordingly wherever the inputs are known at compile time.
Sort of. It's not the same as extended ECC like ChipKill.

https://en.wikipedia.org/wiki/Chipkill

DRAM Errors in the Wild: A Large-Scale Field Study (2009)

https://static.googleusercontent.com/media/research.google.c...
If you want video evidence that real plastic recycling facilities do actually exist: https://www.youtube.com/watch?v=ih5YDCeotSc https://www.youtube.com/watch?v=nUrBBBs7yzQ https://www.youtube.com/watch?v=g1WTgGyirDw https://www.youtube.com/watch?v=kTpRUXS2wmA
> [...] because the idea of using nicotine as a performance enhancer is crazy.

It's not [0]

[0] https://gwern.net/nootropic/nootropics#nicotine
True. But why not just say, "Rent is too high"? At least then, perhaps, the lease can be renegotiated. Or even, "we plan on opening a larger store" and just never do it.

I certainly agree there might be spin, but then why choose theft?
Things got a lot better for ClamAV after the Cisco purchase, but detection rates remain attrocious. There are some commercial signatures available, which would certainly help, but it still doesn't come close to the detection rates of commercial scanning engines.

ClamAV needs lots of memory to work - we needed at least 8GB in one project I worked on (where we also used commercial signatures), 4GB was just about enough for another. The more signatures you have, the more memory it uses.

ClamAV chews through a lot of CPU, and it's so very slow. For example, scanning a 25MB MSI file from my test corpus takes 65 seconds - and that's on a fairly beefy machine!

I've used both of the services linked above, and both seem excellent - detection rates and performance are far superior to ClamAV, and they Just Work(TM).
UB is a choice in that we could require symbolic execution of of all code. This is incredibly slow, so we don't.

There are many cases of UB that would be cheap to check, but there are many more that are incredibly expensive to check.
my uninformed opinion: the ad is cool

the tech? dunno
I believe that having enough days off work every year makes a huge difference in quality of life. So much so that when our union negotiated the option to forego a 5% pay raise for 12 days more paid vacation per year, it was a no-brainer for me. If I include the optional 5 days of educational leave granted by my state[0], I have 47 vacation days per year. This is a rather privileged position of course, the average is around 28 in Germany, but I don't see myself ever going back. Last year I refused an offer for 40% more money just because it would have only offer 30 days instead.

Maybe I don't have the "drive" that is common in US tech workers, but for me this is simply a job, and more time for hobbies will always beat more money.

[0] "Bildungsurlaub", available for things like language learning, personal development or other educational purposes by accredited providers
Show HN: Aussie's Take on Stanford Ignite and Silicon Valley
Hi HN

Just a computer scientist from Australia chatting entrepreneurship with someone who quit a 6 figure job to go to the Standford Ignite program and start a company.

Hope you like it :)
That climate activists should be immediately pushing to re&add sulfur? Please show one source citing negative effects of an effort to re-add, and one source citing positive effects of its removal. I find it funny to have three such vapid responses in such a short time.

Almost as if people latch onto the emotional immediacy of being 'activists for good' instead of making substantive change.
All things considered, I wouldn't be surprised if a non-zero number of people have only heard of Kansas City because of Taylor Swift.
After the invention of the sewing machine, Corporate robots told us, everyone would have one at home and make their own clothes. Turned out most people don't want to or need to make their own clothes. There are better things to do in life.
Downvoted for straw man argument, dog whistles and uninformed comment about what activists are doing, not because I disagree (I do).
Plotting the FreeBSD Memory Fragmentation
Popularized articles about C++ are very hit or miss. It’s partly because the language is so hit and miss in it’s non-design.

The most glaring error in the iceberg IMO is the claim that shared_ptr is an antipattern.

Shared_ptr is brilliant for immutable data in parallel programs. It’s not an antipattern. It’s useless for sure as a building block for data structures and other linked data with potential for circular references.

But really, if a resource is a) immutable and b) needed in a shared context then a thin wrapper around a map of shared pointers or such saves the pain of needing to implement a much more complex resource management scheme.
Isn't Java better than Swift/C# ? (more open, green threads, better ecosystem).
In south asia and south east asia the temps are reaching the point where like arab countries working hours will need to be changed and not be in the afternoon. Unlike the Arab countries South East Asian countries have a humid climate as heat is retained of longer so evening and night the temperature do not drop as much.
Has it really decreased the prevalence of acid rain that much, and was acid rain really that large an issue? I haven't heard anything about it since the 90s.
ProcessSpy – macOS Process Monitor
Hello there, new feature just landed in my free process monitor for macOS: find process by clicking anywhere on the screen.

Feel free to grab the tool here: https://process-spy.app

If you like the app, I would appreciate a testimonial :)

Best,
Robert
Too. Much. Easy. Moolah.
These boondoggles happen whenever politicians get hold of a cash hose and thinnk up ever more ridiculous playthings.
I totally understand your point of view, but looking at it from the other side it’s not as simple. We had candidates with 10+ years of experience in their resume, talking to them it seemed they know what they’re doing, they showed some of the code they’ve supposedly written. Then they got hired and it turned out they can’t code - their PRs are below junior level, constant bugs, communication is abysmal, they overshoot their estimations by 3-4x, etc.

Thus happened to us twice, and after we introduced a simple live coding session to our interviews where you have to implement a simple real world web component (for a frontend position) suddenly the problem of bad hires disappeared almost entirely (you can’t judge someone’s character during a short interview but that’s another issue).
Yep, they feel like different institutions sharing some similar objectives and the same name. In the US they had a very institutional, "role-based" org feel rather than being a work welfare and wellbeing observer I've experienced in most of Europe. I can only assume this is due to the more adversarial relationship between workers and employers?
These charts look like guesses. I'm talking about temperature readings done by a known instrument and organization over the years.
It's a nice concept. As for for suggestions you can make the dialogue box responsive. It gets a bit difficult to edit the text.
> The _real_ story behind the pen tips is building up machines to make advanced munitions at scale, few years later, i.e. now - we have stories of PRC cruise missile gigafactory that can churni out components for 1000 missiles per day.

Woah. Who are they arming themselves up to fight with that many missiles? Trisolarians?!
Why do you keep mediocre programmers at the office?
Because it causes acid rain. Why are you having strong opinions if you don't know basic facts of the issue?
Space Art Shaped National Identity
Perhaps we're not in a discussion that's worth continuing, but I'm talking about programming language design. There are languages with UB, and there are languages without UB - and I think in 2024 the verdict is clear.
I wish I were so optimistic, I think we are truly screwed and there's pretty much no safe place on earth. What isn't vulnerable to fire is to flooding, tornados or other extreme events.

The current change is absolutely disastrous already and the climate lag will push us even further into chaos no matter what happens.

I really hope we do invent some miraculous tech because that's the only thing I can see being a mattress on the fall down. I'd be in a position of power now, I'd push every last resource I could into this last hope.
Agreed, although the language still feels like a tech demo. They don't even have a package manager yet. I'm curious and hopeful to see what it looks like in a year
I fully agree. I made a TUI client/server framework loosely modeled around the concepts of CSS/HTML. One of my core design decisions was keyboard only input.
Miscoded issues in uni Oracle implementation
What I found most surprising about a lot of US city "downtowns" is how utterly dead they are in the evenings and at weekends.
Yes, that’s exactly why we banned bunker fuel - but we didn’t realize that it was helping keep ocean surface temperatures from skyrocketing.

The worldwide harm and injury cause by bunker fuel pollution is utterly trivial compared to the catastrophic heating of the oceans. Damage caused by exposure to pollution is measured in years and decades; we are measuring the searing of the oceans in mere weeks and months.
That scenario is so complicated and requires so many tenuous assumptions that it might just happen anyway. The demographic stats already suggest that the future is going to be very African, that there will be lots of migration and we've had a couple of migration waves triggered by stuff that isn't climate change.

The problem isn't climate, it is that there are too many people and they keep having kids. Although right now the trend in global birth rates is extremely promising and if that keeps up (keeps down?) we'll be fine.
You don't need something "truly novel" to have a market advantage. Far from it.

You just need something that is not ready made.

Remember that not every algorithm is neatly package-able, or has a cool name like "Stable Marriage Problem" or "Levenshtein Distance".

Also: maybe your advantage is implementing some of those in a new language. Maybe your advantage is implementing one of those in SQL! Maybe you have a tree-like or graph-like structure, and you need to do something with it without having to export into some format expected by certain packages. Knowing what to implement is important too.

Also, those interviews are often testing for something even simpler than those fancy algorithms.

Nobody uses Fizz Buzz or Recursive Fibonacci daily, but you might need to implement something that is beyond creating views/models/controllers in your favourite MVC framework.

This is what the test is checking for: coding beyond what's on the README of your framework.
> So, if it's so easy for them to develop the same technology with the same features and performance, why haven't them done so already?

Why would they, until forced? Comparative advantage is very tempting; most of the world avoids making things they can instead import cheaper.
I don't see any point in even trying to change any more. There is too much damage already, international cooperation has always been primarily driven by national interests, and I don't see there ever being a global movement significant enough to make a difference.

What I don't get is why people are still having children in societies where it is not necessary to have offspring to provide you with income and care in your later years. Anyone approaching middle age can still look forward to a relatively comfortable life, but it's the babies being born today that are truly screwed.
Show HN: I Made a Newsletter for Coding Hustlers and Indie Hackers
https://www.epa.gov/acidrain/what-acid-rain
Consider that your geographical location may be biasing your top 3 worries. If you were forced to live near the equator and suffered the wet bulb temperatures for yourself, and you couldn't afford air conditioning, I am confident you would beg to differ. Remember that you can't keep removing clothes to cool down. At a certain point you just die.
That's not the point. The point is you have people saying, "Look at my dog" when they're holding a cat. When your great grand mother does that you smile and nod. When it's a renown economist you call bullshit. Else that fool keep spitting more bullshit.

Economists doesn't consider Corny Capitalism because... Best I can tell... They've no clue how the sociopolitical system actually works. They're too focused on theory and don't get off campus enough. Great for them. But we don't have to be as foolish.
This is a good idea. This would also show someone's ability to read and contribute to existing code which is a large part of our day to day tasks. There are some that can only solve problems their way, which often means them trying to rewrite everything.
Only if it saves money now.
Yeah, the thing to measure isn't how long it took them to make ballpoint pen tips. The thing to measure is, how long it took them from the moment they decided to make them domestically.
This works if you have one app with a completely dedicated computer. But that's a limitation on the popular systems. If you have an automatic focus switch to new windows, like Windows/Mac pretty much enforces, you can't buffer input. An incoming call to your VoIP system would be dropped/redirected, because you were typing the right thing at the time.