skysight-inc/HackerNews huggingface dataset:
Rust's error handling really made me fall for the language but there are a couple of pain points for me. As others have pointed out the inability to use the `?` operator when a function does not return `Result`, it looks like solutions are in the works for this. But the one i have not been able to figure out is handling errors neatly at async boundaries, ie, when calling sync code that returns `Result` inside a `TryFuture` - is there a pattern for this?
This looks promising. Maybe this can replace the need to use Jupyter or Matlab for some simple research or dataviz use cases
Well, a fresnel lense (or any lense) also just changes the phase of which in turn causes it...

But i will read the paper later.
>> STL (and .OBJ) are common exchange formats for mesh output. For solids, which FreeCAD and OpenCASCADE mostly deals in, the typical exchange formats would be STEP (and IGES).

Ah yes I meant STEP instead of STL of course, always mix those up. OCCT does not even have support for STL or OBJ import/export.
Show HN: Debut – a retro terminal PowerPoint clone
https://github.com/tombasche/debut

As part of work I was tasked with doing a presentation on a part of the Agile Manifesto, so as a way to make it interesting I initially decided to do it as an animated CLI app.

Then I remembered curses existed! And a weekend later I ended up with a mini-framework for doing your own presentations in the terminal complete with borders, colours and keyboard interaction.

It's also 100% Python with no external dependencies, so feel free to clone it and run it as the readme states.
+1 for Stepanov.

Programmers who can solve problems, add value, and work with other people will always be in demand.
it sounds easier and more lucrative to simply be honest.
Well you 'only'need 1 octave
I wonder why the article doesn't mention just refinancing your debts, like hose mortgage or credit card debt: you make a new mortgage to pay off your current mortgage, but the new mortgage has lower interest rate than the current one. And you might save a lot on interest alone.
Try not to create monopoly this large and wait for market to sort this out. There should be like 7 amazons, 7 Facebook and such.
The first binary blob you boot on a Pi is based on ThreadX, a proprietary OS now bought by Microsoft.

And this binary blob fucks up the thermal control as well.
I have more difficulties to read long flags. The people who want to improve by reading my scripts will have to search for the short flags because nobody use long flags from command line. IMHO the benefits of long flags vs short ones are not obvious.
I think ‘stop wasting time on dumb stuff and focus on actual security’ is a good take home for the HN crowd. Time and money is finite, so spend it wisely.
> .. in the United States, it will likely be excluded as irrelevant because the Espionage Act does not allow a public interest defense.

Remind me again, what made the USA any better than North Korea or any other off-the-rails criminal regime?

If this statement about the Espionage Act is correct, then why is there even a discussion whether Assange will get a fair trial in the USA? It's plain as daylight that he never will, even for that specific fact only.

In fact, any country that signed and ratified the UN's UDHR, should be barred from extraditing anyone to the USA. Especially for cases like these.

If this involved an African, Asian or a Middle Eastern country, the USA and EU would no doubt threaten with bombing the country into submission, if they would continue to violate basic human right in order to cover up their criminal actions.
Did you check out NATS?
Just let it go, then.

FOMO just leads to anxiety.
> I wonder if we can manipulate trump into freeing Assange and Snowden under the narrative “These heros exposed Obama’s crimes, you can be the hero who frees them”

Apparently, no, as Trump has much higher priority of "controlling" the press. See "Trump’s campaign against the press" from the testimony of Mark Feldstein, who's a Professor of Broadcast Journalism at the University of Maryland and a witness for defense in this process:

https://assangecourt.report/witness-statement-feldstein

"Seen in this light, the administration’s prosecution of Julian Assange is part and parcel of its
campaign against the news media as a whole. Indeed, Assange’s criminal indictment under the US
Espionage Act is arguably its most important action yet against the press, with potentially the most
far-reaching consequences."
The Lost Civilizations of North America [video]
> It's not any more verbose

Seriously? I think this is way less readable:

(|| -> Result<_,_> { bar(foo()?) })()

