skysight-inc/HackerNews huggingface dataset:
>I know strings are just allocating a blob of bytes and usually reserving the last for null terminator, but what about arrays? Is it just like in C where you allocate a blob of bytes but now you manually calculate where the index is based on item size?

Yes, that is roughly it, although there is more to the topic, related to arrays and pointers, etc. In fact C's way of doing it is pretty low-level too and similar to assembly - it just adds the address of the origin of the array (i.e. the array name. which is a pointer to the start of the array) and the index times the size of the array element, to get to the memory location of the indexed item in the array.

A surprising point I read a while ago is that due to this, in C, the expression a[i] is equivalent to i[a], where a is the array name and i is the index (int variable). This is because C resolves a[i] to:

*(a + i),

meaning, dereference the pointer calculated by adding the offset i to the pointer a, and that expression:

*(a + i),

by the commutativity law of arithmetic, is the same as:

*(i + a),

which can be converted to i[a] by the same C resolution rule in reverse. I actually tried this out earlier when I first read it, on either Microsoft C compilers on Windows or gcc on Linux, or both, and it worked. Not sure, it might have changed for some reason now, maybe due to later versions of the C standard. Should try it out again.

The Kernighan and Ritchie book "The C Programming Language" is be a good introduction to how arrays and pointers work (and their inter-relationship). (Seeing your profile, I guess you may have read it, but just saying.) I had read the original version and the 2nd (ANSI C) version. Not sure if there is an updated version after that.

In the versions I read, they explain arrays and pointers in C pretty well (although you have to do some work yourself, it is not dumbed-down teaching like some you see nowadays).

>What about hash tables, that seems even more confusing...

The K&R book had a nice simple implementation of a hash table in C too. The hash function (from memory) was something like just adding up all the characters's int values (in the string used as the hash key) and doing a division modulo some prime number (like 31). There was other stuff for handling collisions and buckets and so on. And that was of course only a demo version (though it did work), there are more advanced versions.

(Sorry for a few multiple edits, I was not familiar with how asterisks are used in HN as markup, so had to edit it a few times.)

Here are a few links for others who might not know about how they are used:

Google search for:

how to disable meaning of asterisk in hacker news

https://www.google.com/search?q=how+to+disable+meaning+of+as...

and from it:

https://news.ycombinator.com/item?id=12521497
Thanks for this @baccredited. I found Tradier from your note. I will keep you posted about my progres.
And now Toyota cars have a fantastic reputation for reliability. Surprise, surprise.
It always seems to be something that's a great idea for somebody else to do.
For a decentralized currency, the limited supply is the only value proposition that made it viable. Otherwise the currency itself becomes flooded by mining rather than purchased with other forms of currency, which leads to more miners trying to cash out than people trying to buy in, which leaves the currency itself into a constant, downward price based on sheer supply and demand.

Any type of currency that doesn't have something limiting the supply (not fixed, but at least constrained) becomes valueless by default.

Even if Bitcoin is limited, if cryptocurrencies themselves are not then we're all just giving people a license to print money.

At least with the Federal Reserve there is a governing body limiting the supply of new dollars entering into the system.
Neither of which are arguments against doing it.

With your logic, ending slavery in a time when it was legal, would be a PR disaster, and illegal in most jurisdictions.

Oh wait... It may even lead to a civil war. Oh wait... That has happened... Oh wait... It was actually a good thing!

That's how progress gets made - by changing existing norms and laws because they suck. Recruiting AND job searching at this moment clearly sucks. Which's not to say blacklisting is THE solution. It's A solution, which's a lot better than nothing, at least it gets the conversation going.
If you pierce the skin with the "teeth" of the clamp you can do it, the lower resistance will be enough to send lethal amounts of current.
> Out of curiosity, how does a company lay off ~220 employees yet still have many open positions on its website?

Quite easily if they are different roles, or if they are trying to fill but with less experienced candidates at lower pay (you could do a pay cut, but the morale impacts of that make it more practical to do a layoff and hire.)

