skysight-inc/HackerNews huggingface dataset:
I like the new style C++ FileSystem API's where you can either have an error code set or a thrown exception depending on the method overload you choose.

I like this a lot since generic utility methods can have use cases where you sometimes want an exception thrown or simply an error code returned.

If I am working in Java and a checked exception is thrown, my method usually allows the caller to supply an Function<UnderlyingException, DomainException> so that the caller can specify that a domain exception should be thrown instead of having to try-catch the thing.

But I agree with the author of the article - Exceptions are the right design technique when the caller considers an error as a failure as opposed to an unusual but handlable situation. Messing with Result in a deep call-stack is painful.
Life expanded because there were resources and opportunities on land. Plants grew there because there were no predators and then some animals managed to go eat them and benefited because there was little competition, I don't see a real analog there for Mars. [0] I think an actual Mars colony is centuries out just due to the amount of things left to invent to make it viable. We still haven't really even retried a closed circuit environment here on Earth where it's easier to ship in base requirements like additional nitrogen. [1]

[0] Beyond that I'm increasingly skeptical of any attempts to draw parallels or inferences from evolution about humans today because so much like evo-psych turns into unfounded garbage. Once a species gets to the point it can manipulate it's own environment and mortality evolution gets shaky as a framework.

[1] Simpler atomic components and resources could be mined on Mars where they couldn't in space so I'm allowing for some basic supplements extracted on Mars.
Sincere question, how is this not transparently a pretext technicality for with-cause to avoid settlement, given what banks tolerate from people who make them money?
Sure its possible, but if they were actually forensics "experts" then they would have been able to explain exactly what you did. That the decryption key was removes from the device.
>Why do you want to a horde of “non-professional[s] with a pair of eyes and a smartphone” to contribute if literally hundreds of professionals with high-end equipment, meteorological observation satellites, and oodles of computational firepower are already on the task?

Because the Earth is huge, data collection is expensive, and funds are limited. There is a lot of [literal] ground to cover and it's perfectly feasible to augment professional work with amateur data, now that pressure, temperature, and location sensors are relatively cheap and ubiquitous.
That's not a great adage though. Sometimes the presentation is so poor that it impedes reading the content, and that line is going to be different for everyone.
First of all, I've done plenty of hiring. You should not worry about a 12 month gap. It will have a minor negative impact on getting callbacks. You might have to work slightly harder at your applications to compensate. If you're already getting calls and interviews, you've already passed through the filter since a gap is most likely to hurt you while a HR recruiter is sorting through a large pile of resumes.

You can still do things with your resume to make it more likely to get through the resume pile filter. Did you do any personal projects, classes or open source that can show continues professional interest and passion? Try putting something on your resume about it. Or if you've really done nothing but relax(which is OK!), now can be a good time to start working on professional development, then you have something to speak to when asked what you've been doing with your time.
Also from that link:

> Our localized approach to studying the relationship between climate and society reveals that the burden is spread unevenly. In many counties, GDP decline could total more than 10% by 2100, and in the worst-hit county, Florida's Union County, losses could near 28% for a likely warming scenario under continued emissions growth (the 7°F median change, not the extreme 15°F change highlighted in press coverage). The combined tally almost certainly understates the extent of the damages, because the worst effects are concentrated in places where incomes are lowest. Tumbling incomes in poor counties have a correspondingly small impact on nationwide GDP, meaning the economic burden of climate change is reduced because it falls on those with low incomes.

> If the burden is spread evenly, 1% or 2% of national GDP might seem manageable, but we will not all be equal in the face of climate change. Across the United States, there will be winners and losers. What is lost in all of this noise is the sad fact that even those smaller numbers are too high a cost. They come from a subset of outcomes that are well-measured. As ever in this debate, it is important that we look beyond the headlines, beyond the averages, and examine the people at the heart of the issue. Look at the mass of evidence that points to people who will actually be negatively affected by climate change. They are not abstract people not-yet-born and in some far-off land. They are your neighbors. They are your friends. They are you. Combining local climate projections with historical observations yields a personalized, evidence-based outlook of future risk. Our ongoing research is mapping out these local impacts across the globe.

That sounds pretty catastrophic.
It's funny. IBM is one of very few companies that are producing not one but two of their own CPU architectures and ecosystems of machines around them.
I've been using 1Password for 9 years now with >1k passwords in my vault. I'm mostly happy with it exactly because of the smooth cross device experience (all Apple based, though).
The Linux kernel as a whole is developed by people who rarely see each other in person, but there are several caveats that make it hard to generalize from that.

* Individual parts of the Linux kernel are often developed by people who do work together in an office (e.g. I used to sit with a bunch at Red Hat).

