skysight-inc/HackerNews huggingface dataset:
Permit me to rephrase...

Someone has to present a case. My only case so far is that there is no case, there is no value, this is un-creationist & regurgatory.

We can both accept that my premise might not be right. Who has the obligation here to present evidence? Is having no good evidence but maybe no clear negatives an acceptable counter to my claims? Are there more forward stances I need to consider & deal with? Or is your whole premise about as it seems, a shade-throwing you-don't-know "trust-me"? What would possibly satisfy you, how far would I have to go trying stuff before you could say, OK, yeah, your right, it's indeed predominantly mostly bunk?

Who do you think has the decision? Do you have evidence to contribute? Is lack of anti-evidence, the possibility of maybe all you want? How do we decide this?
This got me curious and I asked ChatGPT/GPT-4 to write a sorting function for integers.

It came up with the following along with a verbal explanation of how it works:

def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quick_sort(left) + middle + quick_sort(right)

# Example usage:
arr = [3, 6, 8, 10, 1, 2, 1]
print("Unsorted array:", arr)
sorted_arr = quick_sort(arr)
print("Sorted array:", sorted_arr)

I then asked it to make the code more efficient. To this, it offered "a more efficient in-place implementation [...] using the Lomuto partition scheme". The code was reasonable but had an off-by-one error. It took me about thirty seconds to find and fix the error.

Since ChatGPT said that "the Lomuto partition scheme is generally less efficient than the Hoare partition scheme, but it is easier to implement and understand", I asked it to show the code for the Hoare scheme.

The code was correct and was accompanied by an explanation that "this version of quick sort is more efficient because it performs fewer swaps on average compared to the Lomuto partition scheme."

