HNHacker News
TopNewBestAskShowJobs

alar44

841 karma · joined January 5, 2022

submissionscomments
alar44··on The Style Guide for America’s Highways
I worked as a project manager for a telco construction company years ago and learning how to set up road constructions signs and warnings and whatnot was almost like learning a programming language. There are so many rules dictating how and where to put signs depending on speed limit, number of lanes, intersection type, etc etc. Then you'd send your plans to the DoT and they'd either approve or reject it with very little information on what you did wrong. It really was the most difficult part of the job.
alar44··on Microsoft eyes $10B bet on ChatGPT
This is missing the forest for the trees. Everything you mention is just regular old programming and fixable. The impressive part is the internet compressed into 4GB. This is just the beginning and progress is going extremely quickly.
alar44··on Microsoft eyes $10B bet on ChatGPT
I feel like the people who think ChatGPT is pointless, unusable, boring etc, don't really get it. If you need to know a hard fact, just Google it. GPT will tell you what to look for.

For example, I needed to learn about Slack chatbots. I asked it what frameworks I should look into, then how to use a specific framework or API. "Write me some boilerplate code doing X in Y framework". It's gets you up and running in minutes.

I'm exploring and learning other programming languages at a crazy rate because I can have it translate something I wrote. Or, "Hey, give me a demo C++ program that uses arrays, for loops, logical operators, and a simple class." "Great, now rewrite this in Node.js."

Sure, it might make a mistake, but copy and paste your error code and 90% of the time it compiles.

I highly encourage any skeptics to just sit for a couple days and try to get it to write code. Once you get the hang of what it can and can't do, it's immensely helpful. This is vacuum tubes to transistors paradigm changing shit.

alar44··on Microsoft eyes $10B bet on ChatGPT
Not parent, but basic scripts and programming, debugging, error codes, outlines for emails, reports, dry documents, code translation, brainstorming, explaining code snippets, playing fake text adventure games, creating lists, and on and on.

Anyone saying GPT isn't useful because it's not Wikipedia or right 100% of the time are completely missing the mark and imo, is not able to think outside the box. It's insanely useful.

alar44··on ‘That girl is going to get herself killed’ (2022)
No, it’s true. Death by drowning in a riptide is a 100 people a year in the US. That’s almost literally nothing.
alar44··on What is Mittens? A chess nightmare behind an innocent kitty bot
This is garbage compared to Stockfish. This isn’t news or interesting.
alar44··on I measured the pollution from my gas stove
The externalities to switch the US over to electric are going to be massive compared to any benefits if there even are any.
alar44··on I measured the pollution from my gas stove
For real. This is an absolute non issue, not even in comparison to anything else. There are tradeoffs for being a human. We need heat to cook. A few ppb in your home of whatever isn't shit compared to, idk, walking next to a fucking road or being in a city. Electric just offloads it to coal plants which is likely worse.

Good grief.

alar44··on I measured the pollution from my gas stove
Is it actually vented outside? Every place I've had it just recirculates through the hood.
alar44··on ‘That girl is going to get herself killed’ (2022)
That's just ridiculous. Most public beaches are perfectly safe.
alar44··on Death by vegetable oil: What the studies say (2020)
No it isn't the same for everyone. So what you do is: if you're gaining weight, eat less. If you're not, you're good.
alar44··on Artist banned, told to “find a different style”- AI-made art
Everything is a derivative of everything. What is art school? They derive their skills from other well known artists.
alar44··on Artist banned, told to “find a different style”- AI-made art
Nothing is being copied. If you understand how AI models work you'd realize that's impossible considering the model is a few GB. How could every piece of artwork be in there? It's not a database lookup.
alar44··on Switzerland: snow flown in by helicopter in attempt to keep ski slopes open
Idiot sheep humans and their... Food.
alar44··on Libcpucycles is a public-domain microlibrary for counting CPU cycles
By the very definition of having a clock, yes.
alar44··on The skilled trades haven't caught as a career choice with Gen Z
I don't know about that. Stress is a fuckin killer and it wraps it's tentacles around other areas of your life.
alar44··on ‘Breakthrough’ obesity drugs that have stunned researchers
One is regarding your bullshit post, the other is a statement of fact.
alar44··on ‘Breakthrough’ obesity drugs that have stunned researchers
I didn't mention morality, you did.
alar44··on G-3PO: A protocol droid for Ghidra, or GPT-3 for reverse-engineering
Nope, first try:

Explain the following C++ code:

    int sum(int n) {
       int result = 0;
       for (int i = 0; i < n; i++) {
          if (true || false) {
             return 42;
          }
       }
       for (int i = 0; i < n * 2; i++) {
           i++;
       }
       return n;
    }
This C++ function is called sum and it takes an integer argument n. It has a local variable result which is initialized to 0 but is not used in the function.

The function has two for loops. The first for loop iterates over the range 0 to n-1. On each iteration, it checks if true || false is true. Since true || false is always true, it immediately returns the value 42. This means that the first for loop will only execute once.

The second for loop iterates over the range 0 to 2n-1. On each iteration, it increments i by 2 (since i++ increments i by 1 and i is incremented again on the next line). This means that the second for loop will only execute n times.

After the second for loop, the function returns the value of n.

What is the result when n=5?

If n is 5, the function will immediately return 42 when the first for loop is executed, so the function will not reach the second for loop or the return statement at the end. Therefore, the result of calling sum(5) would be 42.

What is the result when n=-1?

If n is negative, the first for loop will not be executed at all because the loop condition i < n will be false from the start. The second for loop will also not be executed because the loop variable i will never be less than 2n, which is a negative number in this case.

Therefore, the result of calling sum(-1) would be -1, which is the value of n that was returned at the end of the function.

alar44··on Infinite AI Array
No, really. This is how I use it. Get it to emulate a Linux terminal. Seed the history with ls / -lah, lscpu, lsb_release -a etc. Then at that point {use git to install a Python project that is a Slackbot template}.

Boom, it clones the fake library. cd slack-bot-template, cat main.py and away you go.

{Modify the project to do X and commit}

Etc etc.

alar44··on Men Without Work (2016)
Yeah but women get catcalled sometimes so it evens out.
alar44··on Infinite AI Array
Can anyone clarify what this does? I can't understand what the purpose of this is.
alar44··on Please write a breaking news article about a leaf falling from a tree
Yup. I also don't understand what language is either, I'm just following the patterns I've discovered via... learning.
alar44··on Please write a breaking news article about a leaf falling from a tree
Makes sense, it's a language processor, not a database.
alar44··on Please write a breaking news article about a leaf falling from a tree
It knows exactly what it's talking about. It understands the relationship of leaves trees and wind. It knows what a news article is. It knows what an interview is. To think that passage is a failure of GPT is incredibly obtuse.
alar44··on Trash Train: I put my trash cans on rails so they move automatically [video]
I was tasked with designing a "dunker" years ago. It dipped a basket into a basin containing a solvent. It only has to move about 3 feet, but I found that since the endpoints were hard physical constraints, a hall sensor tripping a circuit to either reverse, or stop the motor was far more elegant than trying to code it with stepper motors and way cheaper.

The whole thing was supposed to use a fancy PLC, but when I understood the use case, I ended up making it completely using analog using relays, hall sensors, and timers. It was even able to buzz at you if it got stuck. All relay logic. Mostly because I had a big leftover box of PCBs with 8 relays apiece. The clicking sounded super cool.

I checked in a while ago to see if it was still in use. They got rid of it for a fancy PLC system that cost 1000x as much but is connected to the cloud and stuff.

alar44··on Incoming potentially catastrophic storm for SF area
Probably the timeframe. If you get 3 inches of rain in 12 hours, that's 6in/day. If that's all the rain you got in 3 days, you got 1in/day.
alar44··on In-person schooling and youth suicide: Evidence from calendars, school closures
12 to 18 percent of what? .001%?
alar44··on In-person schooling and youth suicide: Evidence from calendars, school closures
No it doesn't. Where are all the articles and stories from the last, oh idk, couple hundred years about how everyone is miserable at school? Sure, no one likes homework, but if you've ever been in a school, most people are having a good time.

Can we stop normalizing trauma and problems with ones social life? It's not the norm, stop pretending it is.

alar44··on In-person schooling and youth suicide: Evidence from calendars, school closures
I do because I went to school and interacted with other students. Yeah, kids run into tough stuff growing up, but that's life. To say school = stress for most needs backing up.
← PreviousPage 3 of 27Next →