skysight-inc/HackerNews huggingface dataset:
Here's the problem with talking about guitar solos, especially saying, "I hate guitar solos, in the general case": Everyone immediately thinks of their favorite guitar solo, and gets defensive.

How am I supposed to argue against a Vernon Reid solo? Vernon Reid is a brilliant musician. I've loved his playing since I was a kid. He was one of my earliest musical heroes, and unlike a lot of musicians I liked when I was a kid, his playing (and the music of Living Colour) holds up extremely well to adulthood listening, even as someone that's got years of musical training since the first time I heard it and loved it. I might even enjoy some of their songs more today because I understand the depth of it.

If we could have the geniuses without the wankers, I'd have a lot less disdain for guitar solos (though even the Vernon Reids of the world usually have a few pointless rambling solos on record out there). But, we don't. Every wanker who ever picked up a guitar has shared their gifts with anyone who'd listen...sometimes, the world has been unlucky enough for it to have been recorded and somehow become a hit, and now we all have to hear that goddamned Freebird solo every now and then, no matter how hard we might try to avoid it.

Wankers outnumber geniuses by orders of magnitude. The sheer weight of guitar solo mediocrity in this world is staggering.
At least in the case of India / Pakistan I don't think it's as much about being upset or offended as being worried of being subject to any potential negative connotations associated with the other country.
Quick question: are there special hash functions that are optimized for use in hash tables? Or do typical hash table implementations in e.g. Python just use standard hash functions like MD5?

Edit: It's 100% clear now. Thanks for the great answers everyone!
That was my question! The issue is that the robocaller is hanging up early, because they get billed on 6 second intervals. But they pay so much more for their bad traffic that it's profitable to absorb a 6 second interval on the intermediaries end, just to avoid the short-call penalties. Yes, if they'd hold the call open themselves, instead of the middle-man, they'd get lower prices overall.

I see things like this in telecom too much. Where people are mathematically going to lose, guaranteed, but prefer a certain billing because it's easier to understand, or looks cheaper. While this is understandable for an SMB that isn't in the telecom business, I've seen big names take these same deals. And I've seen the other end: they 100% are losing a few % in doing so.
Architects
Yeah, it's normal for the aluminum + ablative paint version to look Really Alarming during a hot landing.
Not in the set. You're describing the same thing as the parent comment, but you're saying "arbitrary value" which they substituted for "True"
Not to take anything from NASA, but a large part of their rocket development was based on an existing knowledge base from the Nazis. NASA has done little to make successful reusable space technology, and abandoned any attempts with the SLS.
Built-in implementations usually are kind of slow, waste memory, have broken iterators [1], even in modern languages. If either of those things are important - it's better to do some research and maybe even invent your own.

[1] when you can't both iterate and insert items consistently in the same loop
> I ride, and I know people who work cattle from horseback, but the number of people still doing that is small.

Cowboys have been using ATVs for years. The definition of cowboy is not that limited.
Just sending 2 million people to college does nothing. If you are of average or below IQ, you still will be when you have a degree. And then what?

Every human cannot be a knowledge worker. Some will be bad at knowledge work.

Just slapping a college degree on someone who used to work in a factory can often be totally useless. Obviously there are some that can benefit. But many cannot.
This is a really excellent list. It includes a lot of things that are easy to forget due to how much we've progressed since then but were absolutely hugely impactful in their day. What I find fascinating is the degree to which we've come to pretty much master this stuff. A modern smartphone includes analogs of nearly every single chip in the list or depends on some core element of the functionality in some way.
It's a currency that can't buy much of anything, so it's close to useless as far as paying for the needs of a typical person. You can speculate about the future of crpyotcurrencies all you like, but the future you imagine is not inevitable and certainly not the reality of today or the foreseeable future.

