skysight-inc/HackerNews huggingface dataset:
Templates and RTTI do not have anything to do with each other.

An inline function that depends on RTTI will fail to compile when -fno-rtti is enabled.

There is also nothing unexpected about an application immediately terminating due to an exception. That's the most expected outcome in an application that has made an explicit choice to not handle exceptions and is what happens in any application that does not have a try/catch handler.
With TSMC laughing all the way to the bank.
Hope no more - Java 21 will have virtual threads: https://openjdk.org/projects/jdk/21/

Speaking of, I have yet to test how agents with virtual threads perform vs core.async for my use cases.
> possibly I'm high but I find this rather amusing. Enjoy but don't play doctor until you get your degree.

I'm not saying it's safe. In fact I think there's significant potential for harm from careless use of psychs, and I can't recommend it from a safety perspective.

That being said, if you were going to use it - and this goes for any drug - you MUST test it. You cannot OD on 4 tabs of LSD. If it's actually 2C-B (it's half the price) then you could die.

--

If you're on the fence - don't take it.

If you were going to anyway - take it in a way that minimizes harm.
Oh, my mistake, I thought it was an additional accessory. Thanks for correcting me!
> The Pentium 4 (NetBurst) was a dead end design, and Intel had to backtrack and build off their laptop CPUs that were based on the older Pentium Pro design.

Don't forget Itanium, Intel's other dead end architecture. It's actually kind of amazing that Intel recovered from both at the same time (for the most part).
"It's science."

Sorry, this is 2023. If you are going to make a psychological "science" claim, you are saying the claim is likely false as the field is mostly covered in bullshit
> simple

> k8s

Pick one
Putin's view on Russia in the EU was essentially that he never wanted Russia to be on the same level as the member states. He wanted Russia to be at the same level as the EU as a whole if not greater. It stems from a combination of nostalgia for the Soviet Union and a sense of Elitism endemic in parts of the culture.
I like C a lot. One big advantage of the language is that its complete syntax and standard runtime functions can fit in one brain.

That said, I hate the way a lot of programmers use the preprocessor. For me, macros should be just simple expressions or functions (i mean they sohould be invokeable like functions) . But very often, there's a lot of magic inside macros, making them hard to use, let alone understand.
The most accurate method is to have it in liquid form and dose that way.
> Erm, why would you ever want an app for your bank on your mobile phone?

To easily check balances and make transfers wherever I am. This is possible without the app, but the app makes it easier/quicker than the mobile site in most cases.

> So that when you get mugged, it can turn into a kidnapping?

How do you suggest a mugger to find out whether such an app is even installed, let alone do anything about it, in this day and age of full-device encryption being the default? Even assuming a mugger somehow has access to the nation-state-level compute resources and exploit tools necessary to gain access to anything on my phone, by the time the mugger has finished using said tools and compute resources, I'll have already changed my passwords and invalidated existing login sessions.

Also, kidnapping involves considerably more effort and risk than mugging, so this is a weird argument in general. The vast majority of people with both smartphones and bank accounts almost certainly have banking apps installed on their phones, and I know of precisely zero cases of muggers deciding "oh you have a banking app? lemme go find my windowless van and kidnap you, drawing considerably more attention to me and giving you considerably more reason to violently defend yourself instead of cooperating; surely nothing will backfire from that, no siree!".

Muggers quite frankly don't give a flying fuck about the apps on your phone. They want your cash and/or whatever they can quickly fence.

> Segregating apps onto different devices is the way to go to protect yourself from corporate malware.

Having firmware that gives you fine-grained app permissions that you can freely grant/revoke also accomplishes this. If apps on the Play Store are subverting that, then banking apps are probably the least of your worries.
Probably downvoted for many reasons:
1. Your idea of "forcing" people into rideshare is childish, really one of the dumbest ideas I've read in weeks. It would never work outside of countries whose government have that level of control over their citizens.
2. You are in the vast minority of how people live their life in western countries. If you're not even using public transportation, you're intentionally isolating yourself to a crazy small area of the world, try leaving sometime.
3. Your whole argument seems to be centered around your "feelings". Nobody cares, especially when you're the type that gets irrationally upset at vehicles while you're walking around and then complains about it on hacker news making blanket statements saying we should give governments the ability to force people into a lifestyle that you find convenient.
ELI5 - everything about a phone only works when the carrier allows it to connect to the network.