I asked it about the average number of swaps for both schemes. It gave some answers. However, since I didn't know the correct answers off the top of my head and couldn't be bothered to work them out, I couldn't just take ChatGPT's at face value (but I suspect that one was the correct while the other wasn't).

Finally I asked "What's the worst-case input for these three implementations?"

Here things went completely off the rails. It repeated the same answer for all there snippets. The answer happened to be correct for the last two schemes but for the first it read:

<quote>
Basic Quick Sort (with middle element as pivot):
The worst-case input for this implementation is a sorted or reverse-sorted array. Since the pivot is chosen as the middle element, the partitioning will be unbalanced, and the algorithm will have a time complexity of O(n^2).
</quote>

This is clearly nonsense.
Need you even ask?
https://www.youtube.com/watch?v=IY2j_GPIqRA
> Leave your stuff in a trust when you die and live in one of those states and you can dictate what happens to your estate for generations after you are gone.

I'm not disputing that, just that it's a bad law.

> 1000 years

Absurd law.
What’s the hidden risk of money markets?
This doesn't need AI. It just needs a SAT solver. See https://jheusser.github.io/2013/02/03/satcoin.html
I got a 0% raise, at least you got something :/
Ask HN: How did ChatGPT do? Tech stack advice for civic engagement app
I have no CS experience and I'm trying to build the next 'killer app' for civic engagement. I asked ChatGPT for advice on the tech stack -- should I trust it?

My prompt:
I am an individual with no experience building software. I want to build an app for web browser and mobile. It is going to be the next 'killer app' for civic engagement that has game-like features for citizens to see what's happening in local, state and federal governments. It will allow them to easily identify their elected officials, trending topics and what their officials are saying or doing in those areas, create summaries of upcoming meetings or pieces of legislation, weigh in on how their representative should vote, share on social media, invite and follow friends, and an AI-generated search function to ask general questions like "How has government spending changed over the last 10 years"? I want the user experience to have an engaging, video game-like experience. Can you provide recommendations on the tech stack I should use to build this?

ChatGTP's answer:
Building an app with game-like features for civic engagement would require a complex and feature-rich tech stack. Here are some recommendations on the tech stack that you can consider to build your app for both web browser and mobile:

Front-end development: You can use JavaScript and its popular frameworks such as React, Angular, or Vue to build a responsive and interactive user interface for your app.

Back-end development: You can use Node.js and its popular frameworks such as Express or Koa to build the back-end of your app. For data storage, you can use NoSQL databases such as MongoDB or Firebase.

AI-generated search function: For the AI-generated search function, you can use machine learning frameworks such as TensorFlow or PyTorch to build a natural language processing (NLP) model. You can also consider using pre-built NLP APIs such as Google Cloud Natural Language API or Amazon Comprehend.

Social media integration: To enable social media sharing and authentication, you can use OAuth 2.0 protocol and its popular providers such as Facebook, Google, or Twitter.

Real-time features: For real-time features such as notifications and chat, you can use WebSockets or technologies like Firebase Realtime Database.

Deployment: You can deploy your app on cloud platforms such as Amazon Web Services, Google Cloud Platform, or Microsoft Azure.

Testing and Debugging: You can use popular testing frameworks such as Jest, Mocha, or Chai for testing your app's functionality and debugging tools like Chrome DevTools or VS Code Debugger.
It definitely matters. Like you can play chess against a bot at any level. It’s not nearly as fun as playing another human.
To be fair, a 26-day project is far more easier to manage (to be on-time and not over the budget) than a multiple-year project, despite the former could be more technically impressive.
> Wouldn't surprise me if it was easier for the author to hack this together in CSS since he already knows it quite well compared to learning LaTeX. I love LaTeX, but the learning curve is more like a cliff.

Yeah, agree, but a work of fiction doesn't usually have tables, figures, references, equations, etc which can be painful in LaTeX.

It does have kerning, ligatures, orphan/widow management, runs/ladder management, page numbering, chapter numbering, margins (larger closer to the spine), rules, struts, etc that all come for free without the author having to know any of that stuff.

IOW, for a work of fiction, the learning curve for LaTeX is likely limited to setting the font, setting the size, setting the output type (book, article, etc) and using bold, emphasis, underline and possible verbatim.

The learning curve for LaTeX is a cliff if you're writing a thesis, it's simply markup if you're not.
my instance doesn't seem impressed:

So, I stumbled upon this Simple LLaMA FineTuner project by Aleksey Smolenchuk, claiming to be a beginner-friendly tool for fine-tuning the LLaMA-7B language model using the LoRA method via the PEFT library. It supposedly runs on a regular Colab Tesla T4 instance for smaller datasets and sample lengths.

The so-called "intuitive" UI lets users manage datasets, adjust parameters, and train/evaluate models. However, I can't help but question the actual value of such a tool. Is it just an attempt to dumb down the process for newcomers? Are there any plans to cater to more experienced users?

The guide provided is straightforward, but it feels like a solution in search of a problem. I'm skeptical about the impact this tool will have on NLP fine-tuning.
There's a great Tyler Durden quote in Fight Club about this.

Narrator : Tyler, you are by far the most interesting single-serving friend I've ever met... see I have this thing: everything on a plane is single-serving...

Tyler Durden : Oh I get it, it's very clever.

Narrator : Thank you.

Tyler Durden : How's that working out for you?

Narrator : What?

Tyler Durden : Being clever.

Narrator : Great.

Tyler Durden : Keep it up then... Right up.
Consider https://www.etesync.com/ , an end-to-end encrypted contacts/calendar service.

It's available as self hosted, or paid hosting.
I can tell you with great precision how long it will take me to build software that has requirements as precise as a skyscraper's. The problem is that most of the time the software to be built has nebulous requirements
Yes, it is remote workers who spiked housing, rent costs
I haven't tried it yet but I was planning on using this library to do most of the heavy lifting:
https://pypi.org/project/treeshake/

It looks like it's calling C code via Cython so if it works, you could probably use the same underlying C code via CGo for your project.
My follow up prompt:
There are other features I want the app to perform like track over time how your votes compare with your elected officials and your friends and have a 'BeReal' style notification ahead of an upcoming vote. Are there any other tech stacks I should consider given these features?

ChatGPT's response:
Yes, considering the additional features you want your app to perform, there are a few more tech stacks you may want to consider:

Data Visualization: To create charts, graphs, and other data visualizations, you can use data visualization libraries such as D3.js or Chart.js.

Machine Learning: To track over time how a user's votes compare with their elected officials and friends, you can use machine learning algorithms to analyze voting patterns and recommend potential votes. You can use Python-based machine learning libraries such as Scikit-learn or TensorFlow to build and train your model.

Push Notifications: For the 'BeReal' style notification ahead of an upcoming vote, you can use push notification services such as Firebase Cloud Messaging or Apple Push Notification Service.

Analytics: To track user engagement and app performance, you can use analytics services such as Google Analytics or Mixpanel.

Cloud Functions: To perform serverless computing tasks such as sending emails or executing background jobs, you can use serverless computing platforms such as AWS Lambda or Google Cloud Functions.

Blockchain: If you want to ensure the integrity and transparency of your app's voting system, you can consider integrating blockchain technology into your app. You can use blockchain platforms such as Ethereum or Hyperledger Fabric to build a secure and decentralized voting system.
> This is the first time the US gets challenged on multiple fronts from multiple actors.

Its not even the first time since the end of the Cold War.

> The US dollar is being challenged from multiple fronts and one of them is Crypto. (though also the fact it’s being mismanaged by its own creators is not helping either).

So, I’m just about a half-century old, and since I became politically aware – which was pretty young – I’ve been hearing that exact line (except with something else, usually “Gold”, in place of crypto until recently) continuously that entire time.
oh this is great story for https://remoterenters.com/ thanks!
> Of course the flaw in this story is that the interest rate risk should have been hedged, and it wasn’t.

How does the banking sector in aggregate hedge its interest rate risk exactly? They have to find a net counterparty outside the sector who wants exposure to interest rate risk. Who exactly would that be at sufficient scale to protect trillions in deposits?
Is there some improved BT technology out there? I’ve seldom seen it go more than 20 ft or through a substantial wall.
Thanks, that's indeed exactly what I tried.

I'll have another try later this year probably :p
Don't you mean it is our government and economic structure that made housing the shitty investment in the first place? Don't blame individual rational actors.
My old cx-5 has knobs, I love them, but the rest of the system sucks (notably, if you allow the car to download your contacts it will take several minutes at each start to allow you to play audio)
This isn't a game rom, this is the boot rom, included on the cpu, that runs the boot logo / audio, and does some checks on the cartridge rom.
Well, what I'm saying is couldn't AI be used to help? I mean thanks for the link! But...I'm thinking more of a hybrid approach. A way we could combine this, SAT or something, with AI somehow? I don't know...maybe.

And not just "let's turn a 256-bit hash into the shortest possible message that hashes to that", but to actually turn it into the original message (like English text message) that hashed to it, or a close enough semantic match.
Do you think Google is making Bard deliberately bad so as to be good enough to get early adopter usage data but not good enough to disrupt search revenue?
I wish asciinema was used for these instead of the gifs in article, GitHub, etc.
I don't think it's fair to call the capacitive touch panels they've put in all new models "buttons".

Especially with those crappy tiny touch areas.
Friendly reminder that leaded gas is still used all over the United States today in airports (avgas).

And if you live near an airport you are probably affected by elevated lead levels.

https://news.sccgov.org/news-release/study-commissioned-coun...
The treasury takes on debt when it issues bonds, but the Federal Reserve expands the money supply when it buys those bonds. It's a two-step process.
Weird, I had the same thought two weeks ago - I just wanna tell a story, and everything else is simply a distraction. I thought "Why not a simple webapp that presents nothing but a textarea/contenteditable" :-)