Beyond that, if we're speculating, a world where all transactions live on a blockchain is an ideal one for a government bent on tyrannical control of the economy. It is likely that governments of the future will have advanced methods of associating wallet activity with real-life activity, especially for citizens who intend to interact with the larger law-abiding economy (if you ask me, blockchain money is the ideal currency for a tyrant). Of course, you can just continue to speculate about future crpytocurrencies that will solve all these issues and that is the reason why this type of speculation gets us nowhere.
Strikes me as more of a cultural difference than language. There are certainly English-speaking people who swear a lot, and creatively, and others who rarely utter a profane word.
Ah, no worries, I kind of suspected you were talking about VLIW ;)
> While that's true you could implement one that way, it's very nice to have the set operations implemented

Unrelated, but does anyone know why the new JavaScript set implementation is so limited? Why didn't they bother doing this right?
How often have you really needed to do "a = (a & 0xffff00ff) | ((a & 0xff) << 8)"? I don't think I've ever needed to do it, and I wouldn't be surprised if compilers don't even generate "mov ah,al" for that, due to the fact that AH/BH/CH/DH only exist for 4 registers.

Anyway, since you asked: In AArch64 that would be written "bfi w0,w0,#8,#8". "bfi" is an alias of "bfm", an instruction far more flexible and useful than any of the baroque x86 register names. BFM can move an arbitrary number of bits from any position in any register to any other register, and it has optional zero-extension and sign-extension modes.
An ex-Tesla engineer created an FDA-compliant cure for hangovers
Mostly web development in PHP and Javascript (kitchen sink "hack my Wordpress/Business Catalyst" stuff,) but I have experience with C++ and C# from a business application programming degree that I can't find any work with.

All the programming I've done for the last couple of years has been for personal projects. My actual job is in an Amazon fulfillment center, though.
I highly suggest looking into a low carb high fat diet (paleo or keto), perhaps coupled with Intermittent Fasting (or even extended fasts every once in a while) if you want to reap the benefits described in this article without subjecting yourself to a life of miserable calorie counting. After a small period of adaptation, you won't have cravings, you'll have more energy and be more focused, and you won't have to count calories (although you will probably want to track your carb intake at first just to make sure you're on the right track). Eat like our disease free paleolithic ancestors did. Jason Fung is doing incredible work about this at IDM: https://intensivedietarymanagement.com/

As someone has pointed out above, it seems like the calorie restriction is not really the reason for improved health. The real reason seems to be that reducing calories happens to also reduce all the stuff that makes us sick in the first place, like pro-inflammatory vegetable oils, sugar, and refined carbohydrates. If you look at the actual studies mentioned in the article, you'll see that the NIA study didn't find any difference between the two groups of monkeys, while the UW study did. The primary difference between the two is that the NIA fed the monkeys varied protein sources, while the UW study fed them significantly higher levels of sucrose. We already know that sugar is bad for you, so it makes sense that reducing its intake would improve health. The CR is a red herring.

