HackerTrans
TopNewTrendsCommentsPastAskShowJobs

johnwbyrd

no profile record

Submissions

Linux on a Commodore 64

github.com
227 points·by johnwbyrd·3 jaar geleden·93 comments

comments

johnwbyrd
·2 maanden geleden·discuss
I'll just leave this here

https://www.llvm-mos.com
johnwbyrd
·12 maanden geleden·discuss
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.
johnwbyrd
·2 jaar geleden·discuss
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...
johnwbyrd
·2 jaar geleden·discuss
Thank you Plop, but nowadays we have a profusion of blessings, including VenToy, iVenToy, and netboot.xyz.
johnwbyrd
·2 jaar geleden·discuss
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.
johnwbyrd
·2 jaar geleden·discuss
Fun project, but fairly old news at this point.
johnwbyrd
·2 jaar geleden·discuss
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.
johnwbyrd
·3 jaar geleden·discuss
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?
johnwbyrd
·3 jaar geleden·discuss
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...
johnwbyrd
·3 jaar geleden·discuss
https://www.youtube.com/watch?v=2lW3WHPtmKo
johnwbyrd
·3 jaar geleden·discuss
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. Hand-written assembly might 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
johnwbyrd
·3 jaar geleden·discuss
The loading screen reports 130 BogoMIPS, but remember that it's emulating the timer as well, so the number is meaningless.
johnwbyrd
·3 jaar geleden·discuss
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.
johnwbyrd
·3 jaar geleden·discuss
Yes, if you use an REU, which is a correctly contemporary memory upgrade for the C64.
johnwbyrd
·3 jaar geleden·discuss
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."