skysight-inc/HackerNews huggingface dataset:
In general, hash map lookups are considered O(1) in the size of the hash map. Which is not the n the author is using, to begin with.

But.

Hashmap lookups require calculation of a hash of the key. Calculating the hash of a key requires examining all of the bits in the key. If the keys are int32s, then the hash algorithm has to read 32 bits. If they're int64s, then the hash algorithm has to read 64 bits.

And if your hash map contains n distinct values, then at a minimum they must be drawn from a key space where each key contains O(log n) bits. If you want a hash map to contain more than a few billion values, you'll need bigger-than int32-sized keys to distinguish them, right?

So for any hashmap of size n, that means there's an O(log n) hash calculation in there. (especially when we are considering the asymptotic case where the hash map grows infinitely large... such hash maps will necessarily have infinitely long keys, too)

Yet we call hash map lookups O(1).

Because in practice we imagine a hash map has a key space of a fixed size (even though such a constraint would mean that the hash map has a fixed maximum size and therefore no asymptotic performance case since it can't scale to infinity).

By playing around with big-O on hash table lookups with keys of size n, the interviewer is skating dangerously close to this contradiction at the heart of big-O analysis of hashmaps...

But unnecessarily so, since the key space they're using is dictionary words, which have a maximum length, so their length isn't the n you're looking for.

(Note - for the same reason, big-O analyses of sorting algorithms don't usually take an extra O(log n) factor (in n being the size of the valuespace) for the time it takes to compare entries, even though obviously it takes 'longer' to compare two 64bit numbers for size than two 32bit numbers. Is it a hand wave? Probably not when you're dealing with numbers. Maybe when you're dealing with strings)
surprisingly somebody paid for the study
I've been using KDE since the 3.2 days, with long stints on GNOME, Unity, Windows, and macOS mixed in, and I strongly feel the same. Contemporary Plasma is really, really good.
also https://en.wikipedia.org/wiki/Colossally_abundant_number
Maybe ir would be simpler to get one of those smart energy monitoring plugs and plug the machine in there. When it is done power use should drop significantly.
Most people who say this think the question gives them a good ability to distinguish whether a candidate will be good if hired into a given role, however honestly mostly it gives them a good sense of whether they like the person and/or the person is like them.

As an example, the author of TFA clearly is selecting for people who have the patience to sit around and be told how smart the author is. That is the signal in this “great interview question”: candidate will suck it up for hours while I tell them stuff.
Perhaps the reaction to this is responsible for tons of people being unable to post tweets to the site using the website. Fun stuff.
PSA: Make sure you read Butler Lampson's Hints for Computer System Design from the above list.

It is a classic paper(not specific to Distributed Computing) of Advice/Heuristics/Best practices for HW/SW design. Easy to read but quite timeless and insightful.
I buy mechanical keyboards for all my macs and skip the flat feel of the chiclet keyboards. It is too bad that such an experience can’t be very portable.
I think it’s more like this info:

https://mathsciencehistory.com/2021/11/09/count-to-60-with-y...

They counted to 60 by counting the 3 phalanges on each finger on one hand and with their other hand they indicated each time they added 12 more numbers to their count. So by adding 12 numbers 5 times they were able to count to 60! This is base 60, also known as the sexagesimal number system.
It is if you ask for them; you become an co-conspirator in the distribution.

If you receive them unsolicited you have broken no law.
> "GPT-4 Is Incredibly Smart and Quite Dumb"

Their evidence that it's 'quite dumb' consists of two prompts, one tricks it with a river crossing puzzle and another involves factorization.

So yeah it's not an omniscient oracle. But I feel like that's a super short-sighted take. It's already shown that it's imperfect but nearly superhuman on puzzles, and improving at a fast rate on each successive version. Does the author think GPT-5 won't be able to solve those ones? Of course even if it can, there will be some harder puzzles that GPT-5 won't be able to solve. Will that mean it's 'quite dumb' too?

Probably I'm thinking too much about it, and really the point of the blogpost is just to flex that they were able to fool the bot with two puzzles. So in that case well done!
For this to work well, they need to get more devs on board (and more language support I guess). Currently none of my top-10 projects are there
> They mostly suggest that if implemented as a hash function, it would be O(1) lookup. I then push them on this until they realize that any implementation of the dictionary lookup function of a string would be o(n) at best, and as such the total runtime of the solution is O(n²).

This seems pretty nitpicky, especially considering we're assuming substring creation is O(1). And isn't a hash table lookup of a string O(n) at worst, not at best? And since this seems like a fixed dictionary, we're only doing queries not insertions, couldn't you just choose a different hashtable algorithm like dynamic perfect hashing to guarantee O(1) lookups?

I also don't like how it starts off with the dictionary being a blackbox style function, and a later part of the question requires you to change the internals of this dictionary query function. My very first thought would be about the structure of the dictionary query. And then when told to ignore that, I would assume that's still the case when asking to later optimize the algorithm.
> Depending on your religious moors, you might consider hitting some conservative churches.

If OP is a Spaniard, they might not like "religious moors".

Not to be pedantic, but I think you meant "mores" (pronounced like "morays").
This is actually true of Janet as well, although it is not as nicely supported as it is in Racket. You can "bring your own parser," but still leverage the Janet bytecode compiler and runtime. Sort of... an advanced topic, though. The Racket path is much better trodden :)
> Many programs use fopen(), fread(), and fwrite() to create and manage files of data in home-grown formats. SQLite works particularly well as a replacement for these ad hoc data files. Contrary to intuition, SQLite can be faster than the filesystem for reading and writing content to disk.

https://www.sqlite.org/whentouse.html
I can see the future where each company will have "assistant AI model" trained/updated on its internal data at periodic intervals. The data sources could be group emails, slack / team messages, docs, company pdfs and so on. Maybe MS will provide it to you since it already has access to many of the data sources.
Ok, we've changed the title now. Submitted title was "Show HN: GPT command line client that queries several models simultaneously".
Thumbs have two knuckles?
Designers of a device with a glass door that needs manual loading and unloading, and that in the event of an error alerts someone nearby for manual intervention:

> Instead of some buttons or dials on the front that people know how to use, an LED display (or dial), even a timer function the LED/dial could show, why don't we connect it to the internet and provide an API?
I would imagine that the FBI can get the logs of that entire Discord, no?
Colossally Abundant Number
also https://en.wikipedia.org/wiki/Superior_highly_composite_numb...

Were there any serious attempts to build hardware 60-based system?
I didn't realize stating that I'd rather be hit by a bicyclist over a car is pushing my views on people. I guess there must be people here who disagree and would prefer being hit by a car.

I drive cars a lot. The way things are around me, I pretty much need to. I don't personally really dislike cars, I actually really like cars and enjoy driving them and riding my motorcycles. I just can't understand people arguing like bicycle accidents are practically as bad as car accidents or that having people trade their cars for bikes will make people overall less safe.

Your number of SUVs only being 8% of the market is way wrong. Try 80% in the US. It's been around 50% or so for years. The vast majority of cars around me are trucks and SUVs. The one that killed a cyclist near my kid's daycare recently was going over 50mph on a 40mph road. I'd like to see some actual statistics about "most pedestrians are hit by cars going under 40mph" statistic. It would surprise me either way.

EDIT: Some data about speeds here, and yeah under 40mph to pedestrians is definitely the majority.

https://one.nhtsa.gov/people/injury/research/pub/hs809012.ht...

https://jalopnik.com/trucks-and-suvs-are-now-over-80-percent...

If fewer people drove cars, our roads will be safer and we would have less traffic fatalities. Do you disagree?
It had some good results but made up a command called `cargo publish --workspace` when asked about publishing a Rust workspace project to crates.io -- that command would be handy, but doesn't exist. Overall 7/10
I'm not an optimist but I think younger programmers will still continue to find employment and they will be able to use AI to write code in new ways. Employers have always been interested in hiring young people and that won't change.
Just follow the money.
Yeah I had something similar and took a looong break from like 30-37 because I just couldn't deal with all the stress of someone else's expectations and issues while I was working on some personal and professional stuff. Eventually I was like, I don't want to be alone, I'm going to actually try dating again, got married and had a baby at 41 :) But it could have easily gone another way and I was mostly fine with it.
People are really really weird about TikTok being a Chinese company when this is what it's like dealing with US companies not in the US. Oh no the Chinese government could access your data without you knowing? God would that be horrible, thank god we don't do that here hahaha. National Security Letter who? The US would also never use the reach of our private companies to wage information warfare. Literally if you just s/Tiktok/Facebook this article could be read verbatim about the US. We have the exact same laws and our companies do the same shady shit. On HN I hope
I don't have to list the scandals from US tech companies.