So, the way this is done is to, well, connect to the network and allow the phone to be unlocked - which according to the article is what happened?

So the real complaint is that the Pixel can't be loaded with a customized Android OS (or Linux, etc.) without being connected to the internet first and this is bad because the vendor might put bloatware, spyware, etc. on the phone, which, once you install your OS will be gone anyway?

OK, well then other than the underlying hardware needing to still be recognized on the carrier's network, which pretty much means you still have to be connected. The point is you aren't going to be stealthy using the carrier network on a phone, so at the EOD you have a pretty expensive device you can really only use on WIFI using your own VPN without the Vendor's software.

So what's the advantage over a small tablet based on OTS SOC hardware that you have full control over? IOW why buy the phone in the first place?
Wow what an emotional and biased take.

Architecture isn’t like Lord of the Rings where one ring rules them all.

What if the dev team doesn’t know Java? Are you suggesting they be forced to learn it?

What if the company has 20 applications with complex interactions? Are you suggesting they all be baked into k8s and then have someone manage containers full-time? What if no one in the company understands containers?

I’ve been at this for 40 years and will tell you there is no common architecture environment.

There can be any mix of business logic, services, data storage, containers, events, queues, redundancy, reports, analytics, external systems, 3rd party black boxes, skill sets and levels, budget, tech stack, and leadership.

Trying to pigeonhole any architecture into that mix is the very definition of amateur.
Probably not, since there will be a warning screen displayed on boot if the bootloader is unlocked.
>Some parallels with the rediscovery of Nick Drake a few years back.

How long ago are we talking here? To my mind, he's enjoyed a healthy dose of posthumous popularity for a few decades.
The problem is when your dropdown component (D) is in a scrolling container (2) in the page (1).

-1-----------
| |
| -2--- |
| | D | |
| ----- |
| |
-------------

If you attach the dropdown options to the inner container (2), they are cropped.

If you attach the dropdown options to the outer container (1), they don't scroll with the rest of their component (D).

----

Non-native dropdowns in general are handicapped.

For Windows/MacOS/Linux, native dropdowns can exceed the bounds of even the OS window. There is no CSS equivalent of this behavior.
What kind of work do you do? Does your day job involve writing shell scripts? Or is that something you do on the side?
What level of evidence do you require for those explanations? Because all three observations you mention have credible theories, some even have partial proofs.

nobody can explain why eyesight is getting drastically worse

The prevailing theory has to do with lack of exercise of the eyeball, i.e. children spend too much time indoors locked at a single viewing depth; children who spend more time in the outdoors tend to have better eyesight. In China they're running broad studies which seem to indicate that children's eyesight stops deteriorating when exposed to more bright daylight: https://clinicaltrials.gov/ct2/show/NCT05156190

Obesity in the developed world is a big unknown

Sugary/unbalanced foods and sedentary lifestyles? The proofs we have go as far to document the entire systemic changes that ultimately lead to insulin resistance: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6471380/

sperm counts are going down

There's suspected links to endocrine-disruptive pesticides, but FAFAIK no proven mechanisms.
The previous generation of laptops from Apple were so bad that I'll be vice-like gripping my M1 laptop hard before even looking at the benchmarks. Performance alone is such a bad metric to even mention cause I just think about being 15% throttled 99% of the time, having a huge WHIRRRRRR and only lasting about 1 hour.

God it still hurts so much
Amen, brother. Love you.
College quality as revealed by willingness-to-pay for college graduates
> there is a good reason people shy away from PHP

Please share it. And don't rely on articles that are more than a decade and 3 or 4 versions of PHP old.
I don't think you understand what green threads are. Green threads are simulated threads that run on a single core.

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