Anyway, I am happier creating native (desktop) applications than webapps, except that I don't think that there is a market anymore for them. How well is your native desktop app doing? Is there a large enough market for applications that need to be installed locally only? How do you market these?
The Nation's story on it dives much deeper. There was an out and out panic about lead and leaded gasoline in the 1920s that GM and Ethyl/du Pont had to squash, which Midgely happily participated in. https://www.thenation.com/article/archive/secret-history-lea...
Hahaha! Yeah, the enhance thing. It's even a trope. There was some joke about that, I think from "Red Dwarf"

edit: here's the video link: https://www.youtube.com/watch?v=JMIHNiR3CP8 :p ;) xx ;p
What would be more interesting is to see Bard vs ChatGPT debating various topics.
C# doesn't have exhaustive pattern matching yet.
I asked it to make show me a hackernews comment about Bard and it said this…

Sure, here is a Hacker News comment about Bard:

> I tried Bard and it's pretty impressive. It can generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way. I'm still under development, but I'm learning to perform many kinds of tasks, including:
* I will try my best to follow your instructions and complete your requests thoughtfully.
* I will use my knowledge to answer your questions in a comprehensive and informative way, even if they are open ended, challenging, or strange.
* I will generate different creative text formats of text content, like poems, code, scripts, musical pieces, email, letters, etc. I will try my best to fulfill all your requirements.