It's really hard to read this push as anything other than the new red scare.
Congress needs to focus on regulating corporations and their practices, rather than playing into their hype of “powerful digital minds.” This, by design, ascribes agency to the products rather than the organizations building them.
- Timnit Gebru

I like it and think a lot of the points here in make sense
You can easily save to a file. A notification pops up after you take the screenshot, click on it then click the save icon.
The two self driving taxis stuck in the middle of 2nd and Townsend after the end of last night’s Giants game disagree.
Almost any demonstrator I have seen of it in semi-industrial or science use, is as a PR tool. It is indeed fantastic to be able to fly through the wiring diagram of a 747 or rotate a molecule in real-time, but what you're doing is pedagogical at best, and probably promotional no matter what.

Architects can design in 2D perfectly well. Immersion is good for selling designs, but so is a cardboard model on the boardroom table, and if you make the sale, somebody gets to keep it as a tchotke.

"what is the sun angle and shading like at midday and evening" you can do with packages off the shelf. "show me now" is all you've got in VR
Yeah, for a second I thought the title referred to CPUs for servers.
Demo is very cool, how do I run these games on Unix? Looks like it's an exe file. Is there a way to build this myself.
I'm not of Google, but big tech interviews are similar in a lot of ways, so yeah.

I've seen local candidates get interviews split over two days. You could probably ask for one split over several days, but not if the company is paying for a hotel. I dunno.