But you wrote:

Multicore CPUs are a fact for life for a long time now.

So I assumed that you didn't really want green threads and were just using the wrong terminology.

In any case, you can get a Lisp with green threads too, though as you yourself point out that is considered pretty dated technology nowadays.
Oh my. I hadn't made that connection. Now I'm not going to be able to unsee it.
> What kind of price tag do we put on your soul being gutted at McDonalds or CVS, standing at a register all day dealing with entitled jerks as a CSA.

Is this a serious question? That's what the wage is for. It's an amount that convinces people to spend their time at the job. If on top of that, they also need to depreciate a capital asset, as with uber driving, the effective net amount they earn is lower, which is what is being discussed.
I have no doubt people actually love the sound of the engines, but I think it's an acquired taste through association with fast cars. But once you get used to fast cars without the noise, those ripping engines are just bothersome.
Stu Halloway (also a member of the Clojure core team) has a couple of great talks on using the scientific method in programming: https://www.youtube.com/watch?v=FihU5JxmnBg https://www.youtube.com/watch?v=OUZZKtypink
>> gotten softer and easier to eat.

>What does this even mean?

I believe the implication is that packaged food is even more processed than before (less fibre, more multi-syllabic ingredients). The benefit is that our bodies can extract more calories from food (ground beef provides more calories than similar amount of steak). But the increase in type-2 diabetes suggests lack of calories is not a problem for these people.
Great…So you quickly put yourself in a position where the longer you’re on the service the more expensive it will be to migrate

