skysight-inc/HackerNews huggingface dataset:
Yes, this is an easier mistake to make with exceptions than with error values. Still, the fix is to do exactly the same thing as in the error values case:

try {
someCall()
} catch (ErrorType err) {
//handle one way
}
try {
someOtherCall()
} catch (ErrorType err) {
//handle another way
}

It's no less verbose than the error values way, though again, it is easier to make the mistake in the first place.

I'm not trying to claim that exceptions are ultimately better than error values, just that the difference isn't so much "non-local control flow" as it is explicitness vs implicitness. Exceptions are implicit, error codes are explicit. Both have benefits and drawbacks.
> When making changes to a block of code or block of text, I frequently just comment out the code and rewrite it anew.

This is the comment I came here for. (see what I did there?)

I also sometimes keep multiple versions of the same line in comments, such as when I'm trying to a tricky regex work. For example, I might have code that looks like:

# x = regex1 # Original line
# x = regex2 # Doesn't work
# x = regex3 # Nope
# x = regex4 # Also nope
x = regex5 # Currently testing this

That gives me the way to see which approaches I've tried while solving the problem, and ensures I don't actually use the same exact regex twice.

When I get a working solution, I comment out all but the line that works and commit that.
There is a fundamental limit of power... I get that. The Perseverance Mars Rover has one experiment that requires 180 watts of power, (The Oxygen Generator experiment) and it has a 110 watt RTG powering everything. They charge up some lithium batteries during down time, and use them to make up the difference.

In the limit, If something takes 5,000 watts, you could run it for a few minutes/day, with that same RTG, provided you had suitable energy storage.

Perhaps they could gather grains of material, and just sort them, one at a time, only keeping the iron rich material, or use a permanent magnet to gather ferrous material. You could sinter the grains together using a microwave or laser pulse.

The results don't need great quality, just enough tensile and compressive strength to be mechanically stable during additive or subtractive manufacture.

Lots of minds have been thinking about refining metals for a very long time, but they haven't been thinking about doing it on Mars, with limited power, and very far outside the box of normal constraints, like cost.

This is one time capitalism doesn't apply at all... and most solutions assume capitalist incentives and costs, instead of going back to first principles thinking.
There is a trivial way to avoid being scraped by a search engine robots.txt

For facebook most of the time when it creates a screenshot to show next to the title in a share results in 1 or possibly many views driving revenue for the linked site for a small increase in bandwidth.

For example their site gets pulled once and read a dozen times.
Prediction markets, more specifically predictit, have an hard extreme bias towards the right.

I was basically printing money last year.
When the linked article says that 90% of respondents find a "zero-COVID" strategy unrealistic, it is all the more baffling that Scotland seems to have decided on it. Before the UK-wide roadmap could even be rolled out next week, Scottish officials have announced their own that is guided by this approach, in which borders will stay closed even with widescale vaccination.
This is false, since it is not always easy (or even possible) to horizontally scale a work-load.
I question how major that benefit is. I think strict Electron-only apps are not really that common. All the ones I use have a web version.
With a clear runway, the drone industry finally taxis for takeoff
Thanks for the reply. When / if the pandemic ends I have to move and I am seriously considering taking a few machining courses at a community college and changing careers.
We did (still do?) that in San Francisco, but it's incredibly inconsistent. Some restaurants would make a reservation in their reservation system on the spot for you to keep a record of you being there. Others didn't keep track at all.

Meanwhile, we spent last month in Honolulu, and every single restaurant took down our contact info.

Nothing for regular stores in either place, though.
Cartography predates computers, many maps were kept as the majority of technical documents are kept: in a physical archive.
> Origin came up with a relativistic jumping system whereby the length of your leap would be determined by the distance the cursor was from your character when you clicked the mouse, rather than opting for the more intuitive solution whereby you simply pointed at and clicked on a would-be destination to attempt to jump there