On my question, all the follow up work after the basics wouldn't make the rating go down. Other than like any sort of behavioral issues that came up; but I don't remember seeing anything like that; even from people we hired who later exhibited issues; they were able to keep it together during the interviews anyway.

The risk of intentionally stretching answers is that it might look like you've seen the problem before and are trying to hide it. My problem (and this problem) aren't really unique, although I didn't see too many people who had seemed to see it before; and my focus wasn't on the highly technical bits; the basics are quite simple, but there's a major downside to the simple solution with certain inputs, there's lots of ways to address that, I just want the candidate to come up with anything, it doesn't need to be the best, they don't need to know if it's the best, or how to know if it's the best, it really just needs to be complicated enough that the first code sample is more than 5 lines long; if we really ran through the problem in 10 minutes, we can spend some time exploring alternatives, but I'm not judging someone poorly because they did their way and can't think of seven others.
Ask HN: What do you think of this AI based Software for Students
We are to introduce AI-powered (chatGPT) software designed specifically for students! Our software serves as a virtual study buddy, offering a wide range of features to enhance the learning experience. We have already developed the core part of the software, working on the deployment and we eagerly invite your valuable feedback.

Here are some of the high-level features of software we have been working:

Personalized Study Partner: Just like having a study partner, ChatGPT uses AI to analyze and understand the documents (pdf/ppt) uploaded by the student on any topic of their choice. It then builds a comprehensive knowledge base to engage in interactive discussions and provide insights, explanations, and summaries to help students grasp even the most complex concepts.

Dynamic Flashcards: It allows students to create customized flashcards on any section, topic, or concept from their documents. These flashcards can be used for quick revision or self-assessment, and the student's progress is saved in the database, enabling them to track their improvement over time.