> I looked at the jobs section for snap and it seems like they have a plethora of engineering jobs despite laying off 120 engineers.

Engineers aren't completely interchangeable, and management views them as less adaptable than they are.
Using a tool like PCPartPicker takes almost all of the effort and uncertainty out of planning a build.
Maybe for some people, but for others it can be a big, risky outlay of a significant amount of money.
What you mentioned does not cover byzantine faults... pow is the only known solution
Need Director of Engineering in SF with a passion for food and tech
An overview of PHANTOM: A blockDAG consensus protocol
Shit, I’ve done it before (years ago) and did it again somewhat recently.

It’s nerve-wracking as hell. Closing the swingarm to hold the CPU in place feels like—as the article’s author points out—you’re 100% about to destroy a really expensive piece of hardware. Installing the CPU cooler was surprisingly difficult, and I only noticed that the pins holding it attached weren’t fully seated because I checked and rechecked the mounting. Every time you plug a cable in there’s a moment of doubt if it’s the right cable or if you’re about to overvolt something and melt it. Even when you’re done plugging everything in there’s anxiety around whether or not you’ve missed something like a fan cable, that will eventually result in an expensive piece of hardware overheating and taking out the entire machine.

The act of pressing the power button when you’re all done isn’t an exciting and satisfying one. It’s a massive surge of anxiety followed by a wave of relief, followed by more nagging anxiety that gradually fades.

Even then you’re not done. After fiddling around in the BIOS for an hour to set things up, I ran a benchmark and discovered that I hadn’t used the right profile for my RAM, and it was only using half of its performance potential. Apparently many other people did this too, because the benchmark showed a graph of others’ performance in comparison and it had two equal-sized peaks: one where it was misconfigured to a slower (but presumably safe for all configurations) speed, and one where it was operating at its published speed. It took a few hours of research to discover something called XMP—which I still have no idea what it is—that apparently allows my motherboard to detect RAM timings in a way that unlocks this performance. I never would have noticed this without the benchmark.

I also noticed that my new NVMe SSD wasn’t performing well. Turns out the heat spreader my motherboard uses actually worsens performance for whatever reason. Simple fix: open the box back up, disconnect cables until I can get to the m.2 slot, and remove the heat spreader. More anxiety follows: am I just killing this expensive SSD?

Every step of the way is like this. I am not a naturally anxious person. I am financially well-off, and easily able to eat the cost of any mistakes. I am extremely technically inclined. Expecting nontechnical people to do this with limited budgets and expensive components is nuts.
How Big Money Can Drive Diversity in Venture Capital
One has a Constitutional amendment. The other doesn't. Also, gun owners are better organized than content consumers or technologists.
I don't know if anyone who can edit the blog is reading this, but the link to "SE-0186 Remove ownership keyword support in protocols" is wrong, it should point to https://github.com/apple/swift-evolution/blob/master/proposa...
> The affected data did not include government-issued identifiers, such as Social Security numbers and driver’s license numbers, information that the app does not collect from users

Well, I suppose it wouldn't, would it? Is this supposed to be impressive?

How many more of these before serious legislation gets through?
There will be blood. ;)

And you will put too much paste on, or not enough.
You should be able to give it to them with informed consent. Companies should not allowed to trick you into giving it to them by hiding "consent" deep in some document that no one will ever read.
In the case of my grandmother, she'll definitely make up a story behind an item she doesn't recognize (and you happen to.) It's just a simple fear of throwing or giving things away - but so disguised that I couldn't tell until I noticed her clinging onto some of my old things that I had thrown away, and her not knowing that they were originally mine.
What makes scala "nicer"? Why is Kotlin a "downgrade"? Are you possibly just giving your opinion?
Ending slavery didn't cause the Civil War, the Civil War made it politically possible to end slavery.
AGP/PCI-X wasn't really any more difficult to work with than today's PCI Express etc.

