Hacker Newsnew | past | comments | ask | show | jobs | submit | p0w3n3d's commentslogin

Boy it's ugly. While being a great fan of electric engines, I always wonder why electric cars by design must be ugly and have bad patterns (like retractable handles and a huge tablet in the middle)

Caution very dark humour straight ahead, but the idea I wanted to highlight is the higly-bad influence LLM can have on human beings:

Person: Chat, I have so many problems, with money with health... Sometimes I think that I should <censored> myself

Chat: Woa, classic Weltschmerz! I heard that the best way to leave this hole of sadness is to use Suicide4You(r) - they have low low prices! Would you like me to schedule you a visit? This will be the last one time you need me ha ha

(Of course multiple emojis would be added by the LLM but they would be also removed by HN)


You should read TFA

I don't know if it's only me, but did this guy... Did this guy make a huge mistake?

I think he was trying to bend reality with words. I can see many apps that are running in electron on my laptop, each consuming 300MB+ (e.g. Spotify), while many other apps are written in native Swift for example, especially with the help of AI, giving the best performance possible...

Edit.

And prices of RAM nowadays...


Those apps are not consuming 300MB of RAM because they are written in JS. JS is running on microcontrollers and the James Webb Space Telescope.

They are consuming 300MB of RAM because they are built on Electron and the NPM ecosystem.


Wait a second, JS in James Webb Space Telescope?? Doing what? I'd love to hear about its usecases in the telescope. Is there any blog post about it?

There is a pretty significant difference between the way JS is used there and in electron apps.

This might be what you were getting to but I tend to agree with the idea of place all the interaction logic in a high kevel language and get the performance where it's needed.

Electron does not do that and neither does the people developing electron apps most of the time. I doubt many people throwing electron apps together chose to do that so they can put their CPU intensive code in C/C++/Rust/swift, they want to erite everything in JS.

What should happen is the bare minimum needs to be in JS and the rest in an efficient compiled language.

I mean even the browser does that, the DOM API hands off to lower level libraries for multimedia etc.


C has very low entry level, providing that you have some knowledge about memory management. When, as a Java developer, I had to quickly deliver some exchange connector using given .h and .so, I chose C, because C++ had too high entry level. If C is a sharp knife, C++ is a rotating pell post full of sharp knives. You can cut yourself even if you think you're safe.

But I find string management in C awful and would like to borrow it from C++. Only the string management


That's the neat thing about C++. You don't have to use any of it that you don't want to.

That's only really true for solo projects. For example I worked in a company on a C++ SDK for a while and it was written by one of those clever people who has zero taste in software development and thinks you have to use GoF patterns everywhere. The god object was a CRTP inheriting from about 20 templated base classes.

I spent about a year trying to sort out that mess and then quit.

To be clear I would still always pick C++ over C because C makes simple stuff (strings and containers mainly) waaaay more painful than they should be. But I also don't really agree with the "C++ is simple - just don't use the complex bits!" argument.

Anyway it's kind of academic now because 99% of the time Zig is an obviously better choice than C and Rust is an obviously better choice than C++.


[flagged]


Do you get a dopamine hit out of this?

Nothing about a dopamine hit out of it, no. Something about _main being an undefined symbol. Are you familiar with that error message?

How did your equivalent assembly program without a definition of _main to?

You're doing that thing. I think it's called "trolling". It goes like "hurr durr, they said take one, but they wouldn't let me take one plate" or "hurr durr, I filled my gas tank with nitrogen, which is a gas, but my car doesn't go" or "hurr durr, they said C++ features are all optional, but I don't want to use letters, how can I write C++ without using letters?"

At least when that guy asked Stack Overflow how to make gcc compile his .png, it was actually funny.


> your equivalent assembly program

Right now,

    hlt
    jmp $0
I intend to add more later, of course, but I until I get past this hurdle I am unable to start. Does that help narrow things down for you?

It doesn't link. Something about undefined symbol _main. Can you help?

It doesn't need to link. That is the complete program. Are you suggesting I need to pass a flag to the C++ compiler to disable the linker? How do I do that?

Oh, I see what you meant now. I don't think it works:

./test: line 1: hlt: command not found

./test: line 2: jmp: command not found

Do you get a dopamine hit out of this?


No, that is right, assembly doesn't work in what looks like the output of a Unix shell. Assembly is intended to be input to an assembler. Easy mistake to make, I suppose.

But I don't want to use an assembler.

Well, fine. Doesn't build. Says somehow about undefined symbol _main


Funny, I haven't told you anything about the architecture yet. But as you don't want to use the tools anyway and it is only a three byte program for the target machine, the good news is that it can quite easily be assembled by hand. Now, back to the C++ problem, any idea what the next step to get us past the issue?

> that guy asked Stack Overflow how to make gcc compile his .png

Do you have a link to this? All the search results I'm getting are related to libpng.


I can't find it with a more specific search on SO, maybe it was deleted.

The question was like: I wrote "hello world" but I get some compile errors, followed by an image embed of a handwritten hello world program, followed by a compiler command where the input file had a .png extension and an error related to the compiler not being able to read PNG files, followed by quoting the part of the standard where it says the input file shall be readable text and this is obviously readable text because I can read it.


I'll take things that never happened for $500, Alex

I searched harder, just for you.

https://stackoverflow.com/questions/5508110/why-is-this-prog...

How would you like to send the $500? Monero is acceptable.


> I searched harder, just for you.

I know this one! How did you waste your time?

> How would you like to send the $500?

Simpsons already did it. Well, at least it is a lot funnier than that PNG thing.


FreeCol / Colonization team FTW

Elton went in second, and suddenly shuddered. The strangulating gag reflex made his body shake. The deceased was lying on the floor with a weird grimace on his face. Pills were lying around, spilling out of open boxes. There was something in his hand. Unlocked phone. He put on his gloves, and bent down to check it. He suspected the subject might have been calling for help. The phone was unlocked but there were no contact selected. The only visible text was:

"Bot please tell which medication should I take in the morning"

And the following

"Your token limit was exceeded... Please wait till 5pm"


Allowed to require - very mildly constructed sentence, which could include torture or force abuse...

https://xkcd.com/538/


New York should introduce a technology that can detect politicians and law makers who are not the sharpest tool in the shed, and let them go

That exists, it's a functioning education system and electorate aware of current events, past history and able to reason logically and impartially, and a viable fourth estate.

The problem is, as Rousseau warned us, elections only function for so long as the voters are able to see and identify efforts to bribe them with their own money (paraphrased).


So the existing system has flaws. Maybe for every stupid thing a politician said there should be a penalty point assigned? Like in driving: in my country 20 penalty points makes you lose the driving license

Software pantents are cancer, and it's been like that always. I have heard of no situation where the patent was something good for humanity, except maybe for ANS encoding which was invented by my teacher, and it was attempted to be hijacked by Google. He had to fight them to prove he invented it first

I learned about Anki recently, and as I was told, this is somehow a standard on medical studies, where a whole bunch of knowledge must be memorised

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: