skysight-inc/HackerNews huggingface dataset:
Bisect is nice, but it's not the fastest option.

If binning data, discretize it and then use a dict lookup - `grades_to_letters[grade//10]`, for example.

For insort, and indeed anything with sorted collections, just use the http://www.grantjenks.com/docs/sortedcontainers/ module. Inserting an element is worst-case sublinear time, and also faster than C-extensions. It's one of the very few data-structure libraries I use regularly.
I can only repeat myself but maybe there will be a change if HN would show sympathy to deplatforming that happens on Twitter, Facebook, Reddit etc.

Every single time someone posts about those the majority of replies here, are "They are a private company so they can do whatever they want!"

There is no difference here. Like or comment on a "wrong" Youtube video? Say goodbye to your Google account.
That such a cool FOSS project would turn to predatory lending is fascinating.
the virus that is more infectious and deadly than flu but with no immunity like flu and unknown long term effects but likely cardiovascular disease and neurological damage. get it together, mate.
A modest way to build Go web apps using HTML/template, sveltejs and stimulusjs
> I simply love FT.

For what it's worth I've direct email-ed two of their opinion writers and they dutifully responded (and not the standard "thank you for your email/for reading my piece" stuff), I really appreciated that. For comparison, the journalists from my country are more primadonas, I don't see them answering any readers' emails (for starters, their email addresses are not provided in the newspaper's website).
Came here for the DSL hate, and was not disappointed.

Seems like isomorphic web development has warts no matter what language you choose.

I'd say that Ruby still has a place building APIs for new projects, but having done both advanced REST APIs and GraphQL with Ruby, it's starting to make its way even out of my top five for getting the job done.

The point has already been made, but if you're good at Ruby and you don't need to build something responsive, both plain Ruby and Rails have fine affordances for server side rendered views. There's still a lot of need for quick-and-dirty backoffice applications that don't need to delight the user. Of course, you get a lot more for free with Django's admin.
I hope I can comment there, that I can donate. I somehow am blocked in that subreddit.
I was also under the impression from apple’s announcements that Rosetta 2 had much higher compatibility and stability. I absolutely can’t have critical applications like Skype or office crash on me.
Nah, the nuclear industry got a TON of R&D funding too, and continues to. Plus I don't think you realize just how much governments subsidize and assist nuclear power. $8-10 billion per reactor is more money than companies can easily plunk down for an investment that takes decades to pay off. They rely on government loans, subsidies, and loan guarantees to raise capital and help fund the projects.

Loan guarantees are a particularly common example -- for example, last year the US govt provided $3.7 BILLION in loan guarantees for the troubled Vogtle reactor builds in Georgia. The way loan guarantees work is that the government agrees to pay the debt owed if the company goes bankrupt or cannot complete the project; this is surprisingly common actually, since the same project had already driven Westignhouse to file bankruptcy.

Solar and wind aren't likely to make a handful of people extremely rich -- the profit margins on the components are pretty low due to the high degree of competition pushing them down. Building solar and wind farms to sell their power does produce a solid and reliable financial return on investment, but it's still less than 10% (even though the energy return on investment is good).

> When you look at this table [energy density]

For power generation, energy density is largely irrelevant.

Also these energy densities are apples-to-oranges comparisons. You can't burn uranium without a fairly large, heavy reactor. There are no "nuclear cars." Similarly diesel requires an engine although it's smaller. Batteries aren't a power source on their own, they're storage, and you're not "burning" them up.
Audience is different on Twitter.
I think having the ability to use products, any products, for a purpose that wasn't intended by their designers, is important to help overall progress of the humanity.
| Want assured software compatibility and performance

How has the experience been for software developers across the board? Would love to hear personal accounts since all I'm finding is very generic articles like this one (talking about fan speed, performance charts, etc. but nothing specific targeting specialist areas)
It’s not that hard really. Just look up if the apps you’re planning planning to use has battery or compatibility issues.

https://isapplesiliconready.com/

I personally have not experienced any issues and the M1 is a marvel. Also, the return window is through January. I sure as hell am not going to return mine.
Author of the article here. Ask me anything! Don't hold back if you have some criticisms, I will be happy to address them with you. I also know that the claims in the paper are rather bold and might cause some "crackpot alarm bells" going off. Have some patience with it though, I did a PhD and Posdoc in Quantum Gravity so at least I am not your average crackpot. Especially the first derivations in section 2 should be easy enough to follow if you have university level physics or mathematics knowledge. But after you understand that, you understand why complex numbers are used in Quantum Mechanics and where the concept of the density matrix comes from (the density matrix is a generalization of the wave function). Let me know what you think!
Show HN: I created a startup MVP in a day
Yesterday while I was taking a shower, I had an idea for a new startup. So I bought a new domain name and while my order was being processed, I created a small website for it!

Today I am launching it! Ladies and Gentlemen, introducing DealFlow - a platform for connecting investors to startups.

http://dealflow.ir

11/22/2020
I fear losing my Gmail account, what is the best backup plan?
There is no such thing as "not statistically better, just more secure" [1]. If an AES DRBG systematically fails your statistical test, then something is wrong. Probably your DRBG implemetation, or your test.

[1] https://en.wikipedia.org/wiki/Distinguishing_attack
To paraphrase:

> New chipset with new architecture means old apps won't run or will be slow

Wow, you don't say. I been watching a few review videos[0] (not sure if they're from the "Apple-Choosen Press") and the results are absolutely astonishing.