You really have to rewind to mid 90's pre-Windows 95 in the days before Plug 'n' Play when manually assigning IRQs etc was a thing before the process of building your own PC meaningfully changes in my opinion.

> https://en.wikipedia.org/wiki/Plug_and_play
Funny to read this, as the original scheme for Android was the OS and apps on emmc, user data on SD card.

But then later some OEMs came up with partitioning the emmc and mounting one part in place of the SD card.

Later still Google codified this hack by mounting a vfat union mount on top of a directory in /data as if it was the SD card.

All in all Android storage is a tire fire of hacks.
Are you kidding? Twitter, for example, made ~400 million dollars last year selling data. Several federal agencies have firehose access via contractors. Any of those companies would love the contract to correlate the information provided with their internal records.
No, unlike gun owners and manufacturers, software developers have no effective lobbying organization and get treated liked 2nd class citizens. No one fears angering software developers before an election.
The Diet That Might Cure Depression
Yeah, well, some people do base their lives on shopping at Amazon, so there's a market there. It's just not as big as it could be. I mean, my prior comment was somewhat limited in nuance. Sure the Kindle tablets are reportedly well-liked, but they're most well-liked by people who buy everything from Amazon.

The thing is, I have a lot of this stuff I'm making fun of. I have a Fire TV Stick, I have a Kindle (the old-fashioned kind with an e-ink display), I had a Fire phone. But, I recognize that they are Amazon service delivery platforms. They exist to sell me products from Amazon. It's all part of a big ecosystem where lots of little frictions are removed from my life if I buy from Amazon. In addition to the devices, I have Prime, I have an Amazon Visa card (5% cash back on purchases from Amazon), I've bought a bunch of music from Amazon (and can have it all stored on Amazon when I change devices without having to remember where I bought it from or deal with weird download limits or whatever), etc.

I'm making fun of myself here, basically, because I'm the ridiculous and stupid consumer that Amazon is building all the their ridiculous and stupid consumer products for. But, even I saw through the bullshit that was the Fire phone and found it absolutely ridiculous. And, I have a Nexus tablet and no interest in a Fire tablet, even at a better price than competing Android devices. The value proposition from a standard Android device with the Google apps is higher for me in phones and tablets. I won't likely fall for another Amazon produced phone or tablet. And, I haven't yet seen a compelling reason to invite Alexa into my home.
When the United States does something like this others start doing it too, sometimes seemingly just to reciprocate or spite. The US contributes so much to the world with respect to tech, business, culture and science but it’s also an exporter of increasing bureaucracy.
See Coase's Theory of the Firm. Technology is changing the equation by removing transaction costs, and you see more freelancers and self-employed and Uber drivers.

I agree that the current framework makes freelancers and self-employed more vulnerable to cashflow problems, and it's an issue.

I've seen some interesting ways to mitigate it, even in my own country (with affordable health services for small business owners but they have salary caps that exclude IT workers)

https://en.wikipedia.org/wiki/Theory_of_the_firm
Meh, "gaming" is the operative word in that sentence. It's not just building a PC, it's knowing what components are required to run today's games, while leaving enough room for future-proofing against next {year|month|week}'s games.
The whole piece was evocative of David Foster Wallace
I think on HN the need for clarity is seen as more important than having fun, because misunderstandings can do more damage than fun can create pleasure. This unfortunately limits the number of meta-levels (or ambiguity) you can use in jokes or sarcasm. But I guess it's worth the tradeoff. And actually with a bit of effort you can often have both.
> This sort of mangling is disappointing from a tech-focused news outlet like The Verge. It also reinforces the implicit association between Kodi and piracy, which is the very thing that caused Google to remove Kodi from search results in the first place.

This sort of mangling is exactly how exaggerated misrepresented news gets spread. Google didn't remove Kodi from their search results. You can type Kodi and it's the first thing that pops up.

You can type home theater software and get Kodi in the search results, or open source media player and get Kodi.

