skysight-inc/HackerNews huggingface dataset:
I have brief look at this book and it looks nice and easy to read, however I noted the author works with floating point numbers and in some places, you can see snippets like this:

// are the two points in the same location?
if (x1 == x2 && y1 == y2) {
return true;
}

You should never compare two floating-point numbers for equality.
Use interval and < > to determine if two numbers are close.
The main reason is to have a library-scope name table and a bunch of global indexes. Can't beat that in terms of performance.
In the playstore you can support old devices by keeping the old apks available (http://developer.android.com/google/play/publishing/multiple...).
This would work very well for GPSLogger.
It's not misleading, though I can see why

It's not YC "failed" startups, it's (a list of) YC "failed startups".
In that case it's just in the hands of individual publishers, so results will vary. Plus publishers will make more money if they _don't_ do the right thing and police out the bad ads (at least in the short term).
Going by https://en.wikipedia.org/wiki/Combined_statistical_area
to get to 50% of US pop (165 mm) one only needs to cumulate down from the 23mm of the New York metro area to about Greater San Antonio (2,550,960 people), the 25th largest metro area in the country.

Of course, lacking a one person one vote principle, the 50% cutoff for electoral counts may look very different. Nie mój cyrk, nie moje malpy.

Na desh komante mi; na desh pagal mi.
Usability is easy to fix. Replace comment with #pragma or better list dependencies in a separate file (like gemspec). Add #require keyword which resolves order automatically.

That's advice from February 21, 1989. They've implemented OS and some GUI applications, for example acme text editor [1]. Maybe it is not that hard.

[1] https://github.com/brho/plan9/blob/master/sys/src/cmd/acme/a...
Yeah, and pressure their system and degrade their standards, they've build over years themselves (in 1900 Sweden was not much different than a third world country today).

Why do those other people get some automatic raise?
It's no legend, and all that's changed is that they don't even threaten you anymore, but straight up outcompete you without you having any recourse.

https://news.ycombinator.com/item?id=23375056
Meh, using paper checks -- and being able to pull up the scanned image online at any time -- has saved my butt at least twice in the last two years (to the tune of a few thousand dollars).

There's only one thing I (typically) use them for nowadays but they do occasionally come in handy at times.
On the Zynq family of devices, you can load bitstreams at runtime from Linux through a device file in /dev
this is a good example of a "simple versus easy" trade off [1] , i.e. this is something that is easier to get started at some expense of simplicity: it is over-complicated & hides complexity behind a simple interface, but not in a way that is reliable - so eventually things will break and then you'll be strictly more confused than if you did things in a less easy but simpler way - learning a bit about dependency management & setting up a reproducible environment for running your python script/app.

that said, it is an amusing hack to run the virtualenv'd python in a subprocess and then extract the environment vars and inject them into the already running python process.

some of the code could be cleaned up a bit -- e.g. it could be using https://docs.python.org/3/library/tempfile.html#tempfile.Tem... to just ask for a uniquely named temp dir, some of the subprocess invocations dont appear to have error handling, etc.

for my python hobby project these days i only depend upon packages i can install using apt in debian stable. containers for isolation help too.

[1] https://www.infoq.com/presentations/Simple-Made-Easy/
Performing semantic analysis on a language like Rust is much harder than Pascal i.e. to compile a rust file you have to perform static analysis as part of the compilation.

It can be faster though. D is a very big language and I can compile the entire compiler in a second flat on my machine (i.e. it's cheap enough not to cache the resulting object file to include in my project)
How to create Transformers almost from Scratch?
This is not how it works, but it is one of many lies spread to help prevent raising minimum wage.
Another great avenue is getting in touch with your state's Attorney General.
> @ardy42 voices like Whitney need to be heard whether you agree or not, there are vast swathes of 'unreported' things going on right now, my original point. The mainstream media is anodyne in comparison...

The mainstream media is usually anodyne in comparison to conspiracy theories, because the latter can have extra drama injected into them and push more emotional buttons.

Take that first article I linked to above. The "clear Trump win" scenario Whitney's article dwells upon and gives a sinister cast also included a large popular vote win for Biden, which she completely failed to mention and which would have undermined her "planned power grab" narrative significantly if she had. A constitutional crisis is much more understandable if the winner of the electoral college lost the popular vote badly, given it's always been a broken system and it seems illegitimate to a lot of people for the winner of an election is not be the person who got the most votes.

But it's way more dramatic if you can make it sound like the Democrats are planning on stealing the election regardless of what happens.

> Separately the term 'conspiracy theorist' is both anti free speech and extremely unhealthy in a democracy. One person's investigative reporter is another persons 'conspiracy theorist'...

Nope, sorry. I'm not impinging on anyone's free speech rights by using the term "conspiracy theorist." I'd argue it's also rather healthy term to use in a democracy, since a democracy will fail to function effectively if such thinking becomes too dominant.
The more I program professionally, the less patience I have for clever code in a work setting. I used to love it, but after the nth time it caused me real, physical pain while oncall, I'm no longer a fan.

Clever code doesn't help me in a hundred million++ line repo of code maintained by thousands of people. It is actively detrimental.

Still fun to pick apart for leisure.
Sure, a person is attractive in many ways.

The nudity policy in media however is utterly ridiculous. Butts are allowed nipplee are not , but breastfeeding is probably ok, bikinis are ok, but not if too wet , etc etc.

Tech is perpetuating the Victorian era in the most comical, backwards fashion
> However, he got caught on the last one ...

I guess it makes sense that he quit robbing banks once he got caught.
> You could easily have a synchronous http implementation which allows for printing to the console between receiving chunks of data from the network. And if you really didn't want blocking to have a "spinning" activity indicator or something, you could still achieve it with threads.

One could do a spinning indicator, but not a label STALLED. To get this one need to restart read(2) every while, and there we come to implementation with complexity on par with async. Things become even more interesting if a program wants to process user input in async. UNIX-way is to send signals, but it is just plain ugly. dd from coreutils allows to use signals to trigger it to print progress, it is very inconvenient way to do it.

> I think ultimately you'd have to decide based on the relative cost of including an entire runtime vs. just launching a second thread.

I'm not so sure. Runtime for user-space context-switching is very small. I did it for educational purposes at some time in the past with C. It is operation like save registers, switch stacks, restore registers and jump to another thread. If you have more than two threads, then you'd need some kind of structure to store all contexts and to decide which one to choose next. Add some I/O code (like epoll) to track state of file descriptors, and you are done. One could do it without async, but it wouldn't become much smaller, because it would be the same logic, just instead of stack switching program would recreate stack frames.
well, this isn't the first time I have heard about Cryengine being terrible. how other studios like Arkane handled it is a mystery
Huh. I actually was about to suggest that the Java Hello World should work, but a quick perusal dismisses that.

Why would Google bother keeping the JVM class hierarchy if they were implementing a different VM to run against anyway? That just seems to be asking for trouble. I can sort of see some merit to Oracle's argument now. It would be one thing if JVM byte code was treated as an Intermediary representation that then compiled to Dalvik... but it isn't even really that.

Damn, Google stepped in it. Hard.

Edit: Further research indicates Java Byte code is an intermediate representation compiled to Dalvik; so technically the Java Hello World would work coming out in Dalvik (or Android Runtime). So... Back to being confused again, because clearly, even if Google did copy pasta the Java APIs the end machine they are driving is drastically different; I.e., System.out.println() would generate no visible output on Android.

So I'm really back in Google's camp, Oracle is trying to copyright a steering wheel.
Nice, a 100 page privacy policy and not even an opt out.
Can you explain to me why you're not making a

"why is this gate here, let's take it down!"

type comment?

Checks are extremely useful to individuals. You can pay for something, it has no overhead, and you have your own audit trail.

You can probably fake a fax machine or a certified letter too, but I think they are useful too.
As an FPGA dev, I tend to think of HDLs akin to HTML than “code”. It’s just a DSL to describe a graph. Actually pretty similar to how tensorflow is designed.
I detest handwriting. It's painful for me (I hold my pen badly, and always have done), and I have pretty bad writing unless I pay attention to it.

I definitely make better notes when I'm writing, but also I -think- about the problem at hand when I do so, and this generally means I come up with better solutions. While it's anecdotal, I think it's the same as speaking to someone. I can think of conversations in my head, and they don't go anywhere compared to when I speak with my girlfriend about the same topic - even when it's something technical that she doesn't have any particular input in, I can come up with new ideas when doing this, and she's a counsellor so she has taught me the value of talking, anyway.

There's more to systems than just the 'efficiency' that a lot of commenters are mentioning here, IMO.
> Not sure why I’m getting downvoted for stating simple facts...

Welcome to HN.
A couple of years ago I was in this position. I wanted to know how computers work and stumbled upon this resource. I can highly recommend the exercises given on Github by Xorpd. It really requires no prior knowledge and a lot of the exercises have answers now (still a work in progress though).

Next to that it might be convenient to have something like asmdebugger.com next to it.

Another book that also really helped working with this was "Code: the Hidden Language of Computer Hard and Software" by Charles Petzold. This explains how computers work from light bulb/transistor level, all the way to the top to the OS, the monitor and the keyboard.
At a conference presentation the other day a speaker made the claim that well-written Julia code was as fast as well-written C code while as expressive as Python, so it solved the two language problem.

My Python package uses a C extension for performance. That C extension uses AVX2 intrinsics. How well does Julia support intrinsics?

Even supporting something like __builtin_popcountll() would be nice, but http://rosettacode.org/wiki/Population_count#Julia suggests that it's not supported in Julia.

I've no experience with Julia and my attempt at finding this out on my own failed - does anyone here know about Julia's support for intrinsics?
back in 2015, Dell bought EMC and Vmware. both combined had a way bjgger market cap than Dell. yet, Dell bought them by raising money from the market
Sorry that’s one of the most ridiculous arguments for oppressing everyone, and partially applied. Why not cover men’s nipples too?
D has import std; which just imports the whole standard library in one go (for writing). You might be able to write your own (not sure if python has public imports)
Democracy Muzzled - Peter Hitchens
Floating point comparison is a bottomless pit. This article goes into details:

https://randomascii.wordpress.com/2012/02/25/comparing-float...

In particular, in many cases, you want to consider alternatives to comparing against a fixed epsilon: the relative epsilon approach, and the ULP (Units in the Last Place) method, which tests for how many other floats/doubles are representable between two values you're comparing. The benefit of these two methods is that they scale with the compared numbers.
I love me some Alsup decisions. Almost makes me wish I had gone into law and tried to become a judge.

Ok not really almost, but for a brief second.
The article's talking about running 32-bit applications in emulation, with a 64-bit native kernel.

> Then a rewrite of RISC OS for 64-bit ARM chips would require a 32-bit emulation layer for old apps to run -- and very slowly at that, when ARM chips no longer execute 32-bit code directly. A software emulation of 32-bit ARM would be needed, with perhaps a 10x performance drop.
The information in that book will age like milk, while the hundred page book will age like wine.
My favorite part of it is at the end of the file :)
if name == "boring_wozniak" /* Steve Wozniak is not boring */ {
goto begin
}
> I guess libcurl is designed to be that way, so that to an curl-master, he can tune all the knobs to do what he want

The --libcurl command line argument can help translate curl to libcurl.

0: https://ec.haxx.se/libcurl/libcurl--libcurl
Capital cost is the initial cost to build this system. The figure for comes from figure 14. The cost estimates are $3,000 with current technology. This works out to $500 per KWh 20 years system. To match the lifespan of a nuclear plant (typically 60 to 80 years), this works out to $1,500 to $2,000 per KWh when factoring the limited life span of the storage.

Regarding the reply with no response, timestamps get more coarse grained the further in the past you get. This reply could easily be weeks after my initial comment, and I would have explained how I arrived at these figures if I has read it.

Meanwhile, glaring inaccuracies like calming that existing natural gas infrastructure can be used to transport hydrogen go unmentioned. Or that "hardly anyone is building nuclear" when in fact most of the world by population is. And if we're talking about cherry-picking pfdietz incessantly cherry picks the Vogtle and Flamanville plants as though they're representative of historic nuclear costs. You arrive at the conclusion that I'm arguing in bad faith, while conveniently ignoring these issues with the claims I'm arguing against.

This exchange makes me sad, too. Solar and wind serve as useful temporary mitigation of carbon output, even though they don't pave a way to full decarbonization. A hydrogen economy has a place to fulfill demand where energy density is necessary, like in transportation. But trying to advocate pipe-dream projects like storing tens of terawatt hours worth of energy in hydrogen really makes me wonder whether solar and wind advocates really have a grasp on the engineering challenges they're facing. Especially when these plans rest on outright falsehoods, like the claim that we can using existing natural gas pipes for hydrogen.
How does it compare with simple chemical maze solvers like https://youtu.be/ztOk-v8epAg ?
I'm reminded of Permutation City where they talk to one another with virtual avatars that are able to mask emotional responses and such.
Maybe so, but I'd imagine most of the legacy 32-bit apps you'd be running in emulation here on your 64-bit RISC OS system are from the late 80s (or maybe the early-to-mid-90s), doing those late 80s things.
Very possibly true. I get a lot of my writing style from writers I enjoy.
Top Mobile App Development Technologies
I think it's condescending towards the antique people to claim that they couldn't have figured these things out themselves. People were in all ways as smart and capable as us, they just had lower technology level and different concepts. I'm sure there were some concepts lost to the ages that could be developed into amazing modern technology. It's just how invention works - many times a great invention is not recognized as valuable. Zero is classic case. It was invented independently in various times and areas and forgotten. Without zero you can't have a positional numeric system.
Why is 0.1 and 0.2 not equal to 0.3?
Aren't there other options besides checks and credit cards? Like Venmo?
This is one of those posts I save to read later but never actually read. It's interesting but not essential.
The article talks about processing the CSV file in memory, not about loading it.

What am I missing?
I don’t like SF at all but I do think people will go back. Is there any stocks to buy for this...prediction?
What is odd exactly? The author is doing what he can to show people how they should use the tool (and not abuse it).

By also supplying an exclude file (and showing how to use it), the author goes a long way to help I'd you ask me.

The rest is up to to whomever decides to use/abuse it, as always.
The diff will be low norm (for some suitable norm), but it needn’t be sparse in pixel space. It could be sparse in some other spaces (Eg: wavelet basis), but that’s right where the challenge lies — finding a basis where the data (and/or the residue) to be transmitted is sparse.
If Archimedes' final diagram was indeed of curved figures, TFA gives new context to:

https://en.wikipedia.org/wiki/Noli_turbare_circulos_meos!

====

Roman: Kay-ting name toe?

Archimedes: Na, fodagut, du sabaka da duting xiya!

Roman: Right, he's resisting arrest! (stabs Archimedes)

Archimedes: (Wilhelm scream)
How should couple handle their differences?
Not a Trump fan but by "...rapists. And some, I assume, are good people" he no doubt meant some were rapist not all, which is factually correct. Trump says so much bad stuff that twisting his words only really weakens the opposition case.
Thanks to Castle's mysterious one big customer it has survived into its fourth decade.

I’d previously missed this piece of lore. Anyone got any more info on it? I’m trying to picture what critical system built on RISC OS would have required ongoing maintenance and am coming up blank.
Best ECommerce Platform 2020
They’re making the language mostly for statisticians, mathematicians and scientific programmers, where it makes sense to have arrays start at 1. Why should they cater to whiny engineers who can’t deal with anything they aren’t used to?
> It's too late for virtual memory, and we don't really need it any more -- but the programming methods that allow virtual memory, letting programs spill over onto disk if the OS runs low on memory, are the same as those that enforce the protection of each program's RAM from all other programs.

Strictly speaking, I don't think this is true - virtual memory and process-based memory protection are separate issues. One could have a single-address-space OS where physical memory is identically mapped in each process' address space, while still preserving memory protection. A privileged process in such an OS might effectively be exempt from memory protection altogether, which would provide compatibility for legacy apps.
Labor in the top 1% is still labor was my point. I never argued that inequality doesn't exist or didn't get worse. I just think the capital vs labor rhetoric is a distraction.

Edit: Also, from the link, this is very fishy to me. You could argue the medical benefits they exclude aren't meaningful because of healthcare inflation not being linked to better health outcomes. You can't make that argument for capital gains. It's likely not be meaningful because there are indeed severe inequalities among Americans in capital assets holdings, it is still an omission however.

> And it takes into account capital gains but, due to certain technical constraints, only for those above the 90th percentile.
It does load it - mmap doesn't copy the file content into a buffer, it merely allows you to operate on a file as if it were in memory. Memory reads correspond to file read operations.
It was entirely possible in those days to understand everything from transistors, to digital logic gates, to flip-flops, to clocks, to adders, to registers, to 8 bit computer chips, to assembler, to the primitive BASIC on an Apple II.
The curse of knowledge problem remains for the expert, though. A long learning curve just means you need to be clear what the 1-year student can teach you. Namely they will be better specifically at helping someone get from year zero to year one in their learning.

Perhaps a safer way to accomplish this is techniques like "peer learning", where students are put in groups and the ones who are ahead (i.e. they understood the concept when the prof presented it) can explain it to the ones who are behind in a way they understand better.
What will Twitter do when the President loses the election, as he is likely to, and then immediately takes to Twitter to proclaim that a fraud has been perpetrated, as he is virtually certain to do in that scenario?

Will they really just tag his claims with a "this is misleading?" Or will they take the approach that is most certain to preserve order, and ban the President?

This is not a drill. This is a question that Twitter will be confronted with this once, and never again. No new policy need be created. If principles are compromised in doing this, it is a one-off.

Putting aside debates about cancel culture and ideological bias, Twitter already censors various kinds of uncontroversially harmful speech, and the President's claim--to the small but not insignificant segment of his supporters who are angry, credulous, and well-armed--that the election was stolen will surely qualify as such a statement.
> They don't lose a few bucks, it's insured.

That's not how insurance works. If you file claims against the insurance company, they pay the claim, but your rates go up to cover it. YOU wind up paying.