But the thing is, this shouldn't be surprising. This is the final form of the Apple Ethos of full vertical integration, from OS all the way down to (now) the frikking processor.

I think they're afraid, and I don't care if my new Apple M1 Macbook doesn't run Office well, it's Logic/FinalCut/etc. that matters to me and most people.

[0] https://www.youtube.com/watch?v=VXgLBa5jgr8
18. A no-deal Brexit will be devastating for millions of people in the UK. But it’s not about us. We are just the grass that gets trampled in capitalism's civil war.

Is this really a capitalism civil war? Instead it sounds like a war between opposing entities for control of the definition of capitalism. Per the tweets, neither are actual capitalist, but distorted knockoffs. The winner of the war gets to crown themselves the kings & queens of capitalism. Accurate or not.
I am personally not buying MackBook for other reasons (I want to be master of my own machine and I am willing to pay costs of maintaining Linux on it, I hate shallow keyboard and no function keys).

The only reason against M1 itself I can think of is the tight grip Apple is going to have over entire stack (including memory). They will be creating all possible configurations and you are going to have to pay whatever premium Apple thinks they are able to impose on you which, extrapolating from the past, is going to be hefty.

But,

I think M1 is amazing piece of technology and would switch in no time if not for other reasons.

I also think competition is going to take a hint and we can expect more of this in the future.
I am sorry you had this experience but bad news, no place is safe from retaliatory litigation.

Best of luck for your journey abroad.
Watch YouTube Without Ads on Your Fire TV
I was excited then annoyed. I hate the SO moderators. It makes no difference to them how many people seek the answer, if they deem it off topic all those people are out of luck.
Calibre may not be pretty but for a CRUD app it is usable. People who have complaints about Calibre generally have issues with its chrome and dated layout but nobody dislikes it because it is hard to use. A default GTK style UI always looks terrible on Windows and Mac, both of which have much higher requirements for user interface defaults. This is especially so with Amazon and iBooks setting differing expectations for how an eReader should look like. The issue with GIMP is with both its UI and its UX. Trying to get work done in GIMP is difficult and challenging. It is not a mere CRUD app like Calibre.
Declaring, instancing and initializing a global state struct in one go:

static struct {
int a;
float b;
const char* c;
struct {
float x, y, z;
} nested;
} state = {
.a = 1,
.b = 2.0f,
.c = "Hello World!",
.nested = {
.x = 1.0f, .z = 3.0f
},
};

Careful if the the struct contains big arrays though, this will let the executable size explode because a copy of the struct content is placed in the executable.
it happens over bluetooth/wifi; on devices that are signed in with the same iCloud account.

it's automatic.
You can subscribe to their newsletter. I was subscribed but eventually got bored as their content was too generic and not actionable
>ORM solves wrong problem