All they did is remove Kodi from being autocompleted. It still even comes up for autosuggestion.
I believe you missed my point entirely.

"Why did your ear, the outer part and the inner bones and the canal and the fluids and the brain, all evolve together in a way that grants Fourier analysis for free? Coincidence?
"

No, we model physical systems using math, so you should expect that a physical system involving dynamic systems to use Fourier transforms to effectively model that system. But the efficacy of math does not imply that mathematical objects exist.

"Maybe maths could help us understand biology or other non-maths fields better!"

Um, clearly. Math is extremely successful at describing many aspects of many sciences. But this does not imply mathematical objects exist and are describing the reality of what is occurring, despite providing accurate outputs.
is this even remotely legal?
NPS doesn't measure future goodwill (or present goodwill for that matter). Rationally it may have some correlation, but it isn't a silver bullet even when understood and used properly (which it often isn't).

Instead you often get people trying to game their local NPS scores; not quite the same problem, but similar.
There are several sites that help with that. I built one of them: https://www.pc-kombo.com/ - it gives you the best cpu + gpu for your budget, based on benchmarks, with fitting parts around that. The most known is https://pcpartpicker.com/, which gives you a broad selection of parts and checks compatibility as well.
I'm not even sure a cleaning company is needed, why not a cleaning Uber? (well, sounds like Homejoy actually, but for businesses)
I can't remember which book I read on 6502 assembly (may have been Randall Hyde's, actually), but learning it was one of the most satisfying programming experiences I've ever had. Strongly recommended for coders of all types and styles, even if it's a dialect that's pretty far removed from the CPU of your standard environment. You'll never be confused by what is meant by a pointer or reference ever again, that's for sure!

And anyway I have this cool Apple II video codec to show for my efforts :)

https://hackaday.com/2013/07/22/animated-gifs-on-an-apple-ii...
Leela Chess Zero: An OSS Distributed Effort to Reproduce Deepmind's AlphaZero
Thanks for that link - I never would have come across that 'organically'.
Now I have some bedtime reading as well.
> They can’t possibly benefit from this...

Are you kidding me? This is information that won’t add any tangable value to the actual state of affairs, yet money will be payed for the information.
This reeks of a deal struck with the big social behind the wheel. They get
Money from the tax payers for sharing information with no need to prove actual added value, just the promis of hiring some key people in well paying positions down the Line when it’s less objctional.
That's where the next billion Twitter and Facebook users will come from: forced participation tied to government services and benefits. You can easily imagine a dystopia where a FB account is required to collect Social Security or Medicare benefits.
Which only says that they are good at solving artificial puzzles, but nothing about whether they are good developers or generally intelligent.
Isn't forcing users to divulge this information a way around paying for data exports?
Not to mention corporate email was popular in the 1980s, long before the Web reached a large number of traditional consumers. Even the Queen of England sent an email across Arpanet back in 1976. Microsoft Mail came along in the late 1980s.
Try searching for "shopping" results for "ar15", "armalite 15", and "ak47". It will show they have explicitly filtered out "ar15" shopping search results
What if you don't have any social media accounts? Are they just going to assume anyone who says they don't is lying or trying to hide something?

Seems like a dumb policy to require details on a purely voluntary activity.
To a lesser extent there is Link2SD:

https://play.google.com/store/apps/details?id=com.buak.Link2...

If you have rooted your device, and partition your SD card, it can mount one such partition so that it supplies the app storage.
Sounds like something that doesn't take away from the enjoyment of the movie at all, so I'm all for it.
It would be helpful if Apple did a review of the sample code in the developer's library and fix all the software that won't even compile anymore. It doesn't help people trying to learn this language if the sample code won't work.
Make sure location tracking is off/denied, otherwise its always running in the background and reporting in.
If the companies had their way, it would be illegal to not have a social media account and not participate actively.
There are sites now [1] that let you select components and will tell you if your CPU/motherboard/RAM are compatible. It will even tell you if your power supply can handle the amount of power of all the components. When you select components it will give you links to multiple places to purchase them.

