skysight-inc/HackerNews huggingface dataset:
> Hey, by all means fix clang and gcc so that my example no longer requires a runtime call to mul().

They can just pretend every inline function has constexpr in front of it, and fall back to compiling them if they fail to evaluate it as constexpr. The constexpr doesn't tell the compiler anything it didn't already know or have to verify anyway. And bear in mind much of the standard library already has constexpr in front of it (and that's a pretty strong signal that it should've been implicit IMO). I don't know Clang or GCC's codebases to know exactly what to modify off the top of my head, but I'm pretty sure adding an extra 'constexpr' internally in the front-end would be utterly trivial as far as compilers go. No need for any optimizations to get involved (and it's important to understand this).
The 5mp was a straightforward parallel printer that fully supported both PCL5 and Postscript and was affordable. I think that was the peak.

Nowadays I get by with a P2015dn because you have to have Ethernet, and it suffers from the wake-on-lan issue but it's tolerable. I'm afraid to try anything more recent.

But the thing I miss most is that it used to be cool to be a fan of HP. Now that's just nostalgia.
Covid is the #1 killer of LEOs in 2020 and 2021
Social securityis a pretty well known ponzi scheme.
> Don't think that MacOS spares you about that either. Update notifications are equally distracting.

You're right but if I recall correctly notifications do not steal the focus.
I wonder what the politics of it is: Who benefits in politics and in business?

Also, afaik renewable energy is advancing quickly. Nuclear made more sense a decade ago. Why switch to it now?
I lead a team that went beyond this problem in an investment bank: we must make the trading resistant to volume increase, whatever the system.

It's an exhausting exercise: we must constantly join new team, extract the source code from their grippy hands, show them how to profile, explain the globality of the problem, how doing a good job only matters if down the line people can still trade whatever the volume and yes, even if it's a silly volume, what can we do.

We were able to really get creative solutions by stopping the absolute technical talk and just ask stupid questions: what's our upstream maximum rate, how fast are we feeding down stream, what's blocking in the middle, how do we scale (usually we can stop at profiling after we find 3 horrendous beginner mistakes, thank God lol)
Sorry, I posted the link in a top level comment before answering you. In any case here it is again - https://underscorehao.net/2020/05/learning-1500-chinese-char...

His stories weren't really useful to me either and I made my own since that's what the method is based upon. The stories he provides are a guideline for the method, but making your own stories is the key. I've done that over a year ago and I've finished the second tome too since then (albeit with a slower pace than what I did for the first).
If making a vaccine against an historic pandemic doesn’t entitle you to get some profit, what does?
I'm so torn on this. In a perfect world, where human greed doesn't allow corner cutting, upscaling nuclear would be a potentially great choice.

However, in the world we actually live in, even so-called "efficient" and "group focused" societies like Japan build nuclear reactors in a tsunami flood zone to save money.

I feel like in order to make nuclear viable for future plants, we'd have to create and implement some sort of one-of-a-kind anti-greed, anti-corruption, anti-corner-cutting culture that would run smack against the usual government lobbying culture we have in the US at least. And we'd have to get buy-in from ALL parties. AND we'd have to build based on the probability of extreme weather events becoming a common reality.

It's not impossible, but it would require a major societal change.
> since the late 1960s opposition has included the use of nuclear power

Confused—isn’t that what I said?
I'm pretty sure it can't
Depends on what they do with GPU. If they put in desktop-class(-ish) graphics, then that would impact battery life heavily (and make me super happy OTOH).
Interesting, thanks. I want to know more about Lutherism, if you have any suggestions? As for my point, I'm not 100% sure there was one, except that it's nice to observe a theologian having common ground with the antichrist himself.
The same party has been in charge for (16?) years; the Greens are popular in Germany.