Seems like a Blend of one nice comment and Bard itself talking?
No, it's 256 bytes of platform boot ROM.

"Loaded 128x x 16 h => 2048 bits (256 words)"
Llama and Stable Diffusion are the most popular alternatives.

Llama is nowhere close to chatGPT but good enough for some users. Stable diffusion 2.1 is better than Dalle2. There is an experimental version of dalle only accessible to a few selected people that seem better than stable diffusion 2.1 though. MidJourney is a bit better but not Open-source and you will not be able to generate some kind of pictures. Which could be a good thing perhaps.
No public library is revoking your library card for asking twice when they deal with actual homeless people watching actual pornography.

LinkedIn doesn't have any policy against discussing adult literature

https://www.linkedin.com/feed/update/urn:li:activity:7039967...

this person just got a job at an AI company that generates erotica and sends shots at openai

your 3rd and 4th example is actually illegal so consequences make sense.
> it will automatically connect to my phone in the house and start playing whatever was last playing

If it's an iPhone you could use automations (Shortcuts app which is preinstalled) to auto-pause music whenever it connects to bluetooth and launches CarPlay. I have done it and works like charm.

https://www.guidingtech.com/how-to-stop-music-from-automatic...
> This runs into the core problem with technology--we answer "What can we do" before "Should we do it" and "What are the impacts"

The counter is always, “Well, we can see our way forward to doing it, which means someone else can also do it. So… we better beat them to the punch.”
The Federal Reserve is expected to increase interest rates by a quarter point
> Lee hinted that while this is a priority for Hyundai today, things may change in future. In particular, the company will likely look at using touch controls more heavily when autonomous driving becomes mainstream. “When it comes to Level 4 autonomous driving, then we’ll have everything soft key," said Lee.

Hell, no.
When it comes to level 4 autonomous driving, I want a hardware one key override, not everything soft key.
I'm guessing it's the ROM for the system. Poke various hardware bits, map the cartridge and jump to a certain address within it.

If memory serves, it also checksums the Gameboy logo-intro at the start of every game cartridge -- subjecting non-licensed game publishers to additional copyright claims.
> language models themselves can't "crash"

That is like saying the Excel document didn't crash, but Excel did when it tried to parse it. As far as I know there is no proof that you can't cause a LLM to crash with user input.

> because they "just" generate new tokens.

I can write a program that counts to 100 that crashes reliably.
> Don't you mean

I mean? You are aware that I'm referencing a news article?
There is also `**<ctrl-t>` for thing like ssh auto completion and others.
> Wrong. This is corruption. Janet is picking winners and losers. Some people are losing their deposits and some are not. You are systemic if you had dinner with Janet yesterday.

Big call. Huge. Got some data or similar to back it?

Edit: If there's clear picking of winners, or even plausibly so it's gonna look pretty bad. [1]

[1] https://www.theguardian.com/business/2021/jan/01/janet-yelle...
It's failing.