It’s the same as saying that wheel solves the wrong problem, because there are other way to move things. By definition, ORM is the mapping between ER and OO models. Working with ER models directly in object-oriented languages is suboptimal, because ER design addresses the problem of storage and OOD is more efficient in solving the problem of data processing. Hence the need in ORMs, which are mainstream now exactly because they enable the efficient transition from the storage to the processing data model and vice versa.

The problems which exist in modern ORMs are usually related to the complexity of their abstraction and imperfection of the programming language: the first problem is easy to notice in JPA with fetching strategies and caching, the second one is what author of this new ORM is trying to eliminate with the code generation - the need to use the ER namespace both in mapping declarations and in queries. JPA does not solve it well, quite often requiring developers to use native queries, because Criteria API is too abstract for many use cases and too heavy for modeling queries in the code. On the other side, JOOQ is not offering a convenient metamodel and operating on too low level.
Have any legal experts worked out if GDPR Article 22 "Automated individual decision-making, including profiling" can apply in cases like this?

In some cases, this article gives the right to appeal an algorithmic decision and require a human review.

https://ec.europa.eu/info/law/law-topic/data-protection/refo...

https://ico.org.uk/for-organisations/guide-to-data-protectio...
To point 1- some native Mac apps are not Big Sur compatible yet. It could be 2 separate issues. I held off from upgrading to Big Sur on my audio/daw iMac Pro for this reason.

2- claim seems slightly dubious as it depends on the app. Some translated software is more cpu intensive than others. So maybe? Just like the native stuff will be.
I find it hilarious that to comment on that one would have to log into their presumably-locked-out google account.
This review is hilariously bad and biased ("no touchscreen or 5G!"), but the app compatibility is an expected chicken-or-egg issue with early adopters. The point I would make is you have to weigh the app experience in Nov 2020 against your expected experience for the rest of the life of the machine. I know people who've kept Macs running for nearly a decade (e.g. 2011 Macbook Air) and I'd strongly suspect 5 years from now a 2020 M1 Mac will be a lot more futureproof and app-compatible than a 2020 Intel Mac.

If your main concern is running Zoom and OneNote for the next 6 months, maybe sit out M1 for now.
I downloaded it from their website 2 months ago in pdf format and still have it. It's a file called Biochemical_Pathways.zip with these files in the archive:

Biochemical Pathways Index.pdf
Biochemical_Plan_1_neu_20180125_A0_print.pdf
Biochemical_Plan_2_neu_20180125_A0_print.pdf
Biochemical_Plan_production_information.pdf

If you google these you can find a pdf.

Edit: I've found the link in my browser history. Looks like it's still alive:

https://www.roche.com/dam/jcr:93f0c66d-6c05-411b-9e61-732cb0...
What it really needs is graphics.

The marvelous thing about QBASIC was that you could just dive right in with PSET, LINE, CIRCLE etc, which capture the imagination in a way that "Hello World" doesn't. The only modern environment I know of that makes it that easy is Processing.

Writing graphical games, fractal viewers, cellular automata etc in QBASIC was how I got into programming AND recreational mathematics.
There is no ambiguity. Prefix is increment pre (increment before getting the value). Postfix is increment post (increment after getting the value). Both have side effects as does x+=1.

consider the call f(x+=1,x+=1) when x=5; what is the call? f(6,7) or f(7,6)? Iirc even f(6,6) and f(7,7) were valid behavior in the past.
"A study then in 1919 concluded that mandatory mask mandates did not make any difference on epidemic, while observing that a likely reason for their ineffectiveness was that masks were worn outdoors and not inside in gatherings when conditions for transmission would be greatest."

Why is it so hard for public officials to learn from past experiences, and always repeat the same mistakes?
When tipping was considered un-American (2015)
Isn't(technically speaking) the addon taking data only from the users PC and not from facebook servers?
At the end of the day it shouldn't be facebook's call what goes on the user's device.