* Top-level Linux folks do meet in person fairly regularly, especially at LF events.

* Collaboration via email etc. is the primary workflow for the kernel, so there's no in-office cabal that has to learn new habits (and likely will resist doing so).

I'm also tired of hearing how silly startups can't do remote, but I don't think I'd hold up the kernel as an example that they could/should emulate.
you're right, edited the title
Reading this as the work of actor James Woods is funny, but reading it as a literal sentient, personified, block of wood is even better: "What are we to think, then, about a critic criticizing a critic? Do I intend to get you to see Sebald or Roth as I see Wood seeing them? But of course, to see Wood as I see him is, in part, to see how Wood sees."
There is also a long discussion on pros and cons of checked exceptions here:
https://forum.dlang.org/thread/hxhjcchsulqejwxywfbn@forum.dl...
It depends on the infrastructure but sometimes emergency calls are routed differently, sometimes over completely different systems. There's a system in the US called GETS that allows federal, state, and local government agencies to make high priority calls over normal commercial phone systems and will also make use of government only phone lines, whatever will make the connection. The agency gets a special code and a certain phone number they dial first (just like using one of those old long distance cards). There is dedicated bandwidth just for these kinds of phone calls so even if all the lines are full, there is a guaranteed 90% call completion rate if the call volume is 8 times higher than normal.

There's a wireless version of this too although it doesn't quite work the same so I'm not sure how effective it really is.
> For a development and staging website you do want notices and warnings displayed.

Just SSH in and tail the log. Dealing with unexpected output from errors clobbering your headers isn't worth the trouble.

You can also try something like FirePHP [0] if you need the errors in the context of the current page.

[0]: http://www.firephp.org/
This is kind of true but not quite. If you don't want to deal with any exceptions in your function you can declare that it just throws java.lang.Exception or put a verbose list of exception types in your method signature.

On the other hand, you're also free to catch and process some and only propagate a subset outside of the function or even wrap the ones you want to process and throw a different exception type from within your function that wraps the existing ones. It's not mandated but pretty idiomatic in Java that any Exception type you define should be able to accept a different exception as its 'cause' in your exception's constructor signature.
> It's not a normal thing for code that needs that record that wasn't found.

No offense, but I don't know where that idea comes from. Systems are checking for records all the time in ways where the absence of data doesn't necessitate throwing an exception.

For instance, a page, user, or piece of media on a website may have existed at one point but was since deleted, but still has a permalink floating around the net. Is it useful, in the case that someone clicks on such a link, to throw an exception when I can instead choose to render different page content when a record wasn't found? I'll never need a stack trace for that.

> They tell you lots: you asked for something your code path wanted and your request couldn't be satisfied. Also, you've been helpfully kicked onto the alternative execution path to handle that situation.

Why would I want a code path for expected behavior? I agree for cases like a failed connection, where the system is actually broken, but there isn't anything fundamentally broken about data absence.

> Also, you've been helpfully kicked onto the alternative execution path to handle that situation.

That's not only presumptuous, but if I wanted that to happen, I can do so myself.

> Exceptions are a hell of a lot better than littering your code with null checks or error code checks, especially when you forget one and get a null pointer error.

Hmmm...

const record = store.findRecord(params.id);

if (record) {
render('show-record');
} else {
render('record-not-found');
}

or...

try {
const record = store.findRecord(params.id);
render('show-record');
} catch(err) {
if (err.name === 'RECORD_NOT_FOUND') {
render('record-not-found');
} else {
throw err;
}
}

I'll let people decide which one is better. I personally prefer the first one.
If you notice, almost all big trucks have hand painted signs on the back saying "HORN OK PLEASE"

https://en.wikipedia.org/wiki/Horn_OK_Please
Eating red meat and processed meat hikes heart disease, death risk
See, having reasonable typed exceptions is perfectly acceptable, but that's rarely been the reality I encountered. About every method in our code base has the same 3 checked exceptions in the declaration, and none of them are handled - they're even passed to service clients.

And it's just super clunky, but the devs who came up with it just refuse any suggestions to have expressive exceptions (that's what exceptions messages are for). It's impossible to actually know what could go wrong when calling any method.
PS3 I think (Cell), and Xbox 360 (tri-core Power chip IIRC).

Was the PS2 one of theirs as well?
Watson wasn't an amazing technology demo.
Location: Atlanta, GA
Remote: Yes
Willing to relocate: No
Technologies: Go, Rust, Docker/containerd, scalable systems, XMPP, real-time communications, event sourcing and message buses, etc.
Résumé/CV: available by request, see https://stackoverflow.com/users/story/1087001 for a summary
Email: sam@samwhited.com

