skysight-inc/HackerNews huggingface dataset:
I would try to implement PokeTypes by using an enum to define each PokeType. I'd have a dictionary that stored attacker, defender pairs as a key and the value would be the effectiveness of the attack. The "eff" function (which I'd call something like attack_effectiveness) would just be a get from the dictionary that defaulted to NORMAL_DAMAGE if the key wasn't contained in the dictionary. Later, I'd probably build up the dictionary from something that was easier to read and update to make maintaining it easier.

My point here is that I don't really see the point of using types to implement this functionality. Is my approach weak in some way that is solved by this?
Seems I’m being downvoted for not interpreting the same way as others. I haven’t spouted anything offensive, I have told anyone they are wrong. I’m listening and reading other opinions carefully. HN is valuable because as long as people are genuine and open, not deliberately hurtful or malicious, it is a place where different perspectives can be examined and resolved. It is a place that has miraculously managed to facilitate free discussion without being colonised by so called free speech advocates dog whistling hate.
If you're motivated enough to down vote, could you please take the time to point of the parts of the thread that lead you to believe that I am mistaken to take the muse posts at their explicit meaning rather than the implied threat.
Otherwise we are conducting discussion by punishing dissent, which on a larger stage just supports the status quo of rights holder power. While I don't think this particular disagreement in itself is a hill I want to fight for, I think the way discussion happens here enlightens me and enriches my life and think its worth the effort to sustain that, and it is for that reason not out of some desire to provoke or trap, I am opening myself and my opinions up to critique, and genuinely ask what aspect of the posts you read as indicating a threat as opposed to the explicit claims. I'm not going to troll or flame back I'm just going to listen and re-read the post afterwards.
If half of American commuters switched to EVs, the daily energy demand on the grid would only increase by 10-15%. The difference between peak load and average load is close to 30%, so we could handle that new EV load with the existing generation capacity. We just need market solutions to incentivize owners to charge during off peak hours, which most utilities already have via time-of-use rates and EV-specific plans.
It's funny because C compilers have warnings for these, but you have to explicitly enable them. Typically my stuff looks like: -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=3 -Wstack-usage=12500 -Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2
Absolutely not

Libraries are public works, one of the few in our society sans the expectation of spending money.

It is important for people to just walk in and improve no questions asked.

And I do not care what the opportunity is. There is almost every other way possible to grow and make money.
fair enough! :-)
Cache has extra capacity so bad parts can be mapped out during the testing process. If there's a fault in a core the entire core is disabled. A fault in the uncore will probably cause the entire chip to be scrapped.
I’m not sure but I think it stands for military industrial complex.
Interesting how quickly the people responsible for minding the levers of inflation call out that it will be temporary when at the same time saying what’s happening is unprecedented...
Is it resolved at compile time? it was my understanding that Julia only attempts it at runtime, specialization being the job of the JIT
I wish people would justify their down votes with some comment. This poster is pointing to a pretty valuable part of this discussion and is down voted with no reason?
And macOS has the "Stationery Pad" file attribute, where a "Stationery Pad" file has the semantics that whenever you open it, you're actually duplicating it and then opening the duplicate. (I believe this results in "Stationery Pad"-derived documents acting much like new blank documents in most programs, in that upon attempting to close the document, the program will force you to choose between discarding or naming the new document.)
Military Industrial Complex
This solution works until you have 1 type that has a different fallback than everything else.
There is little practical difference between asking a court to enforce an automatic termination clause and asking a court to enforce the exercise of an option to terminate. One will require showing the automatic termination clause is triggered, the other will require showing the right to terminate arose. In either case they’re trying to get ChessBase to cease any use of the software, and they want a court to order them to stop because the consequences of violating a court order are substantial.

In a technical sense yes, the GPL avoided giving rights holders an option to terminate. There’s no such thing as automatic enforcement of these things though (well, not for GPL, music industry is a different story), so it is not a big difference. I’m pretty sure you could just send a violator a fresh copy of the code and establish a new license agreement with them, so it’s still up to the rights holder if they want to continue.
I don't think Zig is going to be memory safe in practice, unless they add a GC or introduce a Rust-like system. All of the mitigations I've seen come from that language--for example, quarantine--are things that we've had for years in hardened memory allocators for C++ like Chromium PartitionAlloc [1] and GrapheneOS hardened_malloc [2]. These have been great mitigations, but have not been effective in achieving memory safety.

Put another way: Anything you could do in the malloc/free model that Zig uses right now is something you could do in C++, or C for that matter. Maybe there's some super-hardened malloc design yet to be found that achieves memory safety in practice for C++. But we've been looking for decades and haven't found such a thing--except for one family of techniques broadly known as garbage collection (which, IMO, should be on the table for systems programming; Chromium did it as part of the Oilpan project and it works well there).