than this:

try { bar(foo()?)? }

Also try_blocks don't have to have a "catch". It's just five characters: "t" "r" "y" "{" "}". I don't see a need for "catch" either.
The "one side arguments" are a dime a dozen, and they have a historical track record of lying, and a mission statement that is all about lying, misinformation, covert operations, and so on in the first place.

The "convincing evidence" has been of the kind "let's prosecute this guy involved in big politics selectively for stuff that everybody else has been doing on the side for decades, and pretend like he is some rare exception, and hope that people wont see that it doesn't really prove anything about our greater point". Or the kind "yeah, our guys totally have seen these people attacking that system, and they can't be anything but X, would we ever lie? Here's a report".
Maybe. I think of a senior programmer as someone with a track record of adding value, capable of solving problems, leading a team, making sense of requirements.

Mastering every intricacy of a language and its ecosystem has value but that’s not what most employers or customers care about or pay for. My customers almost never care about the language or tools I use, or quality of the code, or anything programmers obsess over. They care about spending their money to get more value through reduced costs or increased efficiency.

You can optimize to impress your peers, or to always have a job (or customers if you freelance). Depends on your priorities.

Programming expertise is largely cumulative because the basic concepts apply in every language. Someone with 5+ years experience with real C++ projects shouldn’t struggle too much with Java or Python.
Show HN: Philosophers in an influence graph with PageRank scores
Video of the demonstration FPS here:
https://www.youtube.com/watch?v=UDn8ymyXPcI
Yeah. But be careful about extrapolating too much from the past. It took 8 years for a decent VW Model S/X competitor to show up (Taycan/E-Tron), 3 for the Model 3 (ID.3) and it will be just 1 for the Model Y (ID.4).

I believe Tesla will lead in technology for the foreseeable future, but unlike just a few years ago, from now on you're actually going to have to think about what brand to buy, rather than what Tesla to buy.
We would you want to bookmark your progress through a twitter thread? And anycase, alright, but 1000 of them?
But isn't the problem apparent? Many people are tested with a very low prevalence and a Test that has at least some false-positive rate. This statistical problem has been known and discussed for decades now, for example in the field of women breast cancer. There we have discussion about unnecessary cancer operations as a result.

But come covid, mentioning this gets you called a Nazi in my Country. The current positive rate of tests in Germany are about 0.8%. Over 99% of the tests are negative. We know that the test has about 1% false positive rate from official numbers. That is under ideal conditions. But no one points out the obvious.
In what democratic country is this the case nowadays? I‘ve lived in a buch of places in Europe and have friends in many more. The divide might not be as pronounced as in the US but it‘s certainly there.

Using me as an anecdotal example, I have acquaintances and a few (loose) friends that are fiscally conservative. I have exactly zero (known) acquaintances or friends that are conservative/regressive with regards to social issues. After all I‘ve seen and experienced in my life I just cannot emphasize with someone that can justify denying women health care or discriminate against race or sexual orientation, for example.

I suppose you could start solving these entrenchments by having millions of desert islands in order to force small groups of people with diametrically opposed viewpoints to endure hardships on them.

On the internet there is no chance. Without seeing the actual person and talking with them for hours it wouldn‘t work. The problem with this method is that it‘s terribly inefficient.

What we need is a sort of enlightened six sense for empathy that makes large groups of people feel the state of mind of other large groups. But barring large scale psychedelic treatments I don‘t see that happening.
If you're already on FF, you need tree style tabs. This extension is so popular it has its own extensions.

I also have dozens of things I keep an eye on, so there's no way tabs across the top would help me at all.

Main things I find useful about TST:

- You lose horizontal space, not vertical. This is great because you can now read the titles. I also do some magic to get rid of the tabs across the top, so I get some space back vertically.

- You can collapse a given tree.

- You can suspend a tab or a tree. Let's face it, most of your 1600 tabs do not need to be using resources. With suspend you keep the title and place so you don't lose it from your brain, but it doesn't sit there and eat RAM and CPU.

