skysight-inc/HackerNews huggingface dataset:
The fact that just enabling exceptions adds a non-zero cost to the runtime of your program, even if the code itself does not use them, means that they are slower than just checking the return values. I've seen values from 5% to 15% slower runtime performance for just enabling exceptions and not even using them. I don't think removing the error checks will give you back those percentages.

The problem with proving something like this is you have to build and maintain two separate sets of code for the same project, one that uses exceptions in the correct manner, and another which does error checking to the same degree. Nobody has time to do that for a significant project.
> The FCC sets the test at five millimeters from the body, which may seem close, but a cell phone in your pocket is just two millimeters from your skin.

So they did the test wrong? Then their results have nothing to do with exceeding the allowed radiation. Instead this is an unsupported claim that the test parameters should be different.
On paper I dislike the idea of haptics but in practise, used sparingly, especially in a flashcard app I've been using lately it feels really satisfying to answer a card correctly and get that physical feedback.
Totally agree. I think that locality is what separates true functional programming from languages where some of functional programming features have been added on top. Immutability and types that track effects are means of achieving locality.
'should'? It'll be a cold day in hell before I take any advice whatsoever from the BBC.
I just have a bad/unreliable connection, and wish websites would GET while the GETtin is good.
How is that of any relevance to mention an "Amish bias" and go on a grandiloquent tangent about the merits of precaution vs. quick adoption of new technologies, when this is about a dating feature which (obviously) has privacy implications?
Open Source Project BitDust is looking for a designer to help us
Open Source Project BitDust is looking for a designer to help us create an encrypted mobile messaging app.

Send an email to info@bitdust.io
Or join our Telegram group at https://t.me/bitdust
Absolutely. This reminds me of a similar difference between a ‘computer scientist’ and a ‘real programmer.’ You do not need any knowledge of the so-called computer science to be an excellent software developer, and I have seen more than a few self-professed computer scientists who couldn’t write a simple program.
The following tutorial can be finished within 15 minutes: https://amber-lang.net/learn.html. Thereafter, you will know the entire syntax of Smalltalk-80.

Is there a Python tutorial where you can learn all of Python's syntax within 15 minutes?
TLDR: No-one pays for hours, they pay for value. Nothing else matters (to quote metallica).

I think some companies (and people) need to change their thinking:

One might be thinking intensely about the problem for 2 hours, and spend 1 hour writing the code, they might report 7 hours.
Not because they're lazy slackers, but because they're backburning, seeking flow and inspiration, getting interrupted and all the other stuff that gets in the way of coding..

I code mostly the first hour when I arrive, when I've got the clear idea from all the backburning that I couldn't help but do the night before when doing house chores, playing Apex Legends and on the drive to work.
When that's been flushed, I read some articles and "wait for it to come back", then there's lunch, and after that I will read another article or two, listen to music, do reviews, and then think hard about the problem.. Then for the last 2 hours, "it" will be back, and I will write the code down.

Am I lying when I've logged the days time?

No.

That code costs a days worth of salary, it does not matter how many lines it is, or even how hard it was to write.

What matters is that my employer is satisfied with the value they got for that amount of money in that amount of time.

If they can't accept that, they'd have to find someone else..

But would they want that?

Would that guy who sits and types the entire day produce more code than me?

Maybe not, maybe he's doing more interation. Maybe, maybe he's just better (tm) than I am.
Maybe not, maybe he's writing more, but worse.
But it does not even matter.

Would the money for a days work be better spent on him than me?

I wouldn't know. But I can't feel bad, because I'm doing the best I can, and my intention is good, and nobody can ask for more. I've been here for 6 years and never heard a word for it.
Refactoring to Microservices (2015)
@OP this looks interesting project.

- Can you share what kind of tech stack you used?

- What is the source/basis of the generated news?