Passively considering finding a medium to large company that values good engineering and long term customer satisfaction (ie. a stable product) over shipping new features. Would prefer a unionized workplace or at least actual vacation time instead of nebulous promises of "unlimited" vacation, but a lack of either is not a deal breaker for a good fit otherwise. I sometimes consult in using good development practices and procedures to prevent issues before they begin, and would love to bring that knowledge to your company and see if working together would be a good match. I look forward to hearing from you!
Show HN: Completion daemon for {bash,zsh} that detects `–help` usage
What about under it?
SEEKING WORK | Cologne Germany | Remote

Full stack developer with a strong sense of product ownership.

Looking to build more web apps with a team where everyone shares responsibility and market interest.

# Skills:

- React (5/5) => Redux, CSSinJS, Compose, Hooks

- GraphQL(4/5) => Relay, Apollo

- Node (3/5) => Sockets, Knex, Express, Apollo-Server

- JS-FP (3/5) => Ramda, Lodash,

- Design (3/5) => Figma, Design Principles

# Past projects:

(in different capacities, always Full stack)

- B2B event ticketing platform (webApp)

- Virtual reality car showroom (webApp)

- Display soil analysis samples (webApp)

- Amazon ad bid automation platform (webApp)

reach me at me@larsnolden.com
What then, is Elon Musk marketing? Space? For whom? In what fashion, and for what purpose?

Exactly how many people, in the best possible scenario, would we have the capacity to transport to Mars, or even simply into space?

What happens to everybody else? There are billions of people on the planet. Does Elon Musk plan to send even 1/10 of them to Mars?

So yeah if one's goal is helping preserve the human race, unless you're ready to write off the planet and everyone on it as totally fucked, not sure how Mars is a solution.

You can make an argument about the _technologies_ developed in the space application process having value for the planet, but, that's a different argument.
What good is the EU if its wealthier members are unwilling to subsidize the poorer ones? Germans want the benefits of federation without the drawbacks.
You're forgetting about mining.
Interesting, I don't see any mention retiring the note because of criminal use or anything about the 500 note at all. Is Bloomberb A/B testing the content of articles now? Would not be surprised, but it would be a disturbing trend.
Not really until language understanding improves substantially. All of the chatbot kits that I’m familiar with discard the bulk of the information in the user’s first utterance.
Latest Front in Food Delivery: Kitchens in Empty Malls
Why is it legal to post on HN links to stolen content?
It's almost a meme at this point, but the solution, of course, is algebraic effects. Among other things they let us implement checked exceptions, but in a sane way that's safe without requiring the annotation of every single function.

https://www.microsoft.com/en-us/research/wp-content/uploads/...
"we would need an effort that rivals WW2" Exactly and from what I remember WW2 had around 75 million casualties. Which is an unfortunate and grim prediction on what it's going to take to get any real action from politicians.
Then would you be nesting a number of exceptions. Some maybe real 404 exceptions, but some would be zero records found. And I think the zero records found should be handled in the business logic (if statements, switch/case), not in the exceptions.
Same here from the UK. I wonder just how bad their data protection policies are to have to geoblock EU* countries?
Don't need to bulldoze much of anything to do something though. The inefficiency of buildings is a tiny part of the problem, especially in temperate climates; more mixed use zoning, and the relaxing of single family dwelling zoning, will have a dramatic impact on excess travel.

Transport accounts for basically a third of U.S. energy use, though it has been hardly growing over the last few years, which is a good start.

The most efficient car, bus, or train, is the one that you didn't ride.
no wait, I'm not actually sure you're right

differential privacy is any search that protects individual inputs from disclosure
Why couldn't you use a cashier's check?
This comment is inappropriate and should be removed. It violates the #1 fundamental rule of this forum - to argue the argument, not the arguer.
That is like C++ destructors, which are called deterministically when they go out of scope (again with no "try" syntax). They can unlock mutexes, close files, etc. But unlike what you describe, there is no need to put anything at the end of the function: instead, the fact that you have instantiated an object already guarantees that its destructor will be called later. This is called RAII, short for "resource acquisition is initialisation".
True. That's actually an interesting point.

But is there money to be made on Mars (that could not be made with robots)? Also, I suspect that the people who are currently being persecuted (e.g. Uyghurs in China) won't be in a position to leave Earth any time soon (e.g. in the next 100 years).

Still, even if both things end up happening, this is still not the same as having Mars as a plan B for Earth.
you can, in fact, compute a mean temperature for the globe. and you can, in fact, plot a trend line over that mean. and that mean is, in fact, meaningful.
I'm sure this is true, but most companies don't want this either. They lose money and waste time when this happens -- if they waited until the end to discuss salary (like they should be).