My father had all the Ultima games, when I was younger I tried playing VIII and couldn't figure out how to jump properly, which meant I couldn't go anywhere interesting, so I quit. It is very unintuitive to click and hold to jump on a desktop game.
The only ultima games I played before seeing VIII were Underworld games I and II, and they were pretty great. (Probably, I is my second-favourite RPG from the 1990s, bested only by the great Betrayal at Krondor.)

8 was a huge disappointment. I couldn't figure out how to do _anything_, the movement and controls were so thoroughly broken, that I gave up in 30 minutes, completely frustrated, not being able to figure out how to do anything.
Abnormal Security | Senior/Staff Infra Engineers, Product Engineers, ML Engineers, Engineering Management roles, and more! | SF, NY, Singapore, REMOTE | Full-time

Abnormal Security is an email security startup startup funded by Greylock and Menlo Ventures. We use Machine Learning (ML) to catch advanced social engineering attacks that no one else can. We are looking to grow very rapidly in the next 6-12 months, and are hiring across most roles (remote first). Would love to tell you more

Interested in learning more?

- fang@abnormalsecurity.com <- I'd love to chat

- https://abnormalsecurity.com/careers/ <- check out our careers page for job openings

To read more about what we've done so far:

- Series B: https://www.forbes.com/sites/kenrickcai/2020/11/18/abnormal-...

- Engineering Blog: https://medium.com/abnormal-security-engineering-blog/scalin...

- Our Q1 Threat Research Report: https://abnormalsecurity.com/blog/an-inside-look-at-the-risi...
> Webviews are also a moving target so you need a big testing matrix.

Even worse, an OS update after you ship your app can spontaneously break it on end user's machines without you knowing or being able to do anything about it.

At least with the web, when new browser versions come out, you can fix your site since users essentially "install" it every time they refresh the page. But an installed app that runs on top of a spontaneously updated framework is the worst of both worlds.
2021: Year of the Linux Gaming Desktop
I just didn't like it for the person they turned Ellie into. There were parts where I had to just turn off the game for a few days. A friend warned me I'd have this reaction. I actually tried to refund it before I even played it, but Sony wouldn't allow it (I had downloaded, but not started the game). In my mind TLOU II never happened, and Ellie and Joel are living a happy life in that western town.
I think the biggest success story of a shifting play style is GTA. The first ones were 2.5D games with a very different feel.
The only way for NYT/WSJ/Buzzfeed to have an edge on curation and relevance is if they became more specialized; otherwise they are aiming to be as general as Apple or Google News but not as good.

I'm not sure people appreciate the balkanization of TV content either. The problem isn't that HBO does or doesn't make great hits, the problem is that the hot original content can randomly pop up in another content kingdom, and HBO doesn't have a stranglehold on relevance or hotness. The same is true with all these news outlets wanting individual subscriptions and "brand loyalty".

I think what people want is one Apple TV to rule them all.
Right, that needed to be an initialization.
> But compare it to [perpetual motion or faster-than-light space travel].

That's a completely inaccurate comparison - perpetual motion and faster-than-light violate fundamental physical laws as we understand them. Net-positive power from fusion is fully within the laws of physics – we've got an example in the daytime sky, and trillions in the nighttime sky. The difficulties with fusion come with shrinking it to a scale that humans can build.
I don't understand what the problem is, in that case. Is it just the fact that it's called an Error instead of something more generic? Not trying to sound dismissive, just trying to understand if there's something I'm missing.
Oracle already provides same ability https://blogs.oracle.com/machinelearning/machine-learning-in...
There's a fairly large number of long time contributors to OpenStreetMap that only want driveways if they are added with deep passion (I'm like ⅔ serious).

There is a real issue where it doesn't make sense for a small volunteer organization to manage a massive amount of data that is not of interest to a broader set of users. It's not a huge issue, because the narrow interests mostly understand the basic issue, there's just not universal agreement about what is broadly useful or not.
How to build a data-driven company
> Right now many web apps can brush off doing QA in Safari (and Firefox for that matter). Most regular websites don't have issues, but most of those don't need any vendor-specific fixes in the first place. I've used multiple complex web apps that just break unceremoniously unless you're using Chrome.