- The site looks slick and beautiful doesnt look like WP what have you used to make it? (Not related to project directly but liked the UI so asked.)
Exactly. I'd say there's a fair chance that anyone playing about with this type of hardware will want to be tweaking fairly low-level config etc. of the type that's hidden in Windows anyhow.
TL;DR: get a Kenyan company to do this, because they're cheaper.
There's an option on the first screenshot ("ik heb geen smartphone") I don't know what would happen when you click that link (already have my digid on ios set up many years ago) but seems like the government have thought about that.
Show HN: Convert a label printer into a story teller
If you felt mistreated I'm sorry. But it was a genuine question.
When you add the Gemstone/S transparent object database to the mix is is truly astonishing.
I think the reason programming is difficult is that really we are dealing with incomplete information while the device that runs your program does not care you have incomplete information and wants to screw you the first time you do something not right in the slightest.

Programming is not just understanding how the device, language, libraries work (ie. getting more complete information) but also limiting the ways the adversary can screw you and limiting the fallout.

Programming is difficult because developers don't appreciate how important the part of managing this incomplete information is. "I wrote this and it works! Yeay!" And then it goes in prod and fails instantly because you did not take this or that into account.

Some bright developers have the ability to manage this. But the problem is that they can't work really well with other developers (at a typical corp) who don't appreciate the problem the same way. This puts them in this untenable positions where they can either do something by themselves, very efficiently, or rely on extremely inefficient process if they want to work with other developers.
Apple Pro Display not so pro
Thats a modern age coding problem, copy it from google or stackoverflow and they dont know what they solved and how they solved it.
Curta Calculator Type I scaled at 3:1
Usenet – Let's Return to Public Spaces
> Since my adblocker is blocking the guce.advertising.com domain, I guess I don't get to visit TechCrunch.

Same here. I usually 'proxy' through the Internet Archive in these situations: https://web.archive.org/web/20200213123006/https://techcrunc...
I know we (Mozilla) are working on fixing this in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1515073

You may want to check Apple's bug tracker, they likely have an open issue on this already.
Supporting only 64 processors in a group on a 64bit operating system seems like a reasonable and sane technical solution. It means you can use a single 64bit variable as a bitmask for various processor related functions in a process.

I would bet that many other bits of software also have this limitation because they too thought that using a 64bit value for a processor mask would be sufficient.
Just wait until someone clones the website and removes the domain, then it gets quoted in some tabloid and then that is posted on a forum, then tweeted and finally the tweet is posted as news somewhere.

Additional point: the problem is not even the false stories themselves, it's the undermining of legitimacy in real news that it provokes.
Even better, delete all cookies, session and local data for each domain after all tabs for this domain have been closed (after 15 seconds), unless the user specifically whitelist a particular website. Like the amazing Cookie AutoDelete addons, that has completely changed my browser usage.
> list comprehensions

Yes. Very much yes. My personal rule is to _always_ use single-letter names for Python comprehension indices, because line length is the biggest enemy of readability there.
You are seriously suggesting breaking my coding workflow, to open a popup just to give me a half-assed suggestion I will probably dismiss anyways? Visual studio wants your location
Yep, and people have been splitting their code in all sorts of ways long before anyone called anything microservices.
Popular preprint servers face closure because of money troubles
Show HN: Self-Care Toolkit for Remote Work
Encryption is different in that all safes can be opened with physical access and a few days of expert work at most.
There is a reason why people make a distinction between "Programming" and "Software Engineering". Programming is just the act of writing code. All you have to do is learn a programming language and you are set.

"Software Engineering" encompasses everything else on top of programming. You need knowledge of these things: build systems (Make/Gradle), filesystems, networking (IP/TCP/HTTP), Data formats (JSON/XML), Databases(SQL/KV), software architecture, layout/styling, documentation (both reading and writing). This list is just scratching the surface but we can agree that all of these things are critical to build applications.