There is always a temptation to think "mitigations will eliminate bugs this time around"! But, frankly, at this point I feel that pushing mitigations as a viable alternative to memory safety for new code is dangerous (as opposed to pushing mitigations for existing code, which is very valuable work). We've been developing mitigations for 40 years and they have not eliminated the vulnerabilities. There's little reason to think that if we just try harder we will succeed.

[1]: https://chromium.googlesource.com/chromium/src/+/HEAD/base/a...

[2]: https://github.com/GrapheneOS/hardened_malloc
You never taken a regional train? I've never gone through in less than 30min. However I have boarded a domestic flight in 30min
That's a good tip!

Sadly it does not save me from going and editing a system file as non-root and then trying to save... :(
Xen is bloated and has a security hole history. This also ignores the size of the Linux acting as dom0, that is.

The only correct answer is formal reasoning, as successfully executed by seL4.
You should probably re-read his post.

Plus, it's not pedantic. Saying that the holocaust was a eastern-european thing (or that the polish were largely responsible) is a common way the far right in germany try to diffuse and deflect responsibility.

I don't think OP is doing that, but I still think it's an important thing to remember - that the holocaust was the project of western europeans, i.e. it's not somebody else's problem.
Tomayto - tomahto, right? Physically speaking, what’s the difference between an unresolved superposition and a different kind of unresolved random variable?
The "portal" feature is so much exactly what I've been ranting IRL about wanting in a pdf reader that I'm worried you've been stalking me

Seriously, though - thanks and congrats
Like that wouldn’t cause a heart attack?
I see lots of claims that there are no damages since Stockfish is free. I'm not a lawyer, but I don't think that argument is the end of the story. Google Vs Oracle was over code that was public and given away for free, and Oracle was asking for $8.8 Billion US. They didn't get anything on account of copyright not applying in the case, but there's no doubt some very significant money would have changed hands if it went the other way.
Just want to add that climate change doesn't simply add heat, it also often disrupts weather patterns which can cause more drought--and that's arguably more dangerous than just warmer weather.
8. They are using a landline.
New idea for a t-shirt. “Baltimore: Trump hates it.”
How is this related to cancel culture? It seems they just wanted the handle - fucked up, but not cancelling. Stop flamebaiting please.
but where do most people actually work?
Just too faint for the naked eye to see is actually really, really bright compared to a lot of astronomical objects of interest. Enough that it could easily saturate a long exposure, and depending on how close it gets to the target, completely ruin the frame.

Fortunetely, that's less of a problem in the middle of the night, bu there is something else that worries me. What if far from sunrise or sunset the sattelite occludes an object you are observing, without leaving a trail? Hopefully, statistics would level that out, but with enough of these sattelites, the chances of that happening go up, and it may lead to incorrect results.
The main difference is that Julia uses more complicated subtyping and specificity to let you express some useful more complicated relationships (e.g. diagonal dispatch).

Also, there is a major difference that in Julia all methods use multiple dispatch (and there isn't a performance cost to doing so). Multiple dispatch in Lisp was severely limited by people not using it for performance reasons.
Potentially Intrusive Practices in the Browser: A User-Centered Perspective [pdf]
I don't even had a car for the 6 last years. I don't commute(remote work), If I need items I do home delivery, If I need to be somewhere I ride my motorcycle or a cab.

I love enduro riding and MX racing though. Tried to do this electric didn't really like it. Maybe it will grow on me when it improves.
Bit bold to assume that the people making these decisions "forgot" anything. Design's about trade-offs.

The claim here is that the thing that makes your language easier to pick up initially nonetheless hobbles it for long-term use - refactoring, adding features. There is a business case for making the latter easy at the expense of the former.

Code can be easy or hard to write and/or change at various levels of complexity, and it's hard to solve for everything when designing a language.
Oregon's fire helicopters were in Afghanistan if that helps.
So true, I really have to say Explorer sucks.
Recently I've been bothered by an issue that it tries to fully read every ts file, like maybe it's trying to read a Typescript file, but in my recent cases they are usually streamed video files of several GBs... It just never gives up and use my disk usage at 100%, I just have to kill explorer.exe everytime. I even tried messing with Registry about ts file but that's no good.

And even its Item Handler system is flawed. Still about .ts, it could stutter when I open context menu on ts files, then freeze forever if I hover over just 1 bit on "Open with" menu.
I can guarantee you that unless you're an experienced professional chef yourself, restaurants make way better food than you can make at home. They make the same dishes night after night after night for as long as they're working for that restaurant. They have measurements of ingredients, cook time, how to cut everything just right, etc. baked into their muscle memory. They know every little trick and hack to bring out every little bit of flavor, which they've built through years of both experience and being taught on the job by more experienced cooks and chefs.

A couple of decent summaries:

* https://www.thedailymeal.com/eat/why-home-cooked-food-never-...

* https://old.reddit.com/r/explainlikeimfive/comments/1f1vr6/e...
Wow. Didn't know of this feature until now. Thank you!
Math tracking exists but whether it exists and to what level varies by school district. It’s probably not the same as what you’re thinking. The variance in levels is also limited (based on what I’ve seen) and, in my opinion, carries a stigma because of how it’s presented (ex: honors track is literally named in a way to say “these kids are better”). My comment is more about normalizing the idea of separating by level such that kids don’t feel dumb for being in a “slower” track and to also have the variance span more than a single year/grade level.
The whole system relies on naive trust. Maybe we need to move to trust but verify. This would mean that you investigate first.
A better alternative would be to keep PID1 as simple as possible, and do anything more complex in a subprocess.

Systemd of course goes in the opposite direction: It assimilates as much functionality as possible from the OS into systemd (though to be fair, not all into PID1).
Yep, that's the case for me. The plausible choices for me personally are basically remote work, commuting to DC on MARC, or starting a company with a remote cofounder.
This isn’t really true… there are a myriad of web tools that provide similar functionality and most are free such as:

- https://gamestonkterminal.netlify.app/
- https://gbear.trade
- https://app.hypeequity.com/monitor
I love servants!
Plug-in EVs emit fewer greenhouse gases than gas-powered cars
> Panera, Qdoba, and 5 Guys. Just a monoculture of terrible bland food.

Compare with the food in the US say, 40 years ago. Whatever you feel about Panera & Qdoba, they are not bland by comparison with food the way it was within my lifetime.

I don't like 5 Guys much, because I'm not much of a burger eater, but they too are generally of significantly higher quantity than most burger outlets from 40 years ago.
Little known but latest VMware Fusion and VMware Workstation comes with kubernetes OOTB (vctl, kind). It has never been easier to start up a cluster.
Perhaps depressed wages are partly to blame for the lack of automation in the current economy. If there is labor scarcity it may unlock new innovations by forcing market participants to find more productive uses of labor.

Labor force participation has been falling for a long time as labor sellers (employees) fail to find an adequate price for their labor from employers (the buyer). Many economists assumed this was the fault of the labor seller for not having skills attractive to buyers. It's also possible that in certain segments employers were using labor in-efficiently, or simply miss-pricing the value of a worker.

Which is a long winded way of saying that a higher minimum wage may bring more labor into the market, while simultaneously forcing businesses to leverage automation to improve the productivity of said labor.
Sure, but I think the underlying instinct behind "evidence based software engineering" is precisely about turning those "maybes" into measurements.

In principle, I'm in favor of this endeavor, and the article at hand expresses frustration about apparently arbitrary barriers towards accomplishing these measurements.

I don't know about you, but I'm generally always in favor of "let's measure more things and build more models from that data, to make sure we're actually improving"
Why would anyone go outside to meet the police with a gun in their hand?
I’m amazed by how short sighted most of the comments here are.

When it comes to large financial operations, society has clearly chosen transparency over privacy. Cause guess what, tax evasion, money laundering, political fixing, terrorism financing are things that exist and really are hurtful to our economies.

Stop fantasizing that the government cares about the shit you buy. This is not about you.

And Bitcoin’s anonymity is not a feature of blockchain and never has been. There is the wallet, but who holds the wallet is not part of the protocol.

You can’t show up in a bank with a bucket load of $100 bills and open an anonymous bank account. Well you shouldn’t be able to with bitcoins either.
Incredible! The planes are "unique in their class" and they have "a combat radius of 1,500 kilometers, the largest thrust-to-weight ratio, shortened takeoff and landing, more than seven tons of combat load, which is an absolute record for aircraft of this class."
I highly second this.

I've worked retail before (Apple Retail, Genius Bar specifically, so probably one of the more decent and better paid retail jobs in the grand scheme of things), and dealing with customers was one of the primary reasons I changed careers.

You only need so many people looking down on you because of nothing other than your job, to make you want to do something else.
On the other hand, if someone actually is threatening another with a gun and extradites them inside, giving them a heads up in such a manner could initiate a hostage situation. Surprise forced entry minimizes the chance of human death in such a situation since it's likely that the person doesn't have a gun constantly pointed at the victim while they're in the house.
> "targeted surveillance as a service"

Is it just a commercial service in the first place? Or a deniability cover for Israeli spy agencies?

Remember, every pegasos hit was cleared by Israeli cabinet as a "weapon export"
It sounds like the police did a fairly rational thing here. They went to the house in a large group, they asked for the person, told him to out down his weapon, and didn’t shoot him. That sounds like a reasonable response, even though it ended in tragedy.

The only people responsible for this were the people who called the police with a false report. That is the crime.

I think cops do a lot of bad shit and need to be held accountable, but this sounds like they did the right thing.
no i'm responding to someone acting like "there is no other way to handle this" who's clearly not considered that other countries handle it rather differently
How to Not Get Scammed Out of $130k in Crypto
This seems like an overreaction
In terms of registrations, sure, but what about surface area? I can only think of very small pockets of places where the heavy majority of establishments are part of some megacorp

The suburbs are especially bad....
> Yes, that should horrify you - but so should the idea of just erroring and dropping it when someone first tried to write it, which is what an RDBMS would do

Have you ever actually encountered any RDBMS that just silently "drops" your write without informing you, or is this just how you think they work?

Otherwise, isn't this just like any other data write erroring out -- MongoDB driver saying "Service down!", simple flat-file write saying "Disk full!", etc -- in that if your app doesn't react to this, it's not the data store but your code that sucks?
With the voip spam, it'll come from Russia, China or India.. it's a major denial of service threat we are ill equipped to handle. We need crypto style authentication for phone calls.
not send swat? actually at that not have a swat team that needs to justify its existence?
Human trafficking, illegal arms sales, ransomware attacks every day, one of the world's richest men pumping and dumping a meme coin... no big deal?

It might be that 'most societal advancements are crimes in the beginning' but it doesn't follow that most new kinds of crime are societal advancements.
Another one that I use from the address bar is "subl -n ." to open a temporary Sublime Text project. I imagine you could do something similar with VS Code.
I can't imagine I would ever actually use this type of support, but knowing it is there increases the odds that I would apply for a job at Gitlab. It makes me admire the company's culture more than probably any other benefit I have seen offered in my time in tech.
An convenience that I use all the time and really miss on macOS. I found a substitute app [1] which works well.

[1] https://langui.net/new-file-menu/
Why does everyone talk about regulators as if they rule over us rather than answer to us?
But does that particular nuance invalidate the general point of the parent post?
No i'm responding to someone who things "there is no other way to respond" when clearly given many other countries don't have this problem, there must be?
Wait, that's not right. Where's the wires and green screen?
It’s interesting because copy and pasting a class gives you something humans love: a template!

Now what if: for OO languages the virtual methods can be adorned with both an example basic implementation and a comment with instructions.

Then when you do the “implement abstract methods” IDE shortcut it fills in those example implementations.

Basically you are saying “they are going to copy paste anyway, let’s get them started off with a decent example”
TLDR here is that Julia is better described as Just Ahead of Time (JAOT) instead of JIT. Julia isn't using a normal tracing JIT where things start running interpreted and then get replaced. When Julia first runs into a new function (or function being called with new argument types), it will statically compile (at runtime) code for that function being called with those argument types. When it does this, it will use the type information of the types the function has been called with, to do all sorts of optimization (de-virtualization, inlining, etc).

Once this method is compiled, it will be used whenever the same function is called with the same argument types.
The difference is that one of them informs you when you've failed at generating valid data to save, and the other doesn't.
There are as many drive by helpers as there are trolls.
Maybe you only work on your own code more often than not but I've had discussions during code reviews with junior developers on why this is bad practice.
> This total control nonsense will eventually end and these dinosaur idiots will stuck with their own destructive ideas

I agree with most of crypto’s philosophy. But this obnoxious naivety makes me root for and materially support the other side.

Is there a word for this?
And yet the minors will only get a slap on the wrist (if that). Causing serious harm to others should come with consequences, regardless of your age. Kids get away with all kinds of heinous crimes for which adults would be put behind bars for life, and that is wrong.
what does "classically" mean, concretely?
You mean Chemistry? They commanded the best offers at the time.
Firstly, I'm against corporate welfare and I don't care how people spend their money. But, damn... the people who ushered powered flight into the realm of possibility? That is a ridiculous analogy.

SpaceX, Blue Origin, and Virgin Galactic are incorporating scientific advancements and modern engineering into an industry that has been making orbital flights for over 50 years. We are not going from horses to cars... We are going from a 1920 Cadillac to a 2021 Toyota. Maybe it's a childhood dream and they have lofty goals to guide humanity into space... or it's a lucrative long-term investment... or a little of both. But, the technology has been there, we've had an active presence in space, and the modern space race will not provide us a huge leap in technology like we saw from the cold war. [1]

Space tourism isn't going to move society forward. The "big picture" benefit of space tourism is reducing the cost of payloads which will continue to drop for NASA and telecommunication demand anyway. Space tourism will not substantially improve the quality of life for humanity, it will not provide breakthrough technology (outside of things like human life support systems), and it will not significantly enrich our collective culture. The median quality of life will not benefit from space activities until they bring us some cheap platinum and other precious materials.

Sorry to be a Debbie Downer... I just hate the romanization of this whole thing.

[1] https://d2pn8kiwq2w21t.cloudfront.net/original_images/infogr...