News for hackers. Stuff that matters.
Re:Writing Pong in Rust for My OS Written in Rust by snicker7 on Monday March 15, 2021 @10:15AM (#26466320)
Too bad the author used Wordpress instead of Zola. Otherwise, his next post could be "Blogging about writing Pong in Rust in my OS written in Rust in a blog engine written in Rust".
Re:Writing Pong in Rust for My OS Written in Rust by cryptoquick on Monday March 15, 2021 @11:20AM (#26467034)
...served from a Warp server written in Rust...
Re:Writing Pong in Rust for My OS Written in Rust by AlchemistCamp on Monday March 15, 2021 @02:17AM (#26463066)
This is the first time I've seen pong not written in assembly.
Re:Writing Pong in Rust for My OS Written in Rust by 0xFluegel on Monday March 15, 2021 @07:13AM (#26464521)
I still have a VHDL version lying around from my old student project. :)
Re:Writing Pong in Rust for My OS Written in Rust by colejohnson66 on Monday March 15, 2021 @09:22AM (#26465769)
Wasn’t the original “written” using discrete logic (as in, no ROM)? How close to the original is your VHDL version then?
Re:Writing Pong in Rust for My OS Written in Rust by 0xFluegel on Wednesday March 17, 2021 @05:39PM (#26497095)
Since it's a student project to learn about VHDL and synthesis the pong clone had a few additions like simple math-expression based textures and we ignored trying to get close to the exact movement behaviour. But you actually get to control it with rotation based input. :)

In regards to ROM. It was an FPGA, meaning it was reprogrammed on every startup. But all behaviour was built as logic without accessing any memory.

Re:Writing Pong in Rust for My OS Written in Rust by max_ on Monday March 15, 2021 @10:23AM (#26466392)
Am inspired how can I learn how to write a RISC-V OS?

Is it alot of work?

Re:Writing Pong in Rust for My OS Written in Rust by steveklabnik on Monday March 15, 2021 @10:43AM (#26466622)
The very first link in the post is to https://osblog.stephenmarz.com/, which is the author's tutorial on doing so. You should check it out!
Re:Writing Pong in Rust for My OS Written in Rust by jhvkjhk on Monday March 15, 2021 @12:39PM (#26468200)
Tsinghua University has a course about writing OS on RISC-V by Rust.

However you probably needs Google Translate to read it since it’s written in Chinese.

https://rcore-os.github.io/rCore-Tutorial-Book-v3/

Re:Writing Pong in Rust for My OS Written in Rust by enriquto on Monday March 15, 2021 @02:13AM (#26463049)
n-gate is going to have a field day with this one
Re:Writing Pong in Rust for My OS Written in Rust by eggy on Monday March 15, 2021 @10:26AM (#26466428)
I never heard of n-gate before. I've just lost two hours of work I have to make up tonight! Funny stuff.
Re:Writing Pong in Rust for My OS Written in Rust by secondcoming on Monday March 15, 2021 @04:59AM (#26463827)
It's Rust all the way down!
Re:Writing Pong in Rust for My OS Written in Rust by wealthyyy on Monday March 15, 2021 @06:29AM (#26464287)
When Christ returns from vacation, He wants everything, including the Bible, to be rewritten on Rust.
Re:Writing Pong in Rust for My OS Written in Rust by logicchains on Monday March 15, 2021 @08:15AM (#26465045)
"And he who dares write Unsafe code shall be strung up and scourged. His limbs broken, his flesh stripped from his body, and his eyes pierced. For he has defiled the glory of Rust, and the righteous should not suffer such a man to live."
Re:Writing Pong in Rust for My OS Written in Rust by ctsk on Monday March 15, 2021 @08:55AM (#26465507)
[dead]
Re:Writing Pong in Rust for My OS Written in Rust by ibraheemdev on Monday March 15, 2021 @08:55AM (#26465506)
No, it is not from the Quran.
Re:Writing Pong in Rust for My OS Written in Rust by drran on Monday March 15, 2021 @08:15AM (#26465053)
Rust is already used in Bible (6 or 7 times).

Ezekiel 24:6 Therefore thus says the Lord Yahweh: Woe to the bloody city, to the caldron whose rust is therein, and whose rust is not gone out of it! take out of it piece after piece; No lot is fallen on it.

Re:Writing Pong in Rust for My OS Written in Rust by koolba on Monday March 15, 2021 @08:44AM (#26465373)
Sure but Matthew 6:19-20 clearly indicates that Rust is too powerful for man and can only be used after ascending to live amongst the angels:

“Do not lay up for yourselves treasures on earth, where moth and rust destroy and where thieves break in and steal;

but lay up for yourselves treasures in heaven, where neither moth nor rust destroys and where thieves do not break in and steal.“

Re:Writing Pong in Rust for My OS Written in Rust by coldtea on Monday March 15, 2021 @05:24PM (#26469274)
"has rust inside it, and whose rust will not come off!" (Ezekiel)
Re:Writing Pong in Rust for My OS Written in Rust by scoutt on Monday March 15, 2021 @10:31AM (#26466504)
www.arewebibleyet.com
[dead]
Re:Writing Pong in Rust for My OS Written in Rust by bluejekyll on Monday March 15, 2021 @11:44AM (#26467332)
This is simply a bad take.

Wheels have been improved over many millennia. Were they all pointless? First logs. Then the axle. Then carriage wheels with wooden spokes. Then steel wheels with rubber tires, also with spokes, but light enough for bicycles. Then aluminum wheels, again lightening the rolling weight. And now we’re seeing wheels with integrated suspension systems.

All of these are reinventing the wheel and each is a dramatic improvement over the wheel before it. This is how we make progress, by improving on things from the past.

Re:Writing Pong in Rust for My OS Written in Rust by amelius on Monday March 15, 2021 @11:57AM (#26467535)
That's true. Reinventing the wheel is not necessarily pointless. But technology has moved on since wheels and there are arguably more important areas to focus on. That is, a specific improvement may be dramatic for the performance of the wheel, but for the overall system an improvement elsewhere could prove more useful.

OSes have not changed much from a conceptual point of view since the 70s. I'd personally like to see more research there.

Re:Writing Pong in Rust for My OS Written in Rust by bluejekyll on Monday March 15, 2021 @12:10PM (#26467751)
isn't someone writing a new one doing more research there? even if all the do is copy the past, they are learning what is good, and hopefully what is bad, so that they can do it better then next time...

While Rust is just a tool to help with that development, it does overall lower the cost so that focus can be paid to higher level problems and less paid to memory usage errors.

Re:Writing Pong in Rust for My OS Written in Rust by wealthyyy on Monday March 15, 2021 @11:55AM (#26467498)
With "unsafe" keyword.