Edit: Maybe I'm misunderstanding something?
Very similar list to me, the only ones I've found that meet this, can be relatively powerful (H CPUs and 64GB ram) and don't force you to buy a Windows license are TongFangs. Any others?
Their goal is 50% nuclear by 2035. From an economical point of view that's probably better than trying to keep todays levels, since they have to replace some old plants with newer ones and then the economics no longer make sense. Hence Macrons political move towards SMRs.
The issue for me is that ARM is also really old now. I mean, just look at the ISA Apple has to use to run their MacOS on it: it's littered with NEON extensions and more cruft than you can shake a stick at. Simply put, Apple's implementation of ARM is decidedly CISC. On top of this, I'm still dumbfounded by the fact that they didn't go for a chiplet design where ARM could truly shine: if Apple had went the chiplet route, the M1 could have had a much higher IO ceiling and might have a shot at addressing more than 16 gigs of RAM.

Apple has a much bigger issue, though. ARM doesn't scale: it's a fundamental conceit of the architecture, one that a lot of people are probably willing to take on a laptop that will mostly be used for Twitter and YouTube. This presents issues for the rest of the market though, and it will be fascinating to see how Apple retains their pro userbase while missing out on the high-performance hardware sector entirely.

I think x86 is pretty terrible too, if it's any consolation, but really it's the only option you've got as a programmer in the 21st century. I hopped on the Raspberry Pi bandwagon when I was still in middle school, I grew up rooting for the little guy here. Looking out on the future landscape of computer hardware though, I really only see RISC-V. ARM is an improvement on x86, but I don't think it's profound enough to make people care. RISC-V, on the other hand, blows both of them out of the water. On consumer hardware, it's able to accelerate pretty much any workload while sipping a few mW. On professional hardware, you can strap a few hundred of those cores together and they'll work together to create highly complex pipelines for data processing. On server hardware, it will probably move like gangbusters. Even assuming that cloud providers pocket half the improvements, a 5x price/performance increase will have the business sector racing to support it.

So yeah, it is a pretty complex situation. Apple did a cool thing with the M1, but they have a long ways to go if they want to dethrone x86 in it's entirety.
With Kotlin based approach to nulls you can't represent Option<Option<T>> values.
Here in France, most furnaces are electric, a few use gas, and some stovetops use gas but they are becoming more rare, as it's cheaper to simply not include gas in a building.

It's very surprising to me that people are still burning coal in their home, outside of very rural areas. Same thing with oil (except with cars of course).
> if you really want to learn kanji properly you also need to learn stroke order

i think this depends on what your goals are. for example, if i only wanted to be able to read and type japanese, why would i care about stroke order?
Dislike button would improve Spotify's recommendations
I bought an HP LaserJet in 2003. It still works perfectly and prints like a charm every day. I've only changed cartridges twice.
He’s done a lot of really good work since then. I recommend “Origins of Political Order.”

He really has some fascinating ideas.
I ride, and I ride a lot. But the whole social-media-thing-around-cycling has never for a second interested me. I ride to save on fuel costs, because it is better for the climate and because I simply enjoy cycling. Anything up to 100 Km I try to do by bike if I can, the things that might ruin those plans are bad weather, being in a hurry or longer distances.

But none of that or my speeds/stats are anybody else's business, I really don't see the point. So, if you are using this stuff and care about it I would suggest an alternative: simply don't. In the end it's not about competition (this applies to for instance Strava that some of my family members use all the time).

And in a virtualized version of this (Peloton) it would make even less sense to share it, the better way to deal with that is to not do it at all, if you can, get a real bike and use it as much as you can, and use the trainer if you can't use the regular bike and think of it as an opportunity lost.
I want you to understand how terribly unconvincing this is. You seem to have an agenda, but not necessarily the facts to support it, so you're engaging with hand-wave-y generalization and, "Just trust me"-level rhetoric.

This conversation began with concrete numbers, and if you want the initial presumption to stand you're going to have to end with them, too.
They could just use the reserved keyword naming like the C committee does.
Is China innovative? Or is Chinese labor inexpensive?

The US is still the second largest manufacturer in the world and broke it's own record in adjusted dollars for production in 2018. Pandemic aside, the US has never been more productive.