- You can style the sidebar to your liking. I like to make sure mail and slack tabs are their own colour, because they tend to be project roots from which many other tabs are spawned, and when they're uncollapsed I want to visually separate a set of tabs from the next. I also highlight the current tab.
I’m not super familiar with the FreeCAD file format internals, but I assume it implements history using Open CASCADE API’s, in an application specific format. We have some internally developed CAD tooling based on Open CASCADE that uses the OCAF framework to store history inside a custom container format. Any code that links OCCT can in theory get the contents of the container using API calls, but to interpret it, you would have to write a lot of application specific logic on top of that (we wrote our own wrapper API’s around that to expose the file format to e.g. scripts etc)
As I understand it - the Pi4 has completely different USB hardware.
The closure version would actually be

(|| -> Result<_,_> { Ok(bar(foo()?)?) })()

to be equivalent, since bar's Err type might need a From::from conversion via `?`. So the try-blocks version is even better in comparison.

That said, if you include the `-> Result<_,_>` annotation in the closure case, you also need to include the `: Result<_,_>` annotation for the binding that the try-expr is being assigned to, otherwise the compiler won't know which impl of `std::ops::Try` to use. Of course, you can also use an annotation on the binding in the closure case and get rid of the annotation entirely. That is, the comparison is of:

let r: Result<_, _> = (|| Ok(bar(foo()?)?))();

vs

let r: Result<_, _> = try { bar(foo()?)? };
c) I've never worked at Facebook so I've not seen their work and obviously I don't use Facebook.
New EU legislation set to force Apple to share access to NFC tech
I would certainly take a look. It would be amusing if you released it using the interface itself.
You may want to look at projects like preact-habitat, stimulus, and web components (a la polymer). Vue isn't the only game in town for this functionality.
One Thing Michael Jordan Do Differently That Makes Him the Best
I hope Mac Safari Teams gets to read the link and HN's comments, they ignore the power users and try to dump down Mac Safari to iOS.

With Safari 14, Fav icon is now on by default, you would think this is great, except the Tab now shrinks to Icon size once you have a dozen or more. Instead of the old Fav Icon + Text Description in the Tab. i.e How Firefox behaves.

They also got rid of Top Site, and instead it is now an iOS Safari design like Start Page. You can tell by their much narrower design compared to your widescreen Mac.

One way to save memory if you have a few dozens or hundreds of Tabs, is to unload them by quitting Safari and Start again with previous session. This way all the Tabs are unloaded by default, they are there sitting idle. Basically just a list of Tabs. ( This also works on Chrome and Firefox )

But if you somehow finger swipe or accidentally press the Show Tab Overview, Safari will reload every single tab you have in the background just to create a Thumbnails for your Tab. If you have 1600 Tabs like some here, you will quickly run out of memory and start paging hundreds of GBs of data to your SSD. Basically shortening your SSD's life span.

And to those questioning why the large number of Tabs. I mean on one hand HN keeps pushing everything should be SaaS and Web Apps. Project Planning, Email, Social Media.. etc. On the other you have Research Notes, subject I need to research that instantly open a dozen tabs or Amazon / Online Shopping. Or simple daily RSS where I just Command Click all the news item I want to read. You also have sessions you want to read but you dont have the time right now.

