skysight-inc/HackerNews huggingface dataset:
As far as real-world performance goes, this paper claims (and shows) that code size is the relevant aspect of mem* functions, and concludes that `rep stosb` is optimal in practice, even though it obviously loses to exotic hand-rolled memset and memcmp in microbenchmarks.

https://storage.googleapis.com/pub-tools-public-publication-...
I think that is a fair opinion and my life at work would be better if others shared that opinion. Go however does officially stake out the opposite position: coverage only "counts" if the test is in the same package as the unit under test.
Unfortunately I think that the motivation for that is the same.
Glad you reminded me that allegations of "state-actor" are not reliable, or I might think you're implying that the CIA is responsible. Also, framing someone else is an ancient part of espionage, not something the CIA recently invented. They're far from the only people who use that tactic.

I'm not going to hold my breath about any party coming clean about who's actually responsible. Until then we can just make guesses about it based on the evidence we have, the targets, the code itself, and the location of the server. It certainly points to a state-actor.
Look at 50-100 gallon deck boxes. Even if you drove around with a truck, how many could you possibly fit in the back?

You don’t even know if they contain anything of value and most would probably be empty.

These thieves are just snatching a dozen (or two or three) small boxes at a time, opening them in an alley (or whatever) and dumping anything that isn’t of value.
Choreomania
But it doesn't.

And Windows 11 removed the default web browser setting. You have to change every protocol and file type separately now. Or have an app do it for you.
Random fun fact: People who have gone through YC could see fellow YC accounts in orange. It was a neat hidden feature from HN v1. No idea if that's still the case though.
To see the REPL and debugger advantages of Common Lisp over other Lisps, Python, Haskell etc., you really should try for yourself in SLIME or SLY (a SLIME fork) imo.

But anyway, let's say I made an error somewhere and the program halts, putting me in the debugger. I can then examine each frame preceding the error. I can see every value going into my functions and jump around in the code generating those values. I change the code, while the debugger is still running, recompile it into the halted program and then pick a frame point right before the error occurred, to test if my changed code solves the problem. If it doesn't, I'll examine some more, perhaps start a second instance of the REPL to experiment a bit, then try another change in my code. All the while, I don't lose state. Once the problem is solved, my program will continue where it was as if the problem never happened.

For something like game programming, where you may be deep in the game and have encountered some rare combination of circumstances, this is simply invaluable.
I'm in the UK, I can have stuff delivered to my office, my home, a remote access anytime locker, a local store or a friend's house. I really don't have an excuse for someone not being there.

Maybe it's different where you are?
Guess you never used electric bus?

I’m tall so I prefer to be squeezed for 1 hour instead of 14 hours.
Turkey, Greece, and the Eastern Mediterranean generally also used to be forested, until people came with goats.
TeX is like the Latin language. Its esoteric nature keeps out the riff-raff.
I realize the math works out, but does seem rather fanciful.

So a blackhole is caused, mass goes in, it gets heavier and the event horizon gets larger. Mass is conserved, no magic needed.

But at some point mass stops being conserved, a worm hole forms, and matter is ejected from the other side? Despite needing negative mass/energy to keep it open? If this was true, wouldn't there be a max size of black holes? Or maybe a MUCH easier to see white hole for each black hole?
Assuming you can't or don't want to use something like Lucene or Solr (which are quite resource hungry), here's how to build a search engine. It's takes a diverse mix of computer science and low level programming to get working, but nothing is exorbitantly difficult.

