Readit News logoReadit News
deckarep commented on How to Build an Evil Compiler   awelm.com/posts/evil-comp... · Posted by u/kiyanwang
josephcsible · 3 years ago
The key point is that if your system has an evil compiler, building your own compiler from known-good source code will just give you another evil compiler, no matter how many times you do it. It creates a bootstrapping problem for the victim that doesn't have easy solutions.
deckarep · 3 years ago
Perhaps another way to say it-using an evil compiler could bootstrap any kind of malicious code in the compiled artifact whether it’s a compiler or not.
deckarep commented on How to Build an Evil Compiler   awelm.com/posts/evil-comp... · Posted by u/kiyanwang
deckarep · 3 years ago
Is it just me…or does article seem a bit contrived? I was expecting to read this to learn about a really powerful hijacking technique when in reality it’s just a program that manipulates your input program.

This is something that could easily occur with scripting languages, backend systems, open source, closed source, etc.

Basically any black-box system that takes in some input could pre-manipulate the input yielding an unknown/unexpected output.

deckarep commented on Raygui – A simple and easy-to-use immediate-mode GUI library   github.com/raysan5/raygui... · Posted by u/maydemir
deaddodo · 3 years ago
Raylib is great and one of my preferred libraries for writing emulators in. But I will say if you’re expecting something like imgui or nuklear with Raygui, it’s not nearly as advanced or usable.
deckarep · 3 years ago
Curious what makes Raylib good for emulators? I’m genuinely interested in this.
deckarep commented on Raygui – A simple and easy-to-use immediate-mode GUI library   github.com/raysan5/raygui... · Posted by u/maydemir
chrisdalke · 3 years ago
Related, check out raylib, the rendering/game engine made by the same author!

I’ve used Raylib and raygui on a few RPi based projects and recommend it. It’s a really simple, intuitive way to get an OpenGL-based UI running. Good alternative to web-based UIs because it has similar simplicity but runs on devices with lower specs. I built this pinball machine with raylib: https://youtu.be/iiBn7FVzlcc

deckarep · 3 years ago
Brilliant project and execution. I love the idea of bringing the tactile experience together with a digital gaming experience.
deckarep commented on Apple Event March 8, 2022   apple.com/apple-events/ev... · Posted by u/ksec
deckarep · 3 years ago
As a long-time PC user, I remember going to CompUSA and seeing the Mac section of games which was laughable.

Back then you bought Apple if you were a sound engineer or into graphic/media design.

I used to tell people I’m a die-hard PC user simply: Mac sucks!

Fast forward to around 2009 and I’ve been a happy Apple user since then for all my software engineering needs.

Is the platform perfect? Nope! And nothing is.

Is it expensive? Yes, but the quality is fantastic and if one really wants to can get 5 years easy out of any Mac computer…I’ve got 11 years out of my family’s Mac mini that I was able to upgrade a few times.

Which brings me to my only real gripe: the lack of upgrade ability and the obsession with “thin” design.

Please address that because everything else I can mostly get over.

deckarep · 3 years ago
One more thing: Apples’s turnaround was one of the most unexpected things in modern computing.

Also, never have I ate my own words harder with the “Mac sucks” thing.

At the end of the day I’ll use what works.

deckarep commented on Apple Event March 8, 2022   apple.com/apple-events/ev... · Posted by u/ksec
MangoCoffee · 3 years ago
yes, you can. i don't know if people here are too young to remember before Steve Jobs return, Apple was in the gutter. Steve had to make a deal with Microsoft to inject money into Apple. no one stand at the top forever. if it happened before it will happen again.
deckarep · 3 years ago
As a long-time PC user, I remember going to CompUSA and seeing the Mac section of games which was laughable.

Back then you bought Apple if you were a sound engineer or into graphic/media design.

I used to tell people I’m a die-hard PC user simply: Mac sucks!

Fast forward to around 2009 and I’ve been a happy Apple user since then for all my software engineering needs.

Is the platform perfect? Nope! And nothing is.

Is it expensive? Yes, but the quality is fantastic and if one really wants to can get 5 years easy out of any Mac computer…I’ve got 11 years out of my family’s Mac mini that I was able to upgrade a few times.

Which brings me to my only real gripe: the lack of upgrade ability and the obsession with “thin” design.

Please address that because everything else I can mostly get over.

deckarep commented on I can no longer compile my first Flash game   devtails.xyz/i-can-no-lon... · Posted by u/devtailz
kingcharles · 3 years ago
I tried my old startup from here:

http://dudefactory.com/

And it boots to the title screen, but I guess there is some sort of check inside the SWF to make sure it is running inside the right domain, because then it tries to redirect the browser back to the main URL and won't load the main avatar creation screen. Bummer. (I downloaded Adobe's Flash Projector and the behavior is the same)

EDIT: I installed the Chrome browser extension instead and it booted up fine. Some rendering issues to do with stroke widths that make it reasonably unusable, but it worked and when you click to download you get the actual proper file since it is rendered using .NET on the back end.

deckarep · 3 years ago
I had a similar problem. My flash content was several modules where the main module swapped in and loaded in sub-modules.

The main screen would loaded but when clicked wouldn’t resolve the sub-modules correctly but I was able to just play the sub-modules and individually and see the old content in all its cheesy glory.

deckarep commented on I can no longer compile my first Flash game   devtails.xyz/i-can-no-lon... · Posted by u/devtailz
deckarep · 3 years ago
I know this doesn’t satisfy compilation issues but for playing Flash content using a modern engine try out: https://ruffle.rs/

It’s written in Rust (don’t shoot the messenger) and was able to play some flash content I had produced around 1999…

Ok I’m going to go crawl back under my rock.

deckarep commented on Optimizing GoAWK with a bytecode compiler and virtual machine   benhoyt.com/writings/goaw... · Posted by u/benhoyt
deckarep · 4 years ago
Awesome blog post Ben! Question: how did you come up with your list of opcodes?

I ask because while some opcodes are obviously needed others as not so obvious and coming up with a balanced instruction set is somewhat difficult design problem.

deckarep commented on MiniVM: A zero-dependency cross-language runtime on par with LuaJIT and C   github.com/FastVM/minivm... · Posted by u/isaacimagine
4984 · 4 years ago
MiniVM will JIT eventually. Right now the biggest barrier is the VM snapshots. Currently MiniVM its own stack and heap and can snapshot them from any point in the program.

One thing to note about MiniVM is that it has very strong types. V8 has many steps to go through when it needs to perform something like addition (weak typing). MiniVM supports only 4 basic types.

MiniVM's reference frontend Paka is fully self hosted, It is currently the only large MiniVM program.

deckarep · 4 years ago
Question on VM snapshotting: what’s the purpose/point in even having such an ability? What does it allow you to do?

I only know of snapshotting perhaps being necessary to support coroutine based context switching.

Thanks and very cool project!

u/deckarep

KarmaCake day442May 9, 2017View Original