And yes Amazon uses AWS utilization to keep track of promising startups or places that they want signal about market changes.
Templates and inline functions are relevant because they're in headers and therefore compiled as part of your project's translation units. So if a function from a library depends on RTTI, and it's compiled as part of your project's translation units with -fno-rtti, something will break (or maybe you'll have an ODR violation).

> There is also nothing unexpected about an application immediately terminating due to an exception. That's the most expected outcome in an application that has made an explicit choice to not handle exceptions and is what happens in any application that does not have a try/catch handler.

If I call a function from a library, and that library function depends on catching and handling exceptions (maybe it uses a stdlib function which throws, such as vector::at), it's unexpected that my application crashes due to that exception. Yet, if that library function happens to be in a header, calling it will crash my program (or, again, you have an ODR violation and anything could happen).
I don't remember EU doing anything in Russia that was conductive to democracy, human rights, respect for other nations, etc. The only positive influence I can think of, is European Court for Human Rights. But especially, EU didn't do anything when Putin decided to stay in power after 2008, they did not have much cultural integration with Russia, so it seems they expected to sit on the bank and expect democracy in Russia float past.

With regards to "respect for other nations", Russians know how Russian minority is treated in Baltic states and that Russian speakers are treated like 3rd class citizens in Ukraine (even before 2014). Russia treated other nations way better than those other nations treated Russians when on their own turf.

I believe you are confusing Putin with e.g. Orban because Putin is actually BFF with Israel, and even the fact that they are mildly supporting Ukraine didn't dent that.
> Note-taking/drawing with the Pencil is good, but is it better than a $2 pen and notepad? Not really.

Sure, if you use it exactly like a paper notepad it's not going to bring much value. You buy an iPad Pro if you want the 120Hz screen and/or pencil hover feature, which artists are quite fond of.

Or just get a cheap Wacom tablet with USB for $50 or less and you can take notes on the laptop directly.

> I hate everything about iPadOS

Does this person ever look at reviews before spending almost $2000 on a new device? What iPad OS can and can't do isn't a secret. Though I agree it would be a game-changer to get full desktop Mac OS on that thing.
Show HN: Structed LLM outputs via Pydantic with struct-GPT
Hey everyone,

So, I stumbled upon this really cool idea of using Pydantic to deserialize and validate OpenAI's outputs over on this HN thread https://news.ycombinator.com/item?id=35821748.

It got me thinking about how I'd like a slightly tweaked API to better fit my own needs. I also found some neat stuff in jiggy-ai's Pydantic implementation for chat completion https://github.com/jiggy-ai/pydantic-chatcompletion/blob/mas..., and picked up tips from various blog posts and comments on how to up the game with the quality of a model's output by providing examples.

So, I cooked up this library - just about 100 lines of code, but it's got some nice features and it's fully tested. I hope some of you find it useful.

I'd love to hear your thoughts and feedback. Cheers!
Salary seems perfectly reasonable for the area. Maybe my heart is hardened a bit by the stories of ChatGPTs $2/hr contractors but the standard of living in Kansas city on $15/hr by international norms is at least middle of the road. As much as people clamour for a living wage (a target which is fixed to housing prices and will never be reached by a society housed by private landlords even if employers all adopted the prevailing living wage tomorrow), it’s essentially the global middle complaining about not being the global upper-middle class.

If you want to do something about inequality break up Microsoft.
You are mistaken, CL is strongly typed.
Medical doctor. This is exactly what I thought.

There's simply not enough here to say if it's just an interesting artefact of exercise or an actual helpful response. It may be a useful starting point for further studies, but the comment section is frightening in how quickly people are jumping on this to confirm their biases on health and disease.

If we were to extrapolate from this logic, we would wrongly conclude that people with autoimmune diseases should never exercise.
It’s very easy to become complacent. I knew forever that using Google was a risk. I keep email mostly on owned domains… but I also use all sorts of Google services.

The thing is, for every Google service you really should have a separate account. One for dev, one for YouTube, one for Gmail, one for Wallet. Maybe one for Chrome if you use it as a password manager. One for AdWords. One for payments if you use any merchant services.

Every service you add to an account increases your odds of suspension. Oddly, I’ve also heard that one of the reasons guy can get banned is for having multiple accounts. So I’m not sure if my new policy is any better than my old one.
https://www.iaeng.org/IJCS/issues_v32/issue_4/IJCS_32_4_19.p...
You get a compiler error.
I'm not sure what the point here is, if you want an actively cooled laptop, just buy that. Just because you personally need something different it doesn't mean that feature isn't important to other people.
I use https://foambubble.github.io/foam/

It has all I want for a note-taking app, since it's my editor all of my shortcuts and snippets work, the notes are simple markdown that I can back up easily using git.

To start a daily note, I can write /today and it will set the correct date.

In combination with the Excalidraw extension I can create new digrams, simply by ending the files with .excalidraw.png and quickly embed them on any markdown with preview, while being editable. https://marketplace.visualstudio.com/items?itemName=pomdtr.e...

Linking notes and having a connection graph, like obsidian it's incredibly useful, making me go back more often to old note to remember or refine them.
Some early praise for using drgn for poking into Linux kernel internals
Program size has a lot of interaction with performance, by way of your CPU's L2/L3 cache.

If your program is too large, you get more cache misses when branching around. Frequent cache misses have a _huge_ effect on your code's overall performance, and can completely negate any of the wins you get from loop unrolling or other optimizations.

This effect is very pronounced on small armv7l/aarch64 CPUs, which usually have much smaller caches than a desktop CPU. You can even see it on laptop CPUs too.

It's impossible to know where exactly your size cutoffs are, because they depend a lot on what else is running in your system (and CPU core allocation, etc). But they 100% exist, for any program on any system. If your whole program can fit into your CPU cache, you'll see a big performance difference vs having to fetch it from RAM all the time.
So perhaps the marketing error is in marketing to people as if they were businesses.
Oh, I certainly have absolutely no control over those types of decisions. I'm a soldier, not a general, I just do what I'm told, tbh.
> M1/M2 is a big.little design isn’t it?

Isn’t almost everything designed for consumer use, even the Intel i9, these days?
If your passion is compilers and interpreters, do that and treat your day job as a day job.

Same as if your passion was barbershop quartet or scrapbooking.

I mean sure there are jobs doing each of these things. But they are few and far between and filled based on relationships among professionals. Compiler people hire other compiler people because they prioritize who they team up with.

Three years experience is not thirty years experience and it’s not a PhD, and those signal commitment beyond wanting an interesting day job.

Good luck.
"So it was successful enough for long enough " Which doesn't necessarily make it a good choice at any point. It just says it wasn't enough of a bad technical choice to make the product sink.
One of my favorite videos of a Ferrari driven hard is Derek Hill driving a 250 GTO on a hill climb. Note Derek is the son of the former Formula One champion Phil Hill.

https://www.youtube.com/watch?v=KHgD0wJGcR0
Thanks, looks like the thing I'm looking for.
> I wouldn’t say I hate the blank page, but I also don’t like it. In fact, I try to get rid of it as fast and as soon as I can.

What a weird impulse. Getting rid of a blank page ASAP!! I stopped reading here. Author prefers looking at a page of ads.
My opinion from doing both these ports and greenfield is this:

None of the tools that say they help you move faster matter after the first 3 months.

It's true they take less code and pieces to get started with. No k8s manifests, no Dockerfiles (usually) but if you don't hate your future self you will still use IaC to create the API Gateways/function contexts/DynamoDB/whatever, so you will still be dicking around with at least one of Terraform/Pulumi/similar.

The thing is the setup cost of a traditional lang + pg + k8s setup amortised over 3 months is essentially nothing and yet you have a setup that will last you effectively forever.

If your company wasn't going to die because of being a few days slower in that initial 3 month period you have came out ahead. You have a forever architecture and you avoided a whole bunch of costs and technical debt in the process.

Maybe the calculus is different if you don't have the same depth of infrastructure experience I do but for me it's obvious this is a faster and better way of delivering a prototype that gives it proper room to grow into production software.
That’s a stupid false dichotomy caused by a poor onboarding workflow. “Well we either make it easier for businesses or deny the right to literally every customer to own their device. It’s okay because most people won’t notice.”
People lose their phones/computers all the time. Why do you think that reset flows for passkeys would be a hassle?
Micro-USB was mandated by the EU. That's a large part of the reason we even have a standardized charging port.

This has been enforced since late 2012 (in draft since 2008) and is the reason why Apple had to include the micro-USB adapter in order to sell in the EU.

There is no reason for speculation since facts are available on your friendly neighborhood wiki. What we're seeing now is that the law is updated to enforce USB-C, which has been accommodated for a while.

The intent is not to standardize on an implementation forever, but to make the industry agree on a standard.
Exactly and their work does power ChatGPT, who's going to write article about them?
I've really gotten a lot of milage out of wearing earplugs on a regular basis. It is a bit of an unusual practice, but I really like the quiet. Might be an alternative solution to your problem.

Alternatively, I've found that using a laptop pad with a large (200mm) fan can help to keep the machine cool without generating much noise.
That makes my sub £9.00 pm (unlimited calls/texts, around 20gb data although unsure on exact amount), europe treated as the UK, seem very cheap.
i mean it was probably never meant to be rich in content in the way as to convince users to learn lisp
Doesn't this risk also apply to, like; carrying cash or even a debit card too close to an ATM? :/

I just don't see this as enough of a risk to be concerned about it, maybe it depends on where you live.
> Mastodon is clearly not a replacement for me.

Fediverse/ActivityPub is not just Mastodon.
I'm pretty sure they still would have moved to C, a bit later than lightning happened but much earlier than they currently are.
I spent a lot of time with bloaty for our embedded application and found I had more actionable output from something like this...

nm -B -l -r --size-sort --print-size -t d ./path/to/compiler/output{.so} | c++filt > /tmp/by_size

Just a lot of flags that show you size by symbol in decimal with unmangled symbols. Run it before you run `strip` in your CI pipeline or whatever preps a build for proper release.
This is incorrect. Have you considered that the delay between getting the device and getting it connected could be well outside of the return window or people could be purchasing them in countries without such consumer rights?

Smartphones aren’t only for the developed world.