Your sentence about hostility to government is spot on, I think, and brings to mind that old Bastiat quote asking if government officials are, "made of finer clay."
This seems useful for code generation. Cannot relate this to any previous problems I encountered using c++

Any other interesting use of this?
No, this absolutely does need attention. Probably not yours, but that's fine.

https://old.reddit.com/r/fakedisordercringe/comments/lz83c2/...

> young people have massive egos and little awareness, which isn't anything new

There is a new element tho, and that's adults being the middleman and exploiters and shapers of said needs via electronic means at mass scale, who exploit and capitalize on the weaknesses of young and old alike, and don't give the slightest fuck about they harm.
10? I changed it 2 times in 16 years.
The advantage is if you are explicitly modelling a value that could be empty. You can encode that into the type system by making git an Option<T> instead of just a T (that could be null). At it's most basic level it can just help reduce the possibility of NullPointerExceptions but the real benefit and reduction of boilerplate comes when you use Option as a monad. For instance, in Scala if you have a something like

case class Address(street: String, city: String, state, String)
case class User(id: Int, name: String, address: Option[Address])

def filterCAUsers(users: List[User]): List[User] = users.filter(_.address.exists(_.state != "CA"))
I think this is a very good idea, because both topics (random number generators and AI) are hard to fully understand and using both against each other could be used to teach both topics with increasing difficulty.
Elon is such a chad <3
My thought as well. I was able to fix a years old memory leak at a prior company using massif within an hour. It’s a really great suite of tools!
I'm a little confused: GrapheneOS is the exception; almost every OS successfully implements connectivity checks. Also, the answer to the problem seems obvious: check again. Check every second or every 30 seconds, etc. It's just a ping.
It kinda sounds like you haven't really read my post if you conflate the existence of an upper middle class with the political power such a class holds in shaping how society is organized. The story of the post-war era is not the disproportionate power of billionaires, but the disproportionate power of the professional and managerial class. It's not billionaires that make healthcare expensive, but overpaid doctors, nurses, and hospital bureaucrats.
Kinda sorta related, no affiliation just think it's cool as well:

https://www.dendron.so/
I was fortunate enough to buy a 1990s laser printer.

Back then companies were still short sighted enough¹ to build them to last.

It's an Apple Laserwiter 12/640PS.

It's still chugging along today, with 64Mb of memory no less!

[1]: Recurring revenue wise that is.
I've written a longer reply elsewhere explaining to sudosysgen explaining why you are correct and there was never a US vaccine export ban, despite widespread claims otherwise. (I have to post it every couple of weeks on Hacker News.)
The context here seems to be that SpaceX is in fact building an old boring fracked well gas plant in federally protected land, but because they cursorily mention rockets and call it a "methane processing thingamajig" instead of what it plain is, the FAA who has no experience doing environmental review but is involved because rockets is all too happy to just nod it through.
That wouldn't be the Union Jack then, but a blue ensign (or whatever variation of the blue ensign Trinity House use).

It is an odd quibble as another commenter put it - I guess being well-researched is exactly what makes pieces like this interesting, so I was struck by how easily an errant detail distracted me from that - especially one that could so easily have been omitted.
Show HN: Alon – Build and test Solana BPF programs in the browser
Alon is an IDE that is able to compile Solana programs in the browser by making use of a WebAssembly port of Solana's fork of LLVM. It is able to compile Solana programs into both Solana BPF programs and WebAssembly modules.

Alon also comes with a WebAssembly port of Solana's program virtual machine, which is used to run Solana program test suites in the browser.

The code editor for Alon additionally comes with Treesitter integrated, which Alon uses to incrementally build a syntax tree which may be used to develop static analysis tools for Solana programs.

Try it out in your browser: https://lithdew.github.io/alon/

For more details: https://devpost.com/software/alon
> Any tips on how to get faster?

quality

take the time to write quality code, design quality systems, debug things the right way, don't rush, take your time

before you know it, writing good code (and systems) becomes second nature and you will get faster as a result