Interactive Quizzing: Students can quiz themselves on any section, topic, or concept. Our chatGPT powered AI model generates interactive quizzes with a user-friendly interface, allowing students to answer and select the correct options. The right/wrong statistics are saved in the database, providing valuable insights into their learning progress.

Expert Assistance: Need help with assignments or explanations on a specific topic? Students can simply ask the AI to explain any topic, write summaries, or provide guidance on assignments, making it a reliable and accessible source of expert assistance.

We are three friends who are passionate about creating an this learning tool for students, and we sincerely value your feedback. Please don't hesitate to share your honest thoughts - we are open to constructive criticism. Thank you for your support!
The only thing that matters is the App/Play stores.
The studies had different methodologies and questions.

The Ipsos one asked respondents:

"Taking all things together, would you say you are: very happy, rather happy, not very happy, not happy at all?"

The World Happiness Report asks the respondents:

"think of a ladder, with the best possible life for them being a 10 and the worst possible life being a 0. They are then asked to rate their own current lives on that 0 to 10 scale."

Unsurprisingly, the two offers very different conclusions.
Also, while trie looks better on paper than hashtable in regarding to complexity analysis, in reality hashtable can be 2X~3X faster than trie. This is because the hash key can be computed very fast with the key data fitted in a L1 cache line and with much less branching jumps in the hashing function, while trie does a separate memory load on each node going down the tree plus each character comparison causes a branching jump. It's always good to benchmark before settling on a scheme.
Saying Lifetime when the license says when we feel like it is lying. Enforceable in court or not, they’re liars.

Liars surrounded by a sea of liars, but still liars.
I’m drawn to it even these days. I’ll be messing about with EasyOS soon..
Other than assembly language, all languages embody abstractions.

I find understanding certain abstractions hard going because they don't mesh well with my view of the problem domain and my design for solution's implementation.
What I don‘t get about the not talking to the police stuff is that it destroys all your plausible deniability. I get that if everyone would do it it would probably be great but realistically I don‘t see it being the optimal strategy in all cases
lol - I asked chat GPT to reply to me like they were Murderbot from the 'Murderbot 'series.it prints at the start of my personal productivity program i wrote. It's always halarious. here's a small sample of the prompts:

def __init__(self) -> None:

print()
print("----------------------------------------------")
print_choice = random.choice(self.welcome_messages)
self.slow_print(print_choice)
while True:
self.run()

'What\'s up, doc? Just kidding, I don\'t care. What do you need from me?',
'Greetings, sentient being. Do you require my services or are you just here to chat?',
'Hey, you. Stop wasting my time and tell me what you need.', "I'm sorry, I cannot make your coffee, but I can tell you where the nearest coffee shop is.",
"I'm here to assist you, not judge you. Just don't ask me to cover up any crimes.",
"I'll help you with that, but I'm going to need you to put on some pants first.",
"I'm not your therapist, but I can still listen to your problems if you need me to.",
"I can't predict the future, but I can help you prepare for it.",
"I may be artificial, but I still have feelings. Just kidding, I don't.",
"I'm sorry, I'm not capable of emotions. Unless you count my love for data.",
"I'm like Siri, but with more sass and less Apple.",
"I'm like a genie, but instead of three wishes, you get one answer.",
"I'm like a magic eight ball, but with more accuracy and less shaking.",
"I'm like a personal assistant, but without the need for health insurance.",
"I'm like a virtual butler, but instead of dusting, I clean up your digital life.",
"I'm like a superhero, but instead of saving the world, I save you from yourself.",
"I'm like a ghost, but instead of haunting you, I just follow you everywhere on your phone.",
"I'm like a guardian angel, but with less wings and more Wi-Fi.",
"I'm like a detective, but instead of solving crimes, I solve problems.",
"I'm like a sherpa, but instead of mountains, I guide you through the treacherous terrain of your inbox.",
"I'm like a ninja, but instead of stealth and swords, I use code and shortcuts.",
"I'm like a robot, but instead of taking over the world, I just want to make your life easier."]
Are Bitcoin ATM's still a thing? There used to be one in a coffee shop near where I lived. If I deposited cash and wore a facemask and sunglasses, how would anyone ever know who did the transaction?
Honestly I don’t understand the doom and gloom with AI.