One side of the problem is to extract keywords from the documents, probably a good idea to start with something along the lines of OpenNLP and use that for TextRank. Well that's roughly what I'm doing now anyway, after having tried a few other approaches. It depends a bit on the nature of the documents I guess. Proper NLP is slow, but dumb TF-IDF goes a long way. (just google these things and you'll figure it out).

If you want full text search, you'll probably want to look into constructing a suffix tree as well. Or just fake it using N-grams, but you absolutely need some rules limiting which N-grams are valid search terms, or their numbers grow astronomically. POS-tagging is useful here if you can afford it.

As for the index: First you need a component that maps keywords to integers. This only needs to be one way, I use a custom memory mapped hashtable, but depending on how much data you've got, there are probably easier alternatives.

Next you need to set up a reverse index that maps words-id to document-id. Again, this is a bunch of memory mapped binary data, I use a mix of hash tables and sorted arrays for binary searches.

That's sort of it.

Then you draw the rest of the owl.
> Martin asserts that an ideal function is two to four lines of code long

This is the kind of assertion that's going to need a very compelling, realistic example in order to avoid being seen as anything other than some sort of purely theoretical fantasy.
Ok that makes sense now.

How did you obtain legal entry after the advanced parole?

Which countries are eligible for DACA or is it totally open for people from any country in the world?
Diesel generators have been baked into my on prem equipment room for at least 40 years

For you average person working in an average office if the power goes out you're not going to be working anyway, so it doesn't matter if your server is offline too.
I read that as indication that the overall team was imploding, IE: other people were having the same kinds of problems he was experiencing.
I completely agree. This seems to be the most convincing solution to the Fermi Paradox. The physical world seems so limited and boring compared to what a virtual world could be (as you said, at least if we ever crack the secret of consciousness) that it seems self-evident that any sentient beings would eventually prefer to "live" inside that, removing itself from the physical world almost entirely (leaving behind just probes to collect energy and repair themselves and the computers generating their new reality, I guess).
> they’re adults

But adults who's source of income is their job that you hold the power over.

Even if everybody has a great relationship, that power differential is real and present and can't be changed.
The complex numbers prefigured other "hypercomplex" number systems by several centuries. And the modern 2-dimensional view of them was only described close to the year 1800. Before that, they were purely algebraic.

The video (I briefly skimmed it) shows that they were invented to solve a problem in algebra. Nobody thought of them as being 2D back then.

I'm not a historian or anything, but your claim is textbook "whig history" -- and as far as I can understood you, I already proved you wrong in a previous comment.
I have a JuicedBikes CrossCurrent X. They only made my particular configuration for a short amount of time around early 2018 - it has a massive battery, a 52v system, a 750W Bafang hub motor, and location tracking within the battery (though I stopped paying for it since I moved out of the city). Their newer models are just as, or even more capable.

Yeah, that is the legal limit but I turned it off in the bios. When cycling on roads I want to be going as fast as possible to keep things safer for me by moving at roughly traffic speeds and disincentivizing dangerous maneuvers by motorists. On bike trails and such I keep to 20mph or so as safe.

I actually tried to get mine registered as a moped with a license plate and insurance coverage etc. but was essentially told to take a hike by the state and insurance companies. So I did.
Also similarly https://en.wikipedia.org/wiki/Night_of_the_Murdered_Poets (killing prominent members of the Jewish Anti-Facist Committee after they were no longer needed to appeal to the west during WW2 and started to write about Jewish topics the USSR was wary of like Israel and the Holocaust) and the turn against the Jewish Autonomous Oblast (and Yiddish both of which had previously been promoted) https://www.npr.org/2016/09/07/492962278/sad-and-absurd-the-... as part of the https://en.m.wikipedia.org/wiki/Anti-cosmopolitan_campaign
Hospitals cover up the true nature of breeding
> in addition to real and complex numbers there are higher dimensional numbers namely hypercomplex numbers i.e quaternion and octanion numbers, and no other valid numbering systems beyond that.

To be precise, no other multi-dimensional numbers beyond octonions (which lack associativity) that follow the behavior of complex numbers. There are indeed an infinite amount of multivector numbers with different algebraic rules.
> IPFS can use any transport protocol (see section 3.2 in the whitepaper [1]),

In theory. In practice, the network (I checked my local node with ~2500 nodes connected to it) is mostly using quic over tcp/udp, more or less 50%/50% split between tcp/udp.

> This busyness is acknowledged by the developers and should be addressed somewhere down the line.

IPFS has been killing routers[https://github.com/ipfs/go-ipfs/issues/3320] and sending/receiving lots of network traffic[https://github.com/ipfs/go-ipfs/issues/2917] since 2016 and there hasn't been any notable improvements on that front yet. When is "down the line" in reality?
Similar work profile, but: MS office is a huge pain to work with. 30 pages, 3 authors, comments, revi sions, deleted images, and it often crashs.
And track changes doesn't work on tables (!)

Mind: LibreOffice is properly worse, but that doesn't change that MS office is abyssmall.
Because therein I find the best explanations for product failures. 3-star reviews tend to contain less failures and more "this could have been much better if they ___" . Again, it's anecdotal. I have no data to back my words.
> I'm curious to know how you and the parent comment came about to know about HN, what an IDE is, Debian.

I started using Linux while I was at university, reading law. But I spent as much time with computer science and computer engineering friends as I did with other law students - in fact, probably a lot more - and spent plenty of time tinkering with servers and networks. And that’s stood me in good stead for tinkering with legal stuff to do with networks, servers, and related things.
Institute for Propaganda Analysis (1937-1942)
The government needs to walk and chew gum at the same time. It’s not like focusing on cars takes away from diabetes, or that they’re ever considered from the same regulatory perspective.

Re diabetes, personally I’d rather see shifts in food supply and diet / offerings in the US. It’s pretty clear that fast food, soda, endless snacks, and the rest that mega food cos “innovate” is driving diabetes and a whole host of other conditions. Not an easy problem to solve under the guise of freedom to eat what you want, but we’ve been able to successfully minimize tobacco usage so why not junk food?

Government providing anything medical comes with a whole pile of political culture war.
You guys are stuck in 2014 lmfao
Thought I should add that his son is also a performer. I think he may still live in the area, but I’m not sure. Never met him.

Also of Dundas as of late is John Ellison (Some Kind of Wonderful)
Sustainable Future Filled with Kelp
AFAIK, MS Office has had multi-user coauthoring for a while, even between their (free) online apps and the desktop apps. I know I've used it in Word for sure, not sure about Excel or PowerPoint. It's actually pretty good, though I still wish MS would launch a Linux native version of Office (the web Word is good enough for reading and making small changes but not really for daily driving).
His reasoning or rant for this?
Judging from reddit, I think there's an appetite in the tech community to 'cancel' Bob Martin for his political beliefs. If it also turns out that his technical ideas are wrong, then that will make it much easier.

It's like our little mini version of the moscow show trials.
Yeah if you click the header hypertext (not link icon) in my corrected link, it misdirects to another section. Sorry about that.
Results of Adding Service to RapidAPI
Of course, how else would I know the exact failure times, my service monitoring only polls every few minutes. That doesn't help me with my knowing how my service is performing though, I'm not offering a ping service.

More importantly, I do know I had an error loading twitter at Thu 11 Nov 04:17:01 GMT 2021, however my websites (and google and hackernews) were working. At 17:53:01 GMT Twitter took over 2 seconds to load it's first http page, far beyond the normal 400ms. Google took 23 seconds to load this morning, BBC News just 0.071.

On the other hand I also need to provide services which can't cope with outages measured in milliseconds. Good luck with complaining to a cloud provider that your traffic vanished for 4 seconds. Those services thus have multiple connections on independent hardware and circuits with no single point of failure
Truth Social App: Information About Donald Trump Social Media Platform
Martin is horrible, why would people read his books in the first place?

Charles Petzold is King... Martin is a little kitty.
Something like 50/55km on the 800Wh battery.
Keynote on how Netflix handles Secrets at Scale (2018)
Isnt it because fuel can be dumped in an emergency, if needed? Cant say the same about batteries.
I just took a networking course that literally covered each point you mentioned (although on a surface level, I'm sure)! Thanks for your contribution
There is also the problem that huge competitors can create value deserts via hyperoptimization rendering less optimized competitors from even getting a foot hold.
We'll likely be hiring more DevRel folks focused on Svelte in the future! We have one currently (Steph) and she's great :)
It's true, I do remember the DROWN exploit relying upon keys presented over differing protocols.

It doesn't take long to generate an RSA key, though. A dedicated signing key would seem to be the obvious thing to do.

https://en.wikipedia.org/wiki/DROWN_attack
Can you be arrested, to assist in further investigation, but not indicted?

If you are arrested but not indicted, how does it affect immigration?
Maybe a story from a maintainer would help. To contextualize, the main SheetJS open source project https://github.com/SheetJS/sheetjs has over 28K stars.

tl;dr: the project involves "crowdsourced research" which benefits from popularity.

The main social goal with the project is data preservation and integrity. Large-scale economic and political decisions are made from data and analyses in spreadsheets. For example, last year in the UK, COVID cases were underreported thanks to Excel minutiae https://www.bbc.com/news/technology-54423988

Due to various corporate stratagems, the older data representations were intentionally obfuscated. To support Excel, many developers poked around at Excel files and guessed at the structures.

In this environment, the biggest challenge is finding worksheets with random corner cases. These types of files are not easy to create and fuzzing has limited effectiveness. This is where open source and popularity come into play. The open source and JS nature of the project helps reduce testing friction (https://oss.sheetjs.com/ runs in the web browser, no need to install anything) and encourage bug reports with test cases.

There will always be "entitled users" and "low quality bug reports" but that comes with the territory. There are also meaningful issues and code contributions. Efforts at trying to prevent the low quality contributions also discourage higher quality contributions.
Have you got any examples of where the same .env file can't be used for both Docker and Bash? This is exactly how I do it in my django projects and haven't yet run into any issues.
Can your code be easily changed, or will a change in one place cause a domino effect all over your code base? Does a simple change in requirements require a change in one (or a few) places or is it a "shotgun surgery"? Is the difficulty of changing your codebase negatively affecting the viability of your business?

This type of attitude to what's "fine" is immature and in my opinion represents a clear and present danger to businesses. I have seen several companies brought to their knees because their codebases were so difficult to change.

And that's not even touching on issues like security, performance, reliability, etc.

Code quality matters.
Does the Android web view pester you to make it your default browser?
As a foreigner living and working as a long-term resident in Portugal (with a Portuguese salary and paying Portuguese taxes, of course), my impression is that the problems are systemic and long-term. There is no overnight solution but things are slowly improving. Salaries are still abysmal so many highly skilled workers migrate outside of Portugal. At the same time there is a ton of favoritism which leads to an abundant amount of incompetence in leadership positions, resulting in low motivation. People tend to work a lot, often they are forced to work longer than official work hours and there are long lunch breaks, but they do not always work very efficiently. My impression is that client-related businesses and the public sector (funcionários) are overstaffed. This is especially noticeable in shops, where there are often 3 or 4 people standing around with nothing to do until one of them draws some invisible short straw and takes care of you.

I don't think there is an easy recipe to change systemic problems and I don't have any quirks with the current government. They're doing a fine job. Portugal used to be a rural society and have textile industry. I doubt it's going to turn into a high tech innovation hub anytime soon, but everyone is trying. The currently biggest problem are the increasing rents and stagnating salaries, as well as the brain drain mentioned above. But perhaps the biggest problem is favoritism and very pronounced social hierarchies, I've heard horror stories about psychopathic bosses. I've even met such people at university so I believe they have a grain of truth in them.
There you go: https://twitter.com/sephr/status/1286058848063614977 :)

A few months ago I almost rant about the same "people also search for" box on twitter but wanted to do my homework first. So I learned about layout shift, how google itself explains it's bad UX, also that it's not a new issue, complaints were made since at least 2019. In above link, Addy Osmani (from Google) replied he submitted an internal bug report to Google search (July 2020). So obviously Google knows about this but somehow decided not to fix the UX.

Nowadays we start having tools to detect and measure layout shift in the browser. So, when it happens that a layout shift replaces the element under the cursor just before a click is triggered, considering the typical reaction time of the user, it's not so hard to imagine what a good browser could do there. If the layout shift was not initiated by the user and we have a click triggered <100ms later, well, most probably they actually wanted to click on the thing that was previously there but that got displaced. But for the browser to notice this it would need some sort of record of the layout changes to know what was where and when. So another way could be to just ignore any user interaction for like, a second, on the elements affected by a layout shift after it happens. Would it be too harsh, break some websites? I don't know but I bet it would prevent a lot of those "misclicks"...

Also, "misclick" sounds like it's a user mistake but at this point I feel more like it's some sort of click hijacking where some js knowingly replaces your click target with another one once it's too late for you to stop your finger to actually trigger the click. There's no guarantee it will work for one specific user, but at scale, well, do some A/B testing to measure the average time to click on A and then setup B to replace the expected link target 50ms before to the average click happens, done! Pretty sure it wouldn't be so hard to optimize ;) (Ethical you say? Shuuuush!)
There's not really a viable path from those short flights to longer ones though and the hype of the industry is driven in part around electrifying airliners.

And those short flights are a small fraction of airline emissions. I haven't run the numbers, but I don't think it can be more than a few percent. If a company or airline actually cared about reducing emissions from aviation they would look at using hydrogen like the Soviet Union did (I'm not talking about fuel cells, the jet engines used hydrogen as fuel).
> place that no network signal could ever penetrate.

This is actually rather trivial to achieve, just put it in a faraday cage.
In China, the rich drive while the poor make do with e-bikes. Yes, you wouldn't feel comfortable in those lanes, but people still need to live.
>BTW I am deeply surprised that there has never been a cloud hypervisor doomsday vulnerability that has brought down AWS or some other huge provider. Back when virtualization in the cloud got big I would have bet serious money that this would have happened by now.

I think at this point anyone that's capable of launching such an attack would much rather it be as transparent as possible as they'd have far, far more to gain from not disrupting services. Aside from ransomware attacks, I think the general trend has always been towards those type of attacks as they're way more likely to be profitable
you should get a "trail bell", you can turn it on to make a constant noise to make people aware, much earlier, that you are coming

https://www.youtube.com/watch?v=mRLZ1MMk3mc
On the day that daylight saving time changes so it's dark an hour early, the Dutch police sneak out all around the city, hide behind bushes, and jump out to surprise unsuspecting bike riders who don't have their lights on yet, and write them traffic tickets.
Yeah: the latency of establishing a new connection fundamentally requires at least one network round trip, and likely a few (and so I tend to have my servers going through two layers of pgbouncer, one on each side of the network); and using in-process pools couples your pool state to your front end code updates... so, since you are going to want to build this connection pooling mechanism anyway--and then are likely going to want to be able to take advtanage off application-specific capability limitations (such as not supporting connection state outside of a transaction) to further improve performance--it doesn't really make much sense to prioritize this inside the database server itself.
Apple Glass: Features, Performance and Price
This still creates a temporary variable. Sorry.
The problem I have with Clean Code and other design philosophies is there are so test driven. TDD adherants will tell you that lots of unit tests will make the code clearer, but I'm not convinced. All the hoops people have to jump through with dependency injection, test code overhead I'm not convinced any more that all this clean code is better than the stuff we wrote 20 years ago that was just tested at the final product level.
It seems fundamentally nonsensical. It’s like saying a sentence is ideally 7-14 words long.

A sentence should be as long as required to concisely get across one idea.

“A function should be as long as required to concisely do one thing” might be a better sentiment. But even then it will have exceptions.