One thing about these addons is that you can actually take them apart and see what is going on if you don't trust that the addon is built from their github code.
A substantial fraction of humans in WEIRD societies don’t do their tasks when they don’t feel like it, and they spend most of two decades being trained to do it. Most humans are not historically that reliable. It’s incredibly difficult, verging on impossible, to turn hunter gatherers into agriculturalists. Turning agriculturalists into industrial workers is comparatively easy but still the work of decades. People really, really hate being told what to do, being micromanaged, being punctual, being ranked, doing work that feels meaningless, practically the entire suite of behaviors necessary for industrial society.

> And that was a theme that cropped up again in Professor Blumin’s class, that there were two great working class traditions that echoed through the ages, and they were

> 1) avoiding work
and
2) drinking

...

> Those great satanic mills, where women and children worked in shifts at great water- or steam-driven sewing and spinning machines, stories of little kids getting their hands mangled by the machinery? One of the major reasons women and children were preferred was because they would actually show up on time every day, and stay sober around all those hand-manglers.

https://kontextmaschine.tumblr.com/post/96390732283/happy-la...
Necessity+Free+Google+Tools+for+Marketers+-+Digital+Lifestyle
A few Pro features Apple could add to the MacBook Pro:

ECC, ZFS, function keys

Yeah, function keys like on the Air. I don't know anyone who likes the Touch Bar.

I'd like to get a Pro but the Air is very very good and I don't find anything that I really value on the Pro. Yes, the Pro is faster than the Air but the Air is fast and faster apparently requires a fan.
Plus: GMail for most people is a free service. They can just close it down and are under no obligation to continue their service to you.
It happens to paid accounts too, so maybe switch important Accounts to a smaller service that needs you as a customer and therefore provides customer service
This is a review from someone who uses Microsoft Edge, Outlook, and Adobe Reader on a Mac. Those are very unusual choices nowadays for Mac software, so I don't think this applies to most Mac users considering upgrading.
Mine are IEEE's "Computer" and "Software". Their "Annals of the History of Computing" is also a great read. Horrendously expensive, unfortunately. IEEE also has the IBM journals behind a paywall. I real shame.

ACM's "Communications of the ACM" is also very good.
can you elaborate? I mean it is not obvious to me what is wrong with writing a new mail server,
Steve Bannon and a Chinese Billionaire Created a Coronavirus Media Sensation
Josh Fluke has been going after shady tech companies in his videos. He has really gotten under the skin of an Indian tech CEO:

https://youtu.be/w0GhoiLS8Dc
It’s about keeping the spoils not crowning.
Thank you for your insight, very interesting.

I would particularly underline 'skilful curation' as a very strong selling point. The ability to see through all the noise, and select for relevance/interest.

Also, inside information is a big one. In a comment above, I said I appreciate Financial Times for their professionality of journalism: their journalists will often times investigate complex topics, calling up subjects, knocking on doors (the amazing coverage of the recent Wirecard scandal comes to mind) its exactly the type of original, often inside information that is worth paying for.
I hope WhiteHatJr just up and dies. They are a terrible company, manipulative and taking advantage of clueless parents.
>Per the tweets, neither are actual capitalist, but distorted knockoffs.

There are no "actual capitalists". There are only "really existing capitalists" - everything else is a no true scotchman, because those types are not some rare exceptions, but the norm for centuries...
Good old DOS. If I didn't know Unix I'd miss it!
NASA uses software blueprints analogous to CAD prior to coding:

https://history.nasa.gov/diagrams/diagrams.htm
> but it (like ranger) doesn't seem to support this out of the box

No utility can support cd-on-quit out of the box because a spawned process can't send the $PWD to the parent directly when it quits. It needs tweaks in your shell's rc file. nnn also needs the same instrumentation.
Yeah could be a really small amount like 10 cents. With millions of accounts this could be a little money on the side
Why not hit their Twitter account and say they are spamming with malicious web sites: their own.
https://archive.is/mpo2Q
This:

https://gurjeet.singh.im/blog/never-use-google-to-sign-in

https://news.ycombinator.com/item?id=25091420
So the whining heard with dial-up modems was the sound of an actual data, huh. Never really thought about it, but super cool!
IIRC someone ran some very limited Android builds. They supported the bare minimum of the hardware features.