These topics clearly aren't exclusive to "Programming" and knowing them doesn't mean you are a "Programmer". You could also be a sysadmin that is managing a large cluster for multiple applications. But if you are a Software Engineer and not just a mere "Programmer" you know that your job is much much more difficult than merely the "Programmer" part.
Writing vs Curating.

Do we need to rewrite what's already written? How does this prevent bad actors? Over saturation with "good" content?

What if wr curated the most valuable human-written content with AI? So that humans can build trust with the [AI] entity. I think this type of curation is how we prevent bad actors.

Writing by AI should be used similarly to improving the quality of images video by filling-in-the-gaps. We already have too much "not duplicate" content if you ask me.
It feels wierd to read an american article that uses word like 'fuck you' and 'fucked up'. I kind of like the brutal honesty of the word usage.
Geology Can Ease Your Mind
I feel like the constraints he added are a bit too restrictive, they would force a program to be perfect whereas for most circumstances it would be enough for a program to be bug-free.

The real problem seems to be writing bug-free programs, which seems to be difficult mostly because it is hard to specify what a program should do formally (i.e. in code). Note that bugs are never about the program not doing what it is told, but are always a mismatch between the program and the programmers mental model of the program.
All these building NNs in haskell, ocaml or another language solving an extremely simple problem which is ok if you want to just have some fun. But if the proponents are really serious they would put out a detailed tutorial solving a complex task (e.g building a state-of-the-art language model) showing the ease / difficulty of the process, and how using a typed functional language helps in debugging the model - which is supposed to be the biggest selling point of these languages? This will also show whether it is viable for a real life practitioner to invest time in learning these languages / frameworks.
You are not innocent until proven guilty; you are presumed innocent until proven guilty beyond a reasonable doubt. You are guilty, or you are innocent, from the beginning; only, we admit uncertainty in the presence of reasonable doubt, which evidence and argument need erode to prove guilt.
I am quite sure Satoshi Nakamoto suggested it as a probabilistic solution, yes, but not a full one[0]

[0] https://ethereum.stackexchange.com/questions/40213/how-is-th...
Studying [X heavy field] will enhance your understanding of X.

Studying electronics did not enhance my understanding of calculus, but maybe I didn't study it enough. On a related note, I have grokked logarithms only when I needed them to implement some graphing module
Contrariwise, I try to keep my code under 72 columns wide, and impose a hard limit at 80. Long lines are hard to read, no matter what screen they're on.
Names in tech are getting more ridiculous every day lately.. but this takes it to a new level.
Hey everyone!

I have always felt that self-care is often misunderstood, ignored and even misused. The question isn't 'Do you take of yourself?' rather it is 'In what ways do you take care of yourself?'. I use a lot of self-care apps myself including Calm for meditation, WaterMinder to remind me to drink water or Reboot for taking breaks. So thought, why not create a mini directory of such apps with a short review on each.

The stash is live at https://self-care.remote.tools. Have also written an accompanying post at https://www.remote.tools/newsletter/self-care. This is a simple side project I picked up in my spare time and would love to hear your thoughts/ feedback!
Or just buy The Art of Electronics :)
> does this mean that most news sites are just copying facts off one other?

This is how AP/Reuters/"newswire" content works. Since very few organisations can afford to have people everywhere, there's a sort of syndication model going on where the people that are in the right place for breaking news can sell it to a broker, who writes it up and then it appears across the rest of the media.

Press releases are even more of a thing. An organisation which wants to get in to the news will make a press release, which is basically a kit of quotes and "facts" that can be loosely re-written into an article.

It's also important to understand how limited journalistic "fact checking" really is. They're not detectives, nor scientists, and don't have the time to be either. Most of the time it consists simply of ringing someone being talked about, asking them "is this true", and printing the result.
Mapping Gay-Friendly Cities Through History
You'd probably be surprised. For reads, there are tons of drives that will saturate PCIe 3.0 x4 with 4kB random reads. Throughput is a bit lower because of more overhead from smaller commands, but still several GB/s. Fragmentation won't appreciably slow you down any further, as long as you keep feeding the drive a reasonably large queue of requests (so you do need your software to be working with a decent degree of parallelism).