There's billions of active iPhones out there & they ALL use WebKit for webviews as no other browser engine is allowed for iOS apps. MacOS desktop apps are a fraction of that number of users & web view apps are a fraction of that. I just I don't follow this reasoning unless you're saying that this might gain traction across developers who might go & fix the bugs. That might help WebKit (although questionable). It's never going to help Firefox which is the sole remaining engine that doesn't have a strategic play to try to encourage compatibility.

> The difficulty here has gone sharply down since all major browsers are evergreen now (and IE is all-but-gone). Not to mention the availability of tooling like Babel.

If that were actually true, would you be concerning yourself with getting devs to do more QA on Safari or Firefox?

The truth is that it's still hard to write web apps cross-browser and will likely remain hard indefinitely as long as there are > 1 web engines. The point of the web was to make you OS agnostic (ironically recreating the same pattern in desktop development of 2 or 3 major engines as with 2 or 3 major OSes) but with this tech you're combining both dealing with the browser-specific issues & OS-specific issues. Additionally, you're now not only having to maintain compatibility across 3 engines, but all the various versions popular versions of the OS distribution will have shipped. I really struggle to see the value of this approach if I'm concerned with shipping the app & lowering my development costs & increasing velocity to shipping useful features.
Oxidizing Kraken
I hadn't thought about this aspect of it, but that's completely the case for me as well. It's emotionally draining in a way I didn't realize.
Tapping notifications will open apps instantaneously on Android 12
Rumor on PredictIt was one of the reasons they shut down tweet markets was Andrew Yang's campaign received email threats in regards to him tweeting.
You have the same problem with error codes, don't you?

The bigger difference is knowing whether you should expect errors at all - with exceptions, you can forget to handle an error and you may screw up an important assumption, like not unlocking a Mutex if an Exception is raised. With error codes, you have the opposite problem: you may forget to check for an error, and continue to execute in a bad state.
such an obvious marketing gimmick. clearly written by ford pr. made sure to specify the exact model year. like u need to buy a whole car and can’t buy just a generator
The 9.0 Official Releases of SecureCRT, SecureFX, and VanDyke Clien
thank you!! lets chat, we would love to show you the timeseries cool stuff we have done for clickhouse!
> That even on HN people talk before they know even they tiniest thing about who or what they are talking about.

Regardless of the author (I don't bother to google every author) the content is as stated. It's a crypto-ad and not much else.
Chrome has a task manager that you can use to kill a stalled tab. The OS has a task manager that you can use to kill a stalled browser. You are never forced to use the power button and lose work.
It's been 10+ years since insurers have been required to provide health insurance to anyone that wants it, regardless of pre existing conditions.

The only thing ACA compliant health insurance can price health insurance is on age, and even that is set so the oldest person's premiums can only be 3x a 21 year old's premiums. I.e. health insurers are made to force younger and/or healthier people to subsidize older and/or unhealthier people.
Starting from 20h2 version Edge is based on Chromium. And I remember when that rolled out plenty of people were irked by Microsoft simply automatically installing it (the new Edge Canary) without asking for permission.
It's not hard to silently auto-update an Electron app's internals; I assume the same is true for Tauri
Great idea,, it already exists:
https://en.m.wikipedia.org/wiki/CNC_machine_tool_monitoring_...
Only people who don't wear tin foil hats would be employed I guess.
I have the same, but now at work we use the GitHub squash function in PRs. I still make fixup commits but don’t have to rebase to manually squash them any more.
Why Hotwire Could be the Future of Front-end Dev
Yes, great stuff - his own site has some works you can tinker with, too[1], along with links to the source[2].

1: https://generated.space/sketch/ornament/
2: https://github.com/kgolid/ornament
The article isn't about Wikipedia articles but about OpenStreetMap. Unlike articles it's much harder to add bias to data points, e.g. a street or position of a house, that can be verified.
I like that pattern too. I've tried using it in a rather ad-hoc way in C/C++ enums. I suppose the proper solution would be to have a header file, enum_starting_vals.h, to centralise them.
>We are dealing with a person with mental illness, because nothing is coherent. It's all made up

Seem like the average person to me :)
> The outrage is due to Facebook being involved.