I wonder, though, why use Linux kernel? This feels like one of those 10-year projects that will never reach any semblance of a usable state because reverse engineering hardware enough to write drivers is quite an insurmountable task for a project that runs on sheer enthusiasm. Wouldn't it be much easier to use the original Darwin kernel with its 100% working drivers and port the Android userspace to run on top of it, including the .so loader and any necessary shims?
I peeked at the reddit conversation earthboundkid mentioned. [1] The author wrote there:

> Go’s code readability, concurrency model, fast compilation, gofmt, go profiler, go vet, performance and so on. Also, we didn’t ditch Go GC entirely. We’re still using it pretty expansively in all non-critical paths and wherever it’s hard to trace the memory ownership and release.

> I see this as a no different than taking some pieces of your code and converting them to assembly (utilize SIMD instructions, for e.g.), which Go does as well. Also, note that the workload that databases need to incur are lot heavier than typical Go applications.

I don't think most of those are too satisfying as reasons to choose Go over Rust for this program. I think Go's code readability and safety are significantly compromised by this kind of manual memory management, enough so that I'd consider Rust more readable in this context. Likewise Rust's performance is significantly better—the biggest reason Go is faster to compile is that it has a simple compiler that does almost no optimizations. Rust can do that, too, in debug mode, especially with the recent cranelift backend. And Rust has equivalents to "go fmt" and "go vet".

Now it's quite possible that when they started this program years ago, Rust wasn't a good choice. Obviously at least the cranelift backend I just mentioned didn't exist at the time. Pragmatically, you often end up with this kind of "path-dependent design" / "for legacy reasons". Porting is a lot of effort, maybe more than is worth it. You can't always be chasing the hot new fashion or you'd get nothing else done. I think it still should be acknowledged however that a better tool exists now.

I agree with them the concurrency model in Go is genuinely more pleasant than in Rust. In Go, you just write synchronous code and it gets translated to a green thread model for you. In Rust, there's the async stuff which is harder to program and an async ecosystem that is still settling today. That's a clear advantage for Go, and maybe also why they say Go is more readable. (I find Rust otherwise pleasant to read.) And maybe Go is more reasonable for the non-critical path stuff as they said, and maybe that does have to be in the same program.

[1] https://www.reddit.com/r/golang/comments/jobgq9/manual_memor...
"We choose to go to the Moon...We choose to go to the Moon in this decade and do the other things, not because they are easy, but because they are hard; (...)"

This blog post made me feel all warm and fuzzy inside -really- it encapsulates all curiosity, hacking spirit and adventure is all about.
>Is this just partially a "what you're used to is easy & anything different is hard" thing?

I woulnd't say so. Some programs are plainly more confusingly designed.
Amazing tip! Well worth the two minute setup to forward to my new Protonmail address
I used to play the harpsichord, whose keys are about 3-5 mm narrower than piano keys. I have huge hands with big fingers, so it was a challenge at first, but after a week it felt normal. I doubt that smaller piano keys will be much different.
Chrome works better on M1 / Big Sur than it ever did on Intel / Catalina; Edge will catch up in due time.

Firefox is extremely buggy right now, even if it claims to be Universal (where art thou Rust tooling?), so perhaps the wait-and-see approach is right.

On the MacBook Air I have here (8 GB RAM / 512 GB SSD), it’s quite clear that Apple is onto something here.
C has lots of undefined behavior unrelated to ++ (which only adds a small twist in the grand scheme of things).

In C afaik f(g(),h()) is still UB because either g() or h() could be called first. ++ is just another small detail. (And no, I didn’t know C++17 made that behavior defined. Do you have a quick description of how it is defined now?)

“Newer languages like rust” - just say “rust”, unless you have another good example of a non fringe language that adopted most c syntax including += but without ++.
This is peak hipster.
Brexit is seasteading.
Indian twitter is full of people arguing with edtech company employees.
they're a really trigger happy litigative bunch. you HAVE to bow down coz the lawyer fees will quite literally beggar you esp since court cases are dragged on forever in india...