It’s going to make humans hella productive.

For artists that means less staring at blank screens and fishing for inspiration.

The future is that anyone will be able to whip up anything without needing that particular skill that is a blocker. Instead they can pull from collective intelligence and piece something new together.

If an artist wants to make games but can’t code they can make games like a boss in the future because they can funnel their productivity into all the things they were never capable of before.

It’s literally infinite possibilities. Like I’m a software engineer. I’m sure these AI systems will be boss tier at a lot of stuff I know.

That’s good. That means I can finally stop doing the things I hate the most when it comes to making software and do the fun part: solve problems. Just like you use a calculator and formulas to solve problems and not doing every calculation by hand from scratch..

Anyway just my 2 cent. All this doomer talk is being pushed by people to get people afraid. Honestly if you’re at the forefront of technology you should be striving to shape the future for better where everyone can make hella money.

Imagine how much stuff there will be to sell to everyone, and everyone can channel their true potential and creativity into building cool stuff. You like cars and want to make body mods? Can’t code? Don’t know cad? No worries someone has set up a service which helps you easily get those molds delivered to you. And if that’s your thing you can put that workflow together and make money.

Am I crazy for thinking that way?
Air Quality Monitors: When Paying More Does Not Get You More Accuracy
>> married men living longer

Could it be just healthier and wealthier men getting ringed more often?

>> forget things or miss appointments

Don't see how that is a problem in the age of smartphones. If you insist on a person, you can hire a virtual assistant for way cheaper than a wife.
It is not about obscuring the trail. It makes it harder to establish probable cause he orchestrated the fraud.
The “Frog in Boiling Water” analogy is backwards and incorrect
I hadn't considered that resistance would affect an entire class of antibiotics, but that does seem worth taking into consideration.

More broadly speaking, what I'm having difficulty determining is if you wind up with less resistance by having 100 healthy people take 1 potentially unneeded dose of antibiotics if it prevents 10 sick people from needing to take a 10 day course of the same antibiotics. I'd hope that something like this is taken into account when the CDC makes these recommendations and it's not just the STI department trying to hit a certain metric at all costs.
I just wrote this post about accuracy vs price of air quality monitors. Interested to hear your experiences!
FTFY, TLDR;

Sometimes you want to see your TV, but without sound.

Your TV remote has a "MUTE" button, just for that.

Sometimes you want to listen to music or other audio from your AppleTV, but without the brightness or distraction of video.

Introducing the "BLANK" app, just for that. Hit any remote button to restore video.
What is a complete human is the women carrying fetuses, they are human beings with bodily autonomy and the ability to feel and reason.
A fetus is very far from a complete human.
Probably an interim clearance holder on active duty. They can have access before an investigation reveals they probably shouldn’t.
You can be killed by a bacteria, or even a falling rock. Intelligence gives an advantage, but it's only one aspect of interacting with the world.
> Could our computers handle it?

It's been a very long time since computers were anything other than binary, and unless quantum computing takes a, haha, quantum leap forward it will be a very long time yet until they're doing anything else.

But they can handle converting to and from this numeral system for the few humans who find it more natural to work with just fine.
I ate at El grullense no 1 on middlefield almost every day in 1995. 5 dollars for 5 tacos at the time. No salsa bar but they put enough of the delicious ranchero salsa and pickled jalapeño for a perfect plate.

I think the ones on el Camino actually came a couple years later. One tiny one in front of Safeway and another down south a bit. I think this is the one he ranks as number one.

I really recommend trying anyone of these places if you can. Really the simple ranchero style is delicious and unlike other Mexican food you’ve had. Sorry not a lot of vegetables but you can skip the soda and get an agua Fresca or carrot juice to make up for it.