All we really need is a Show All Tab Page as a list instead of Thumbnails once Tab number goes over certain number, with a Search Field at the top that hopefully search the Title and some Meta Data. I dont want to kill my 2015 MacBook Pro. It may be the last MacBook Pro with a decent keyboard judging by the way things are going.
Shift-T for tabs. Shift-O for history, bookmarks, and domains (ie domain names that you've previously visited a page from IIUC). Like Vim itself, there's probably other useful functionality hidden away that I still haven't found out about yet.
In a previous life I was a truck driver and mechanic on a farm. It was common for people to leave a mess in the driveway to our field. Often it was just garbage. One time someone left a bag of deer guts. Another time someone shot their dog and left the body. Needless to say I have low tolerance for litterbugs.

But once someone left their old mail. With their address. The sheriff was happy to give the offender a call and request that they clean up the mess, or else.

I fully support this kind of operation.
Yep, I was integrating a banking API yesterday and every single error just shows ‘Something went wrong, contact support.’. Nothing more; I asked if this was for security (to log and hide the real error as it might give something away), and their answer was ‘kind of’ as they do not have sane errors, just stacktraces logged to Sentry. Incredibly hard to debug (as client we get no access to their Sentry) as you do not know if the authorisation was wrong or some amount was wrong or whatever. And all errors including not found(404) are 500...
i searched godaddy several years ago for a domain name which i thought was reasonably good. it turns out it had _just_ been registered but i could offer to buy it. bummer for me that, uh, somebody was hacked at that exact time and the hacker decided to register that name mere milliseconds before me.

i have often thought about how unlucky i was that day, usually while i am registering domain names using other companies.
A part of the reason for the existence of these monopolies is that 1/7th of a facebook (in terms of usage) is worth much less than 1/7th of a facebook in terms of revenue and even less in terms of profit and market cap.

Breadth is very valuable to and ad business. Targeting makes it moreso.
> My worry would be saturating the older 100Mbit connections when downloading things like docker images.

Is that too slow? I feel like 30 seconds to fill up half the ram is a perfectly acceptable boot time.
Coronavirus: Latest News and Updates on the Covid-19 Outbreak
He probably meant An-124.
You should add screenshots/gifs so that people can see what it does
It really is a tiny subset of the C++ standard library, but I'm happy to see they're continuing to expand it: https://nvidia.github.io/libcudacxx/api.html
Yes. For those unfamiliar with video and phone testimony during court proceedings, even when they technically work, the defense doesn't have the same ability to normal cross-examination or monitoring that correct procedures are followed. It's like the case is always going off the rails.

An example is if somebody quotes from a document on the phone during a trial, but the document hasn't been submitted or cannot be found. What do you do next? Ask for a continuation for that one document? How about the second one? What if the reading is incorrect?

So to even attempt a bad video link is an injustice.
During COVID I threw my phone out as a potential infection risk, and my life has been all the better for it. I'm happier, less sick, and I feel more intelligent. Win win! :).
When I’m hiring and get a candidate who seems very focused on a language, or only has experience with one language, I’m probably not going to consider them.

It’s not just the limited skill set. I’ve run into too many programmers who only want to work with the tools they know and like, which limits their usefulness in a team and in the business. Most companies write and use software as a tool to solve business problems, they aren’t all that interested in catering to what programmers think is cool or fun.

I’m all for mastering language and tools, as many as you can, but if you want steady employment keep your eyes on what employers look for.
I've been thinking that's why we are seeing the true doubling in full RTX like quake and minecraft but not on more traditional rendering engines.

From my understanding int is often used for lookups, and I'd presume a lot of that is some sort of environment mapping which adds some contention as int is more limited and "steals" from the doubling of FP.
Most applications of vliw are in dsp, gpu, video codec coprocessor type things. It's mature technology and successful outside general purpose CPUs.

Transmeta was 25 years ago and trying to apply vliw in a novel way to run x86 code, a daring idea that didn't pay off very well.
Because it destroys Java?
>But in the past we had plenty of crises and yet we used to spend our downtime shooting the shit, going around in circles, with stupid and bland people just like ourselve

Past people were much more involved in societal change and day to day history than we are.
You need to define 'Sport' and also 'cheating'. You have a definition for the former but apparently not for the latter.

e.g. if one of Lance's competitors on the Tour had (lets imagine) added some magically small but powerful electric motor to his bike and used that to win, would that be fair game?
Also, "the government will take strict measures to blacklist visitors who damage national parks or are noisy and disruptive."

I fully support this policy, and I hope it gets implemented in more parks around the world.
Could use Geogebra.

https://www.geogebra.org/
Literal programming from Knuth's WEB adapted to modern web ;)
I don't know, if I'm running a business at 1/7th the size of Facebook I will still be trying to grow it as much as possible and triumph over my competitors, even if that means I end up running a monopoly. Probably a failing of my personality there.
Yeah, really tiny... At first I thought 'wow this is a game changer', but then I looked at your link and thought 'what's the point?'. Can someone explain what real problems you can solve with just the headers in the link above?
You are permitted to return
1/7 of Facebook would cover the US or EU and would be very valuable.
Being able to manufacture in volume is one of the criteria needed to beat Tesla, its yet to be seen whether VW can do that. Batteries are the key to that.

The EPA range for the Taycan is 201 miles, for the e-Tron 204 miles. Frankly, both extremely crappy for the price. So its very debatable to call them competitors to the Model S/X.

The Taycan can beat the S around the track, I'll concede that.

But I take your point, Tesla's lead will shrink. Although I think they are much further ahead in software than people realise.
Lots of them have. Just not standard.
ML with Android 11
Hey,

I open-sourced this repo by me demonstrating how you can get started with Machine Learning in Android 11, all that is new. I further even explain how the code works so you can very easily get started with implementing Machine Learning in your Android apps with cool examples! Looking forward to contributions or suggestions.

Leave me a star if this looks good to you, helps me a lot.

https://github.com/Rishit-dagli/ML-with-Android-11
> https://luafun.github.io/intro.html is the best I've found for performant stream-y transforms

Thanks, I'll need to take a look at it.
A pathetic attempt to lock developers into their hardware.
Moment.js and the Selflessness of Developers
You guess right. That’s not the only domain C gets used, though. I think of C as a fundamental skill to build on even if you seldom write C code.
I thought this was going to be about NymphCast, an open source alternative to chromecast

http://nyanko.ws/product_nymphcast.php

https://github.com/MayaPosch/NymphCast
Check out the mighty music player. It can download a certain amount of Spotify song/podcasts offline. It’s like 70-80 bucks. Battery life is alright, around 5 hours now I think. It does Bluetooth connection to headphones too, though that hurts battery life I think
This is great, but I can't help remembering learning Go 10 years ago, when this was already decided (for better or worse) by the language designers. Languages are for getting stuff done NOW, not discussing getting stuff done better, maybe, someday.
How do judges generally deal with that kind of situation? "Oh, the connection's not working? Ah well, moving on, we're ignoring this witness"?
In the video and the top image, the caption says

> 3D artistic illustration of the wide-field-of-view metalens capturing a 180° panorama of MIT’s Killian Court and producing a high-resolution monochromatic flat image.

My guess is that it is only good for monochromatic light.
Oh I see, I got it backwards somehow. Thanks!
Depending on where tariffs land after Brexit, it's possible there's little difference.

GF Berlin will probably be more efficient than Fremont. But so will Texas and whatever comes after.
You can bet on it. Also, these people will be highly motivated and not just be "doing their job".

They'll be made well aware that their "way of life" and "reality as they know it" literally depends on the success of their work. Considering how these people are part of a criminal enterprise, it can be argued it's actually a true self-fulfilling prophesy.

As far as I'm concerned, people involved in such actions deserve to be hunted down and illiminated with extreme prejudice, by any covert agency of any country that does actually respect due process of the legal system.
A major problem with testing in Italy is when one is positive and then recovers from the disease. It is one of the few countries in the world that requires a double negative test to let you go out of isolation (2 negative tests within 24 hours).

As the evidence now is clear that presence of RNA does not equate necessarily to infectious virus (good correlation until 7 days from symptom onset, the declining, and over 15 days here is no more correlation: in people with milder symptoms this happens earlier), and that people with milder symptoms usually clear viral RNA very slowly from their throats, this causes (and caused) a lot of people to be stuck in isolation for weeks, or months (the negative record is a 4 year old child who was confined for almost three months).

The expert panel of the government won't change their guideline out of "precaution", despite the scientific evidence saying something different.