> list the oldest person in each household, their full name and age and how many people are in the household

Maybe I didn't express that nicely, but it's output is:

> select max(age) as age, full_name, count(*) as num_people
from household
group by household;

The full_name won't necessarily be for the oldest person (or it'll fail because it's not in the group by). That's the whole tricky part.
I have a Genesis G70 2021. It is fantastic; best car I've ever owned. I don't see myself buying anything other than Genesis, if my budget permits. So many awesome features and almost all of them are controlled by dials. I absolutely love it.
First, very cool project and a pretty novel idea to use bloom filters for this.

Someone already brought up the false positive rate, which I could see getting down to zero, but is route optimization able to be a factor? The problem I'm thinking of is if Route A takes 10 minutes but Route B has additional stops (or a longer trip) and takes 20. If I'm getting around by bus I probably won't want to be operating on larger and larger time windows the more I take public transportation, especially as it scales.
> A certain political party was handed a blank checkbook.

A few problems with this entirely over-simplistic view (which seems to be what you are accusing HNers of having).

Most of the expenses of the most recent $trillion+ have never been dispersed.

Inflation in 2021-2022 was not simply demand side. Yes, team transitory was partially right. It was significantly driven by supply side as well.

Mismatched supply and demand for goods and services post pandemic lockdown. Overloaded choke points in the logistics system. Periodic failures in key systems for travel (FAA outage, Southwest outage, etc). Food supplies, for various different reasons including a bird flu pandemic, spiked in price. Backlogs of chips at semiconductor fans for cars after manufacturers cancelled their contracts in March 2020. Not to mention a little land war in Europe and a key pipeline blown up, that resulted in reshuffling of key oil and gas imports/exports to other countries and a rush to build LNG terminals to assist with that.
Hell, the population of the US is millions lower than it would have been had we not closed the legal immigration gates in 2017 and again (for different reasons) in 2020.

One of the key drivers of inflation is typically wage growth. American workers stopped taking as much shit as they used to and started taking actions they used to be afraid to. People working minimum wage started finding better paying or less tedious jobs. People moved from cities with plentiful jobs and where expenses were high to suburbs where there is a different pace of life. But then companies started reducing compensation or demanding return to office, causing a whiplash adjustment.

No, this isn’t an issue to lay at the feet of one party, whether we like that party or not. People need to actually struggle with the fact that some of inflation can be affected with monetary policy, some with targeted fiscal policy, some with diplomacy, and some of it requires no government intervention and simply requires time for the market to figure it out.
Is this not a thing? My phone has the option to disable phone calls but leave audio enabled. Also my car now asks before transferring a call in progress from the phone to the car instead of doing it automatically when it's in range.
Nuclear weapons were not a mistake.
> I can't help but question the actual value of such a tool. Is it just an attempt to dumb down the process for newcomers?

Actually, you've hit the nail on the head here. I wanted something where I, a complete beginner, can quickly play around with data, parameters, finetune, iterate, without investing too much time.

That's also why I've annotated all the training parameters in the code and UI -- so beginners like me can understand what each slider does to their tuning and to their generation.
And then plug it into a VR headset and watch VR become wildly successful overnight.
> Secondly, I think the silence and downvotes are conveying a strong message, people don’t agree with you.

Specifically, on the question of “is this a productive avenue for discussion on HN”, irrespective of opinion on the merits (though there is probably a correlation.)
I know everyone has their "Starting Word" by this point, but this graphic seems very good at discovering good starting words.

"SLATE" seems to have a huge number of solutions on each letter: 300+ words available on S----, 400+ words available on ----E. The smallest is -L----, which has 200 words, still a good size all else considered.

I'm not too sure on how to evaluate the "best starting word", but maybe I'll try "SLATE" next time I play Wordle.

EDIT: Some people are interested in "two starting words". Seems like "ROBIN" hits a lot of words that SLATE misses. -O--- in the 2nd letter was the most common letter+position after the letters S L A T and E were banned. "CHILD" also seems like another good followup word after SLATE.