I also checked some of the iDiet recipes, and I'm pretty sure they will do you more harm than good. Margarine, like pretty much any vegetable oil other than olive/avocado/coconut, is really bad for you. Egg yolks are not bad for you at all and I wouldn't worry about cholesterol in food (this is a whole topic in and of itself that I won't really go into here). One of the recipes on there is oatmeal with maple syrup; that is just sugar and grains, which honestly just feels like a slightly healthier frosted flakes.
This is one of those data structures that everyone should try building at least once, kind of like linked lists, etc. Semi-unrelated, I built a couple of toy implementations a few years ago using the same basic ideas:

* This one is the my original written in something halfway resembling scheme:
https://github.com/arlaneenalra/Bootstrap-Scheme/blob/master...

* And this implementation is part of a half finished byte code scheme that I haven't touched in a few years. Another project I need to get back to.
Interface: https://github.com/arlaneenalra/insomniac/blob/master/src/in...
Internals: https://github.com/arlaneenalra/insomniac/tree/master/src/li...

They were kind of fun to build and I'd recommend giving, especially if you have some skill but don't think you have the chops. To get a working toy isn't really all that hard once you understand the principals.
Blockchain currency definitely isn't the solution if the problem is tracking or avoiding confiscation. 1) the blockchain is a permanent immutable log. Once you do tie and identity to an address every transaction ever is immediately available. 2) the key that is the currency resides as just numbers in a computer. Maybe you have yours on a hardware wallet in a fireproof safe. Most don't. Especially those launderers who are shuffling coin around.
The correct link to the IOCCC entry is:

http://www0.us.ioccc.org/1987/hines/hines.c
Yes, while a set can be derived or mimicked if you have a hashtable for example, I'm specifically referring to all the common set operations you'd typically want to have.

Using a map/hashtable as a set is just the tip of the iceberg.

In many cases you don't need a key and a value and you can get rid of a lot of loopy and complicated code if you had a simple set to utilize with its useful operations.
>By definition, they are not ponzi schemes. None of your claims are obvious, and implying otherwise is disingenuous.

So, it doesn't meet the technical definition of a very specific type of financial fraud, therefore everything is hunky dory?
Show HN: Game of Life in x86 Assembly
The idea is not new. Back in the 1980s I worked at a job where access to live production systems was tightly controlled and audited. Developers could get access, but passwords were short-lived and everything was logged.
If you care about performance, it's important to note how the underlying representation of a dictionary data structure.

For instance, the unordered_hash_map in C++ is based around a linked list of key/value pair buckets. This means iterating through the keys or values is very slow (lots of cache misses!), but insertion is fast. Retrieving a key is O(logn) but a very slow O(logn), because of the cache misses.

Other implementations is to keep a sorted vector of keys and a respective vector of values. There's loki::assocvector, booost::flat_unordered_map that do this for instance. Now insertion is slow, but iteration and retrieval are very fast (a fast O(logn) by binary search with few cache misses). It's also memory efficient, since no pointers between elements.

If you have one big dictionary you would use throughout an application, and know the data up front, a good strategy is to reserve the necessary memory in an array, fill it with keys/values, sort it once over the keys and coindex the value array. Now you have a memory efficient and extremely fast dictionary data structure.

One other strategy any intermediate coder can implement is to have two unsorted coindexed arrays. You don't even need a hash function for this. Now iterating and insertion through the table is extremely fast, and it is memory efficient, but finding a key is just a fast O(n). So this is good for smaller tables. In C++ you could implement it as a std::pair<vector<key>, vector<value>>. If you need a quick small map in a function this is often the fastest data structure you can implement without too many headaches.
A little old, but this is the best I could find.

https://news.ycombinator.com/item?id=3298905

That poll indicates that the significant majority of HN readers reside outside the Bay Area of San Francisco in the US.
Ok. Teach your mom to code in Rails. Or better yet, mine.

Pretty sure i can command value over either.

Knowledge work is not ditch digging. A body is not a body.
Yeah...stopped reading at 80 hour weeks. I don't care how esteemed someone is in their industry, if they have to completely destroy their life to get there I question their judgement and don't want their advice.
Well, Germans. I wouldn't necessarily call Wernher von Braun a Nazi.
Former Apple Executives Recall Designing Touchscreen Interface of Original iPhon
One detail that isn't explicitly stated, but seems like a bit of a blind spot, is whether there's an age-appropiate aspect to this behavior.

Do non-growing adults (30+ years old) enjoy greater benefits than small children who have faster metabolisms and growth spurts ahead of them?

My inutition says that even if the concept still fits well with growing children, that their cycles are different, and closer together in frequency. Maybe they don't eat more calories, but eating several times a day might possibly tie into cycles of blood serum nutrient levels properly based of weight and activity.
The margarine and egg-whites-only feels like the nutritional advice of the 80s...I wouldn't follow any of the advice on that website...
So the only option is to arrange an in-person meetup with a random stranger from the internet so that they can gouge me with a gigantic markup or just rob me. This sounds terrible even if I have no beef with the government, but totally absurd if I am actually trying to hide money from authorities; for all I know, the person I meet up with is a federal agent or works with them.
She made her own luck by making a concerted effort to meet lots of people who may be relevant to her business.
I struggle with this as well. Makes me not want to fight the good fight.
Can someone in the know shed some light on why does every project need its own currency?! Why isn't a standard coin like BTC or eth good enough?
Because it is JavaScript, and there's some kind of unspoken rule about not doing things properly and instead releasing broken things.
This is a tough one, because it's rooted in reason. The employer asks themselves "This guy is applying for an entry-level or junior role at a very senior age, why are they doing so? I must be on guard for potential problems because if this guy is still applying for these kinds of roles at this age there must be something wrong with him/her".

The worst part about this is that it's somewhat rooted in truth in a lot of cases - but it shouldn't be a preclusion to an interview at least. I try to view things as objectively as possible and give objective examinations to avoid this kind of bias.

With consumer-facing roles, I think that is an acceptable bias to have. After all, the courts have ruled that Hooters can discriminate on basis of gender for their consumer facing roles (not back end such as chefs though). For joe schmoe engineer that only writes code and rarely/never talks to the end user though there is no excuse.
Good, long-term clients are worth their weight in gold. Both in terms of regular income, but also references: references for new clients or new employers.
Totally agree. If you look at the two parallel studies, it seems like diet had a huge effect on the outcome. The NIA study found no significant difference in both groups, and fed the monkeys varied source of protein. The UW study found health improvements in the CR monkeys but fed them 'significantly higher amount of sucrose compared to the NIA diet'.

https://www.nia.nih.gov/newsroom/announcements/2017/01/calor...
https://www.ncbi.nlm.nih.gov/pubmed/28094793
https://www.nature.com/articles/ncomms14063
Have you talked with others about this, or asked for help? Moments like this is when we as people need the most help, as they are extremely challenging situations. Please talk with friends and professionals about this.
This exactly, I hear over and over: just use a hashtable...totally misses the point.
Maybe the more you eat the more chance you eat crap that is adverse to your health hence the variations
In order to use a standard hash function, you would first need to serialize the object. I am not aware of any programing language that does this.

Instead, the approach taken by (at least) Java and Python, is to define a "hash" function of objects, the classes can overwrite. The standard way of implementing such a function is to combine the hashes of the objects fields.

Python advises doing this by wrapping them in a tuple, and returning hash(self.a, self.b, ...). [1]

Java takes a simmilar approach, but does not make an explicit recomandation on how to implement hashCode(). In my experience, most programmers just XOR the hash of the fields, which (depending on the object) could be very sub-optimal, but is often good enough. Based on the doc, the typical implementation for Object.hashCode is to just take the memory address of the object.

[0] https://docs.python.org/3/reference/datamodel.html#object.__...

[1] Pythons tuple hash function may be found here: https://hg.python.org/cpython/file/dcced3bd22fe/Objects/tupl...

[2] https://docs.oracle.com/javase/7/docs/api/java/lang/Object.h...
> In the study, the researchers sent more than 6,000 fictitious job applications to employers who had posted job ads for administrators, chefs, cleaners, restaurant assistants, retail sales assistants, business sales agents and truck drivers to then compile the employers’ responses, such as invitations to job interviews.

Not trying to be in denial, but all these jobs appear to be blue collar jobs (assuming "administrators" is office admins and not Sys Admins / Network Admins :) .

Any data on whether this happens in our Tech / I.T. Industry, where every other month, you read a story on severe shortage of skilled tech workers everywhere?
How? They got bought by SoftBank?
There seems to be a reason that more companies are not attempting to reuse rockets [1]

So considering that, SpaceX has not proved anything, yet. Because the impossible or hard part is not launching and landing rockets. Hard part is to do it..

1. With same or more reliability than using completely new rockets.

2. Launch with enough frequency to justify the reusing procedure..

So yea. A couple of launches and reuses does not prove anything. It is a start, sure. But they have not yet proved others who didn't attempt this yet..

[1] https://news.ycombinator.com/item?id=14626183
There is an extent to which culture fit is an appropriate discriminator, but writing people off based on their age is taking it too far.
I'm 31. I couldn't find any work so I went out freelancing. I am a UX UI designer and started on Upwork. It's not a good long term solution in terms of projects but I believe it's a great place to start. What worked for me was not to compete on price. I priced myself above most freelancers and it seemed to work. Now more and more of my business is coming from referrals but I still get good projects from Upwork. I turn down about 90% of requests on there. It starts off a bit slow but snowball quickly. I say all of this without knowing your industry but I'm sure the same principles can be applied to any type of work, may just need to look for other avenues of initial leads.
You are not alone in this. Help is available 24x7 at https://suicidepreventionlifeline.org/

Tech is hard; startups are harder; legal problems are even harder. But these things change, and the feelings can change too. You can PM me if you want to chat.
Good question! Yes. Here’s an example: http://cyan4973.github.io/xxHash/
They made fun of this, I believe, in 21 Jump Street (the remake).
Typically the hash functions that you are familiar with due to cryptographic or data consistency use (SHA family, MD family, etc) do not make for good hash table choices because they produce hashes that are much larger than needed and are slow to compute so that they have better cryptographic properties (extremely low collision, no information leakage about inputs, difficulty of guessing inputs). When picking a hash function for a hash table, you want a function that makes a hash just big enough and with low enough collisions while still being fast and easily dealing with variable length keys. This could he something as simple as byte-wise XOR or addition with some shifting as you iterate the key followed by a mod or even bitwise AND mask to pick an index.
Saying in aviation: If you put a big enough engine on it, even a brick will fly.

In this case, it's "given enough initial velocity and control authority, even a brick will glide", but the spirit is the same.
I'm over 40 and have been doing contract/freelance work for 15 years. The very simple but unglamorous advice on getting started that you never see is to get a few initial gigs through agencies. You'll give up some of your rate but you don't have to worry about sales or getting paid on time. Then just deliver and be a pro. Before you know it you'll have a network in your area that you can start relying on.
My data structures professor made a habit of proclaiming every few classes: "Give me a hash table, and I could rule the world"
I don't know that's true, and will read each situation on its own merits.

I think it's important not to over-simplify or sanitize this. I'm making specific and qualified statements about political realities, not arguing a law school hypothetical. I'm not proposing just unilaterally hitting anonymous individuals over display of generic flags. I am saying that we're suffering an institutional breakdown where reflexive adherence to behavioral norms under all circumstances could compromise people's safety.

The two people who died in Portland a couple of weeks ago are dead because they remonstrated verbally with Jeremy Christian and he responded by cutting their throats. They would have done better to just assault him physically and they might still be alive if they had. They could have done nothing, of course, but you may recall that Christian was abusing and threatening two young women at the time, as opposed to just shouting at nobody in particular.

That's a real thing that happened. Those two people are really and permanently dead now because they underestimated the guy's willingness to initiate deadly violence.
I think the difference is that there are two ways to burn out from the job, or the pressure comes from multiple ways, than other jobs.

This is anecdotal, but my mother in law spent a decade paying home visits to disabled vets. This is not senior care, but you see similar situations of people with special needs and an inability to care for themselves fully. Two things that she emphasized were how she was hugely underpaid for the work she actually did (as opposed to the work she was minimally required to do) and how she needed frequent, long spans filling paperwork to recover from the physical and mental duties. I may be wrong, but you don't often see that with jobs that require exertion on a single front unless it's extremely stressful and salaried accordingly (e.g. surgeon).
Do one thing and do it well, vs do many things and do them just okay.
No but dell had a 30 day full refund policy. Did those bugs not start until day 31?
if I wanted to have cameras pointing at me from every angle, I probably would have went for an entertainer position...