What will cause you serious and unavoidable trouble is if you cannot structure things to have any spatial locality. If you only want one 64-bit value out of the 4kB block you've fetched, and you'll come back later another 511 times to fetch the other 64b values in that block, then your performance deficit relative to DRAM will be greatly amplified (because your DRAM fetches would be 64B cachelines fetch 8x each instead of 4kB blocks fetched 512x each).
Sorry, all these articles are from a single person with the messianic syndrome who named himself "Mr Smalltalk". He absolutely rejects any complaints about his activities (he repeatedly told us that we do not understand marketing) and he will never be able to write something more solid because he actually is not a Smalltalk programmer and does not know it well. He is making a really bad service.
Yes. There are several BFT compliant conensus algorithms for both Proof of Work and Proof of Stake. Some of them, such as Bitcoin, are BFT compliant because it's economically infeasible to complete an attack. Ouroboros is BFT compliant up to n/2-1 bad actors https://eprint.iacr.org/2018/1049.pdf

Edit: This goes back a comment I made the other day about 'Blockchain == Down votes' on HN. Why would you down-vote OPs question?
I dear to say that a well designed monolith has a lot of mini micro-services build in.
Yes, and professional
That's good to know! I got burned pretty bad trying to switch away from actix-web to one of the other frameworks (rocket, gotham, warp) after the whole kerfuffle and lost my taste for Rust as a backend web language as a result. Seeing your experience makes me want to try again with only hyper! I've always heard it was too "low level" and never gave it a proper look as a result.
Not sure how the code in action link is supposed to work. That is probably a general feature offered by Packt which is not used by this particular book.
Quibble – Custom Windows Bootloader
Thats the way I read it too, change 5 millimeters to 2 millimeters following inverse-square law and no surprise you get a higher absorption rate. Thats not "emitting twice the allowed radiation", thats just being closer to the source.

Still no proof this extremely low amount of power causes any biological issues. Its literally the same power level as an LED flashing next to your head, its just in the RF range vs visual and non-ionizing unlike say going out in the sun which is a 1000 watt per square meter radiator emitting UV radiation know to cause cancer.
> formatting ( markdown ) consistent.

This actually is not a good argument because Markdown is specifically designed to be readable as plain text.
Mac_apt: macOS Artifact Parsing Tool
thanks! Seems reasonable :-)
As opposed to...? Oh wait. You mean "hire _us_ specifically."
The Need for Speed: A Toptal JavaScript Coding Challenge Retrospective
> Same as putting them on a billboard.

I don't really understand why services like these don't drop the pretense of keeping your private data private, and instead simply say "anything you write on our website will be published online publicly".

While there might be some user backlash, I don't think it would be that big, and would meet all the laws and regulations.
In my experience it is 99% of the internal politics and 1% of the legal. People in software related business ( including software engineers ) like talking about open source, GPL, etc the same way as think tanks like talking about eradicating poverty and homelessness, but any attempt to actually do something about it (release the source, build a few shelters, hire janitors) results in massive hand waving rather than action.
>Of course, maybe the genes leading to blindness and schizophrenia together also lead to some other defect

There are many potential causes of being born blind, not all of them genetic.
This atlas published by members of NASU Institute of History of Ukraine[0] in 2018, and full name is «Terra Ucrainica: The History Atlas of Ukraine and Neighboring Lands»[1]

ISBN 978-617-12-3719-3

Authors[2,3] of this atlas also are members of the «Likbez: Historical Front» non-profit organization, which provide blog and educational resources on history, politics and cartography.[4]

[0] https://en.wikipedia.org/wiki/NASU_Institute_of_History_of_U...

[1] http://history.org.ua/en/post/43220