Does that make spreading what's effectively disinformation ok, though?

I'd argue that there are more than enough angles to legitimately criticize Facebook. Why make one up?
But we just got proof that backlashes can be ignored, so what's the point?
Yeah in my last job, I used my manager power to overrule on using an ORM. In every company I have ever been in, some major outage has occurred due to a seemingly innocuous change causing a DB operation to go from O(N) to O(N^2)+ and its really hard to track down because things seem to work fine in a dev environment, but then can't scale.

And to me, SQL is the easiest language to learn and read of all, and while I understand doing basic marshalling of SQL records into objects is tedious, its really not hard at all, and it just saves so so much heartache down the road.

The exception might be very basic CRUD apps that are meant to be used by third parties and want to support multiple backends like mysql/postgres/whatever. There might be other exceptions as well where you are just trying to prototype/find market fit, but for a typical project that you know is going to be used in a real way, the risks just don't outweigh the benefits IMHO.

Some of the team griped a bit, but I absolutely think it was the right move in hindsight. At least once a year I would hear about an outage due to an ORM gone wild, and these outages were usually prolonged by the fact that things function, and then there is finger pointing between the DB/DBAs and the app developers, etc.
I respect Brave's efforts to make Tor accessible to the masses, but it also puts people at risk. There's lot of people with not a great deal of technical knowledge who are aware of Tor and might see it as a means to bulletproof privacy, unaware that using it through Brave on an OS like Windows 10 could easily expose them.

Brave does present some kind of warning to users when opening an incognito tab. It just doesn't make the risks clear enough and will mostly be ignored.

I'm not sure what solutions there are for this. Perhaps shipping Tor as part of a regular browser isn't a good idea. In fact, I'd say Tor should've never been tunnelling generic protocols and instead had its own protocol for sharing information. That's another conversation though.
Totally, and I think it's wholly unreasonable to tell someone who's lost their income for months to just chill and stay inside. I think that's the correct advice, but I also think it's not gonna work. I fault our idiotic government for failing to help us when we needed it most. People were right to be infuriated, and I think this shows that when government fails--either to address systemic racism or to provide assistance in a pandemic--everything gets worse.

We shouldn't be faulting protestors or doctors here, we should be faulting our leaders.
Picture of Perseverance rover just before touchdown
In my experience enabling the backtrace is necessary in very few cases. I've defined a bash alias to save me a little typing in those situations. As it can be turned on persistently by setting a single environment variable I'd say it's a good middle ground.
I wasn't responding to the memory usage portion of the GP's message, but rather to the alien feel.
The comments in that thread... is ramble the new parler?
Cleaning up your history isn't hard if you think about building a clean-up-able history from the start, where each commit is a unit. At least it is easy for me. If it's larger and complicated, I create branchname-v1, branchname-v2, etc. branches and squash. Those branches will still hang around in my fork of the repo should anyone need them.

As for my personal projects, I recently realized that using leveldb wasn't going to cut it for me right before I finished the database storage feature. I still finished it to create a commit that didn't break the build and then worked on switching to rocksdb. If in the future I decide to switch back to leveldb, it's always there.
Hire a lawyer asap. And as another poster mentioned, talk to no one w/o a lawyer present. Period.

They have accused you of a crime and if they have enough to convince a DA, you will have the government aiming for a conviction, along with all the resources they have.
> Any error system that relies upon developer discipline will fail because errors will be missed.

Haven't there been some languages that force functions to return some kind of tuple like:

result,error