in other words, fast people/teams know how to be fast because high quality is second nature and they don't waste their time fixing bugs and retesting again and again
Nuclear still makes sense now. We can't just aim to have our current electricity needs be filled by renewables, we need to plan for even more electricity for vehicles and industrial processes that currently depend on fossil fuels. Not to mention the large amount of residential furnace and water heaters that also depend on fossil fuels. And if we're ever going to start really sequestering carbon, having excess energy from nuclear is going to help a ton.
The actual correct translation would be "acquiescent"
> We need to get rid of them all eventually.

Totally agreed! But for me I'd love to strike the word "eventually" from the sentence. At this point we're in such deep shit that we have to move more quickly than "eventually" in my opinion. :)

It's far better to emit NO pollutants in your home (and cars!) than to emit less, especially since polluting home infrastructure is replaced every ~15 years and pollutes for its entire lifetime.
Re: project

Is a common subject line from clients. Heuristics that work internally, those that allow emails to be ignored, fall by the wayside when big money detail oriented customer service is the job.

What matters is how the client used email. If it is confusing and more work than it should be, so what? Sucking it up is what legal professionals are paid to do. When a deal crashes, there’s no debug and recompile cycle.
I hadn't come across this laptop before - looks pretty good!

Do you own one? Keen to know what real world battery life is like, and if there are any tradeoffs/annoyances?
> Not really. The whole point of constexpr is to state that an expression is constant, thus the value returned by the function is computed at compile time.

That's not even one point of constexpr, let alone the whole point. Putting constexpr in front of a function declaration does absolutely nothing to the codegen. See for yourself: https://gcc.godbolt.org/z/34h6Tanzn

Notice that both h() and f() are called despite being constexpr.

> To me it seems thay annotating a function with constexpr is the clearest and most straight-forward way to go about expressing constant expressions.

Again, it doesn't do what you think (see above). It does absolutely nothing to a function.

> To each his own, but if the whole point is to represent constant expressions then the constexpr keyword seems to be straight-forward.

This isn't an opinion thing. The consteval literally does what you're imagining constexpr does. Just replace constexpr with consteval in the code above. (I could probably argue that one has little use too, but that's not what I'm arguing here.)
It's very easy to argue that the United States is wealthier than it was in the past and wealthier than China is today, because these things are unambiguously true.
But has he done an explicit post-mortem of his "end of history" idea which obviously went belly up?

I agree that liberalism is a good thing, the only problem it's not me you need to convince, but Putin, Erdogan and Xi, and they obviously don't want to give their power like it would imply. What' even more concerning ia that nobody else seem to want it. It's not like people are lining to replace Putin, Xi or even Trump.
Because our profession is a lot less like “medical doctor” or “airline pilot” and a lot more like an amalgam of various specialized medical technicians, levels of nursing, and medical doctors all in one “profession”, without hard boundaries, and with hiring processes that can probably reliably distinguish the equivalent of a phlebotomist from a the equivalent of a cardiac surgeon, but not super reliably distinguish lots of other qualification differences that would be distinctly different professional qualifications if the industry was like medicine.

And there are programs for the lower levels of that amalgamated medical grouping that are much less involved than typical coding bootcamps.
Ah, in the US gas is the most common and I'm not sure about the UK — just going off what the article mentioned.

But yeah, my understanding is that burning gas in your home produces less CO2 than burning coal or oil, but they ALL pollute (and gas often has methane leaks from pipelines which is worse for warming than CO2). Whereas a heat pump emits nothing, is ~3x more efficient than gas combustion, and will increasingly cause no emissions as the grid is powered by renewables.

It's far better to emit NO pollutants in your home (and cars!) than to emit less, especially since polluting home infrastructure is replaced every ~15 years and pollutes for its entire lifetime.
I still dont understand why printing as a services has not caught on anywhere else.
It's its brothe (more accurately its inverse), usually written Phi with a bar on top. They both respect the golden ratio.
this this was posted a few days ago

https://archive.ph/EEONB

seemed like a hacky political statement to me -- not based on fact