[2] http://likbez.org.ua/en/author/vortman

[3] http://likbez.org.ua/en/author/lystopad23

[4] http://likbez.org.ua/en/
Replacing all identifier names with random strings (perhaps excluding built-ins and third-party dependencies), and then having an outsider try and understand what the program does in under N minutes, could be such an interesting litmus test of how well a program is organized and structured beyond naming.

(Which is not to say naming is unimportant, of course.)
Are you outside the EU? It probably decided they don't need your consent, as I did get a consent page. It was convoluted, impossible to decline (I'm still looking around) and illegal under the GDPR, but I did get it.

EDIT: Yeah, it doesn't seem possible to withdraw consent. I stopped after ten clicks that only led to "informational" pages where sentences stopped mid-way.
well, now you trust the server. Who might betray you :)
Epiphone Les Paul Junior Review (2020)
> Why does it matter what things are called if the name of the thing might be a lie anyway? I'm going to have to check what it does anyway!

If you think naming doesn't matter, why should I read the rest of your opinions on the subject of naming?
We Provide Cleared Engineers for Hire
I always find it baffling that news pages are amongst the worst offenders regardings tracking (at least that how it feels). Here in Germany we have news pages like Spiegel Online, whose journalists criticise Facebook et al. in quite harsh words, but you can't read any of these articles without loading a bazillion tracking cookies on your browser.
This probably stems from the seperation of webpage tech, advertising and newsroom, but it strongly feels for me that these newspapers are not living by the values they preach.
That is awesome, thank you for putting in some time for this!
I think your experience reinforces my point that you can get to be proficient in electronics from either end: formal theoretical education leading to hands-on, or hands-on with theoretical learned as needed. Your case seems like the latter, and you learned about bypass capacitors early on. My case was the former, and I learned about them later.
I used my own experience, which I trust more than any external instrument when it comes to my mind.
That sounds like a very dangerous assumption. You don't get to decide that you have nothing to hide. They do.
The High Cost of Homeownership
> Variable name length should be proportional to its scope.

I remember the rule from CC, and I kinda like it. But there are obvious exceptions to that. There are things like logging or printing in the global scope that one would die for to have short names.

Also if you have an object with many fields that you need to access. Then it is more convenient to give it a short name, to make the code more readable.

So parent's suggestion, to have length of the name inversely proportional to its frequency, is also a good point. The two conventions unfortunately sometimes contradict.
I'd draw a distinction here between electronic engineering and the art and craft of electronic design.

This is clearly an engineering textbook, starting with theory and moving on to analysis, understanding a system through mathematical modeling. If you really want to know everything (or at least most things) quantitatively about a circuit before you build it, these are the tools you need.

The parallel skill set is electronic design, sticking components and circuits together to make things. As you build bigger and more complex things, you learn more rules of thumb about different components and how to combine them into something useful.

Both of these skills together are needed in some measure in order to really be good at electronics, but everyone is more suited to one approach or the other, and learns best when they lead with that approach and fill in with the other one. For myself, I tried to learn electronics with those 50-in-1 kits but just 'didn't get it' because I didn't know what the different components did. With first year EE under my belt it all made sense and from then on I was able to learn the tinkering side.
As an American living in Europe, I actually think that Europe is ahead of the curve with respect to privacy and security. US culture is informed by a laisez-faire approach to business and customer protection, but European governments are generally more proactive in thinking on behalf of its citizens.

I don't know why you're getting downvoted so bad. Your opinion is valid and well stated, even though I disagree.
Maybe in this case, it is somehow clear that there is encrypted stuff and the government is also sure who can decrypt it (who owns the key to decrypt it.) But since a variety of Deniable encryption[0] exits, what happens when they think there is something to decrypt when there isn't? Or when they can't prove it but they want to believe there is something there?

[0] https://en.wikipedia.org/wiki/Deniable_encryption
Thales’ triangles: why I do math