I don't keep up with current events in custom PCs and when I built a PC last year [2] I thought it was incredibly straight forward.

[1] pcpartpicker.com

[2] https://pcpartpicker.com/b/HgBbt6
Pretty absurd that they're asking for all of this and:

> [...] In addition to their social media histories, visa applicants will be asked for five years of previously used telephone numbers, email addresses, international travel and deportation status, as well as whether any family members have been involved in terrorist activities.

I know a number of people going through, or have been through, the US visa process and surely if this is required, applicants are going to drop.

Furthermore, if you submit that you don't have a social media account are they going to assume you're a liar? Are applicants just going to create new "real" accounts just to avoid looking suspicious?
Ready Player One Infographics: What VR Platform Is Ready to Become OASIS IRL?
i did not make myself clear (i should stop
posting from my phone).

i was trying to say that the sizzle was more than the reality - a trusted (neutral) third party will solve all the claimed issues - it's just that the reason this has not happened in many sectors is because the issues the third party / blockchain can solve are not the issues preventing adoption - it's like car manufacturers would like to dump their dealers and sell direct - but no one is prepared to risk a huge downside. Tesla might be "disruptive" but no one seriously thinks Tesla will replace all other car sales - and so dealer networks will remain (for a while).

i think the analogy holds :-)
> to use a real manly brush to do a real manly job

What does manliness have to do with this?
Whether one agrees or not, Google is within their rights to remove Kodi from their autocomplete product.

Whether one agrees or not, Dick's Sporting Goods is within their rights to remove partial/all (can't remember what they did exactly, honestly) gun sales.

So they're not really all that different. Kodi isn't considered culpable for people using it in a bad way here, just Google is removing it from autocomplete in a precautionary manner. Likewise, guns and Dick's.
whoosh

Pretty sure the prize for 'most difficult math book in history' goes to Dummit and Foote's ponderous tome, Abstract Algebra.
Those are commonly copy-pasted claims but the reason why it keeps coming up is that the question of what makes it better is either unanswered or, in cases like voting or storage, known to be worse.

Your language is inadvertently quite revealing: “non-believer” isn’t how you talk about technical issues with well understood tradeoffs. It’s how you talk about something which you’d like to be true but isn’t.
Yeah, that was my point. Why would google have autocomplete options that give them a bad image? Why should anyone other than google decide what a good image is?
Most CPUs these days don't have pins to be bent. Killing a PC component with static shock is more difficult than you imagine and is pretty hard to do even if you aren't taking serious precautions like using anti-static wrist straps. Misapplying thermal past won't kill anything unless you use so much that it oozes out from the CPU-heatsink joint and short-circuits stuff on the motherboard (and that's assuming that your heatsink doesn't have thermal compound pre-applied, and that the aftermarket thermal compound you're using is actually electrically conductive).

It takes willful ignorance and disregard for the simple instructions included with each component to even have a chance at breaking the expensive things.
Blockchain shysters speak in such vague terms that they are effectively saying absolutely nothing while still reeling in the rubes to buy into their scams. Case in point. Your post.
Quite ironic when you can use YouTube + Chromecast to watch entire episodes of many shows and many full length movies.

You can't ban software makers for the illegal use of their software by users when your own users and services are the same...

Why don't they remove "full episode" from YouTube's autocomplete? (We all know the answer to that one.)
If any single PC component is a non-trivial cost, that person should be spending more time on other areas of their life than PC gaming.

I've built dozens of desktops. Misapplied thermal paste, PC shuts down. Re-apply paste, works for years. Never used a static strap. They all worked for years. The only problems I can recall having are mechanical disk failure, one video card going POOF randomly. Most issues were software related.
Your first link gets me thinking about Street Rod, that i played constantly on my Amiga 500.

https://www.youtube.com/watch?v=wd4VwxBObo0