maybe he's going to work for an ai defense contractor or something.
> This is somewhat tangential, but in my opinion implementing Optionals as a "normal" wrapper type, as is done in Java, doesn't really help that much

The great thing about Rust is that `Option` is a normal, generic type. You could very easily implement your own equivalent type.
Again, don’t know where you’re getting this. 2020 MacBook Air has a glass panel. Ctrl-F “glass” on https://www.apple.com/macbook-air/specs/.
Canon was actually on my short list of printer vendors I would have recommended people to use. Now it's just down to Brother and Kyocera I guess.
? is used for Option. Just like Result, ? propagates the Err/None to your caller, and unwrap asserts that it's not present.
So the MSFS2020 plane wasn’t huggy, but actually was replicating real world plane?
I have been fairly lucky, I guess, with Canon printers.

I purchased a large format printer in 2007 to print tabloid size photos. And then I purchased another in 2015 with a scanner. I believe the large format one still worked, but it was large (obviously) and I had less need for it or space for it with kids around.

The current one is almost 7 years old. I keep looking at laser printers, but until this one actually dies, there is no point to replace it and I would lose the option to print photos.
Markdown Note Sharing
opensource printer
A note sharing website that allows you to write your notes on markdown and highlight your code
That is a good point. I guess for the purpose of this definition we need to make some more assumptions. But decoupling software development from the business completely is going too far the other way.
That's essentially the definition. φ is the solution to

φ^2 - φ - 1 = 0

Which can be re-arranged, by dividing by φ to,

φ - 1 - 1/φ = 0

or:

1/φ = φ - 1
I believe Russia runs the only 2 breeder reactors known to be operational? So if they can get away with it, seems like major nuclear powers could agree to produce fissile material for energy purposes, keeping public record of how much is made and selling some limited quantity to poor countries for running small plants. Require public audits by an agreed upon body created for such a purpose and representing equally each major nuclear power. There can be solutions made.
Federal income taxes top out at 37% but state taxes add on to that. Most states have a top bracket over 3% to get it over the 40% threshold to break even. California has a top bracket of 13.3% for a total of 50.3%, so that example would be a net profit of a million dollars.
If you don't need frequent scanning of multi-page documents, scanner apps for smartphones do stunningly good job of creating PDF document scans using the camera.
How cheap are you insisting on? Single function networked color laser printers are in the mid $200’s, new.

If you add a page fed scanner, you’re looking at $400-500.

Surely, you’ll waste $100’s on dried out inkjet ink and buying a new inkjet printer / scanner combo every 2-5 years.
Metaverse cheat sheet: Everything you need to know
It's almost like you missed the point. The cops are playing music because someone else is recording them. That is the counter surveillance.
Looks like you have much to learn about Rust. Option can also use `?`

Example (from [1]):

// Assume
// fn halves_if_even(i: i32) -> Option<i32>

fn do_the_thing(i: i32) -> Option<i32> {
let i = halves_if_even(i)?;

// use `i`
}

Besides, the `?` is syntax sugar for the `try!` macro as explained in the `try!` macro docs [2], and has nothing to do with sum types, at least not directly.

Ceylon would be a closer case where nullable types are represented as sum types and not a special-case in the language (`String | Null` is the same as `String?`)... but Ceylon, as Rust, special-cased the `?` operator for "something"... in Ceylon, they are used for null-checks, and in Rust, for propagating errors via the `try!` macro, which is what my previous comment was about.

[1] https://stackoverflow.com/questions/42917566/what-is-this-qu...

[2] https://doc.rust-lang.org/std/macro.try.html
So would this model be able to predict any imperfect PRNG with some degree of accuracy, or just xorshift128? For the purposes I'm thinking, even 1% accuracy above purely random would suffice.
You kind of missed the point. The high paid work is easy for the people who have the skills and experience. But getting those skills and experience isn't easy.
Back then that was likely true. Just like building linked lists from scratch was on the same level as writing a basic loop nowadays

High level programming languages have come a long way in the past 20 years. So many things we no longer need to think about in normal day to day programming