Some companies will try to feel you out for salary right off the bat in order to "weed out" anyone who would ask for too much money, and you need to always resist this.
Or you want a clean enough install, choose upgrade, and then keep nothing.
When I spent 3 weeks in Hyderabad in 2008, the red/green lights were completely ignored. As were lane markers and any other attempts at regulating traffic.

It was a complete free-wheeling anarchy. It somehow worked quite well, though I understood why I was given a 24/7 driver. I could maybe have survived driving, but I would probably have killed someone else, by not following the unwritten rules.

It remains one of the most astonishing things I have ever seen!
I'd just say I worked on personal projects for a year to learn new libraries/languages/frameworks.
I really hate this idea that everyone needs to just constantly be spending. It's useful but there is nothing wrong with having a slow stable fincal conscious ecconomy.
Gaia Platform (https://www.gaiaplatform.io) | Bellevue (Seattle) | Full-time | Onsite Preferred

Gaia is creating a platform to enable autonomous machines. We are building a new architectural model that is centered around data, in-memory databases, data-based programming models, robotics, machine learning, and new programming languages and paradigms.
We are looking for engineers at all levels with experience in ML, robotics, database implementation, expert systems, rules engines, and programming language implementation. We are also hiring for an industry-focused technical product manager working with industry partners and customers that are using or looking for autonomous machine solutions.

Our technology/platform will enable building the next generation of autonomous machines, including both mobile (robotic) systems as well as fixed systems that will do much more than be an embedded appliance. We are building our systems primarily in C++, but we are open to experience with different programming languages. Ideal candidates will have significant experience in one of our focus areas.

We offer excellent benefits, early stage equity, a great working environment on the east side of Seattle (Bellevue), and the opportunity to do new, creative, innovative engineering. This is an opportunity to be an early technical employee at a company with deep technical expertise.
Contact careers@gaiaplatform.io if you are interested. You can find more information at https://www.gaiaplatform.io/#careers.

Please note: If you contact us via email, please consider explaining what relevant skills and qualifications you have for our open needs.
Definitely NOT a tech fag!
In the article he posts a snippet of F# code:

type Customer = { Id : string; Credit : decimal option }

let average (customers : Customer list) =
match customers with
| [] -> Error "list was empty"
| _ ->
customers
|> List.averageBy (fun c -> c.Credit.Value)
|> Ok

And argues that the F# programmer must conclude that all functions may throw because this function accesses the Option.Value without checking that it isn't None first and there's nothing in the type signature of the function to indicate that it may throw.

Is that really how F# works? Similar code wouldn't compile in Rust. You have to handle both cases for Option<T> every time you want the value (or, yes, you can get the value by force, but if you do that, it's definitely NOT an accident and you're basically acknowledging that you want the whole program to crash if the value is None).

Anyway, I'm still in the Either/Result/Try camp. I even used Result/Try types in Java, Kotlin, and Swift (before they officially showed up in Swift and Kotlin).

I think the extra boiler plate in the middle of a function chain is absolutely worth it. I hate the idea that I need to actually read the source code of every function I call from library X just to see if it will throw an exception on me.

Swift has a pretty good compromise, IMO. A function's signature must indicate that it throws, but it doesn't have any type indicated. At least I know when I need to investigate a function further!
No mention of their acquisition of the Weather Channel's digital properties, or any other M&A for that matter. Hard to see how this decade was lost for them, rather than a significant investment into the future.
Wow, this "article" is tabloid-tier garbage. Seriously; it's the online equivalent of an opinion column in your grandmother's Sunday church newspaper.

Some quotes:

>> "[don't] click on suspicious links and attachments, like Mark Zuckerberg did recently. He opened a video from a Saudi prince and his computer was immediately infected with malware."

Uh, no. That was Jeff Bezos and it was a mobile phone (via Whatsapp), not a computer.

>> "runaround she got from Uber. For starters, she forgot her Uber password. But when she tapped “forgot password?” they sent the reset link to an email address she no longer uses"

How DARE Uber not magically update her email address when she changes it and doesn't inform them?
The biggest issue I've seen with exceptions is that people bring up the issue when they are abused. I SORT of agree with you that an 'Record not found' exception is an abuse. This should probably be a null-object like an Optional ALA Java or Scala.

They are trying to avoid returning null in this scenario.

Unfortunately, if the API is designed poorly you're stuck with it.

I can sort of understand why people hate checked exceptions but working without exceptions is just terrible.
You tend to run into the problem that forging large notes has a much greater return on investment. People get nervous about accepting them. In the UK this definitely kicks in around the £50 mark.
Or maybe bridge engineers are better at pushing back on change requests.

(I don’t actually know which it is; maybe it’s both)