And forces the programmer to at least do:

if(error) {
}

It does not force any kind of correct handling, but simply oversights should be caught. I might be imagining things though.
Yes, I agree that there should be no tax benefits for employer's providing matching contributions to retirement accounts they can restrict investment options for.
> is there room for a much more stripped down version of Chromium that is suitable for lower memory footprint?

That's basically the history of Flutter. The initial goal was something like "Web: The Good Parts" and the results of that experiment led them to where they are now.
It's been a day, and all we have are 3 bad jpegs?
Do you ever dream about programming?

I sometimes dream about code or debugging, especially when my team is working on a deadline. A few times I dreamt of solutions to problems we had. It felt good on the spot, calming and relaxing. Unfortunately, after waking up, they don’t make any sense.
Cheers :)

It's actually quite nice for me to hear that people we didn't hear from yet are finding it useful. Since it's a library it's hard to actually figure out how many people are really using it successfully and what for.

If you don't mind sharing more details please do, either through our usual channels (https://mindsdb.com/contact-us/) or just send me an email (george.hosu@mindsdb.com). Figuring out how people use it and what issues they encountered has been immensely helpful to me.
In other compiled languages, stack traces can be supported by looking up code references on the stack in a map of executable addresses to source code locations.

Even in the absence of stack frames, the mere contents of the stack with lookups where possible is really useful, and usually more than enough.

The cost is a little code to do lookups at runtime, and making the mapping data available (typically compressed and embedded in the executable).

(Note that this isn't stack unwinding or exceptions. This is backtraces. Rust, like most languages which embed errors in return values, makes the developer do the stack unwinding manually.)
Suprised at the downvotes on your comment, but you're right, Facebook provides an advertising targeting engine that doesn't have a parallel. Whether that's good or bad for is separate from whether it's a useful business tool.

@jariel can you share any resource for people looking to understand and dip their feet running their own FB ads?
Sure thing! I'll contact you using the details in your website!
you are right!! the main thing is to offer it for other databases (mysql, mariadb, postgres, clickhouse, clickhouse, timescale, mongodb) as well as to support more powerful machine learning capabilities than the vanila classical models supported by oracle, for instance great timeseries support
> There just really are far fewer people than I thought who are actually motivated enough to take a weird opportunity even when it presents them straight in the face

It Me hehe

I feel my only motivation is fomo, but I'm actually not interested in putting in the effort and time with associated stress, my job already delivers on a lifestyle I'm happy with, so the potential additional money isn't enough to push me to act.
Yes - I just finished reading a book about the French Revolution and it was surprising how far the modern definition of right vs left has strayed. Imagine living in a time when the leftists were pro-war nationalists who loved prison and the death penalty! But in the current political climate, libertarian market ideas are generally included in the basket of ideas labelled 'right'. That's all I meant.
Personal take of a longtime OSM contributor: I don't think it's an issue and welcome any improvements from any directions. I also don't care if megacorps use the data to make jillions of dollars and never contribute. But I know others feel differently.

If someone manages to take over OSM and put a restrictive license on the data, we'll just fork from the last open version and keep on doing what we do best: we map!
Ask HN: Careers vs. Jobs in Tech Companies
It appears as though companies in tech and probably employees too consider their time at a company as a "job", a short term thing as opposed to a long term "career" over the past decade or so. That means high attrition for companies (expensive problem of replacement) and the pain of job search for employees (who exactly likes interviews anyways). If you're a manager or an employee at a tech company: why do people leave tech companies? Is it despite a promising career?
"Such devaluation could lead to what he called “digital gentrification,” in which the very attributes of OSM that drew its earlier users are degraded by its newfound fame."

A look at much of the internet and the declining role of academic guiding principles wrt technology and its governance tells you where this might be headed..

Hope OSM somehow can find a golden middle way that incorporates "grassroots"/cute data like benches as well as large-scale and tedious to maintain data such as roads or road signs. Don't let 'em eat you.