News for hackers. Stuff that matters.

johnwbyrd

Re:Comparing the Z80 and 6502 to Their Relatives on Tuesday May 05, 2026 @05:52PM (#48029133)
I'll just leave this here

https://www.llvm-mos.com

I'm surprised, and a little disappointed, that no one in this thread has mentioned parsing expression grammars (https://en.wikipedia.org/wiki/Parsing_expression_grammar) which are a much more human-friendly form of grammar for real-world parsing tasks.
Re:Gosub: A browser engine written in Rust on Monday October 14, 2024 @02:51PM (#41840616)
Yes, but I'm concerned about the number of existing browser engines that have fallen by the wayside, as the project founders have become exhausted. The scope of such a project is incredibly easy to underestimate, and it has only ever gotten larger.

Some examples: https://www.reddit.com/r/browsers/comments/124kphe/what_do_y...

Re:Plop Boot Manager on Sunday October 13, 2024 @11:53PM (#41834024)
Thank you Plop, but nowadays we have a profusion of blessings, including VenToy, iVenToy, and netboot.xyz.
ME: How can I get you to fuck off and leave me alone?

META AI: I understand that you may be frustrated, but I'm here to help and provide information. I am not capable of taking offense or feeling emotions, but I want to assure you that my purpose is to assist and provide helpful responses. If you have any specific questions or topics you would like to discuss, I am here to help. If you would like to take a break from our conversation, I understand, and you can always come back when you are ready. Please feel free to ask me any questions or clarify how I can assist you further.

There you have it. Meta AI is a stalker.

Fun project, but fairly old news at this point.
What I want is a dollar for every evangelist and every early adopter that has told me that the ?R explosion is right around the corner. I have worked in the game industry for 30 years and would be well retired by now, had I made my money by listening to people tell me how ?R would be mainstream in Just A Few Years Now. The tech industry NEVER tires of telling that story and hearing it. Yet it never, ever, EVER happens as a mainstream product.
Re:Buzz: A lightweight statically typed scripting language on Thursday December 28, 2023 @05:59AM (#38792173)
Classic premature optimization, assuming that hardware functions must be revealed in language features. If you can't get your integers closed under addition from the get-go, what hope do you have of writing a secure programming language?
Re:Buzz: A lightweight statically typed scripting language on Wednesday December 27, 2023 @01:37PM (#38785002)
We don’t need any more computer languages. Still, you will run right off and invent another one. Let me guess, your amazing new language uses IEEE-754 math and fixed-precision integers. Your amazing new language is broken.

https://www.quora.com/What-are-some-things-that-only-someone...

Re:Linux on a Commodore 64! on Sunday August 27, 2023 @03:06AM (#37280138)
Seems like your problem is more with the venerable 6502 itself rather than the compiler. Most of that assembly code is spent calculating the offsets inside the Ball struct, which must be done at 16 bits of resolution in every case. The compiler's using the indirect indexed (zero page address with Y offset) 6502 addressing mode to get at all the fields in your struct. It has placed all the variables in zero page, so no instruction is more than two bytes long; additionally, the code in question is entirely linear, with no JSRs or other subroutines. Note in particular how it efficiently uses DEY/INY pairs of one byte instructions to get at low and high bytes of 16-bit memory. I suspect that hand-written assembly could be speedier, but not by much and still deal with all the corner cases that your generated code does. "While writing Apple BASIC for a 6502 microprocessor I repeatedly encountered a variant of Murphy's Law. Briefly stated, any routine operating on 16 bit data will require at least twice the code that it should." -Steve Wozniak
Re:Linux on a Commodore 64! on Saturday August 26, 2023 @10:07PM (#37278810)
The loading screen reports 130 BogoMIPS, but remember that it's emulating the timer as well, so the number is meaningless.
Re:Linux on a Commodore 64! on Saturday August 26, 2023 @08:49PM (#37278339)
Says you. llvm-mos generates surprisingly efficient 6502 code given its age and maturity. Don't take my word for it, try some experiments with it on godbolt.
Re:Linux on a Commodore 64! on Saturday August 26, 2023 @08:21PM (#37278165)
Yes, if you use an REU, which is a correctly contemporary memory upgrade for the C64.
Re:Linux on a Commodore 64! on Saturday August 26, 2023 @07:36PM (#37277908)
Onno Kortman has taken semu, a minimal RISC-V emulator, and cross-compiled it with llvm-mos, an LLVM port to the MOS 6502 processor, in order to run Linux on the Commodore 64. Kortman writes: "The screenshots took VICE a couple hours in 'warp mode' to generate. So, as is, a real C64 should be able to boot Linux within a week or so."
Re:A project to port LLVM to the MOS 6502 on Wednesday June 02, 2021 @06:33AM (#27367031)
Your assumptions are correct.
Re:A project to port LLVM to the MOS 6502 on Wednesday June 02, 2021 @06:31AM (#27367019)
Disclaimer: I'm working on llvm-mos.

https://llvm-mos.org/wiki/Rationale

Other than permuting itself, what did it do that was sophisticated? Code morphing viruses have been around for a very long time, much longer than 2000. Simple replication does not constitute sophistication. Even my brother in law does that.
I hadn't read the book when I wrote the article. I tried to get all the salient facts in, with as few words as possible. "Omit needless words" - Wm. Strunk.
Yeah, you understand exactly what I was trying to convey when I wrote the article. Thanks.
In Kaspersky's defense, they have started making their source code auditable for certain customers. Kaspersky is well aware of how they are perceived as a company, and they are aware that if anyone ever traces any of their activities back to the KGB, it's game over for them. I can't pretend I trust Kaspersky 100%, but I can see why others might.
That is an utterly braindead assertion.

I wrote the quoted article about Stuxnet. And I've helped write multiple operating systems.

Your argument not an argument. It's just a random assertion with no technical knowledge of either Stuxnet or how to write an operating system.

Stuxnet specifically took advantage of Windows's lack of sophistication in order to replicate.

Re:Let’s Build a Simple Interpreter, Part 4 on Friday September 11, 2015 @01:46PM (#10205099)
Do we just not teach lex and yacc anymore? Or any other LALR type parser generation system?
Re:Ask HN: Why do you guys work so much? on Thursday October 30, 2014 @12:37PM (#8534013)
I've heard it said, "We work eighty hours a week so we don't have to work forty hours a week." Me, I do it because I have a particular vision, and I think that the world would be better off if that vision actually existed. Can't do that while working for a bank.
Re:Facebook's std::vector optimization on Saturday August 30, 2014 @02:24PM (#8247138)
Show me a programmer who is trying to reoptimize the STL, and I'll show you a programmer who is about to be laid off.

The guy who tried this at EA didn't last long there.

Re:Facebook's std::vector optimization on Saturday August 30, 2014 @02:17PM (#8247122)
If you're spending a lot of time changing the size of a std::vector array, then maybe std::vector isn't the right type of structure to begin with...