Readit News logoReadit News
akdas commented on Writing a Self-Mutating x86_64 C Program (2013)   ephemeral.cx/2013/12/writ... · Posted by u/kepler471
belter · 4 months ago
I guess in OpenBSD because of W ^ X this would not work?
akdas · 4 months ago
I was thinking the same thing. Usually, you'd want to write the new code to a page that you mark as read and write, then switch that page to read and execute. This becomes tricky if the code that's doing the modifying is in the same page as the code being modified.
akdas commented on Neut Programming Language   vekatze.github.io/neut/ov... · Posted by u/azhenley
saithound · 7 months ago
> But seriously, according to that link, it seems to me like the zero or empty type is more suitable.

That's a bit different. The empty type is only suitable for functions that never return (e.g. loop infinitely, crash the program). The type checker will prevent functions that have the empty type as a return type from returning.

akdas · 7 months ago
To expand on this: the "unit" here represents the number of possible values that can be returned.

The confusion is probably because "empty" can mean two things:

- What's inside the returned value. That may be why the parent suggested empty for the unit type. But that's now what "unit" means in the common parlance.

- How many possible values can be returned. Never returning means the function has zero possible return values.

akdas commented on WASM will replace containers   creston.blog/wasm-will-re... · Posted by u/hpincket
Evidlo · 7 months ago
Does anyone remember a presentation on YouTube that described a hypothetical future where everything will be running inside a VM in a browser?
akdas · 7 months ago
The Birth and Death of Javascript. One of my favorites! https://www.destroyallsoftware.com/talks/the-birth-and-death...
akdas commented on Optimizing Ruby's JSON, Part 4   byroot.github.io/ruby/jso... · Posted by u/jeremy_k
akdas · 8 months ago
I recommend reading the previous 3 parts too, plus I'm looking forward to the next parts. I love that it goes into details and very clearly explains the problems and solutions, at least if you're familiar with C and know some things about compiler implementations.
akdas commented on A Simple ELF   4zm.org/2024/12/25/a-simp... · Posted by u/signa11
akdas · 9 months ago
A while ago, I created an interactive explanation of the different parts of a minimal ELF file: https://scratchpad.avikdas.com/elf-explanation/elf-explanati...

I wrote this page for my own compiler that I'm working on, but I think it would be a good complement to this article. Note that the page is not that great on mobile, the extra real estate on desktop really helps.

akdas commented on Immersive Linear Algebra (2015)   immersivemath.com/ila/ind... · Posted by u/oumua_don17
WillAdams · a year ago
Very cool!

Does anyone have a list of other similar texts?

There's:

- Geometry: Joyce's Java version of Euclid's _Elements_: https://mathcs.clarku.edu/~djoyce/java/elements/elements.htm...

- Physics: https://www.motionmountain.net/

- Chemistry: The Elements by Theodore Gray https://apps.apple.com/us/app/the-elements-by-theodore-gray/...

A nifty thing my kids enjoyed was the website version of the book, _Bembo's Zoo_ (which sadly is no longer on-line: https://soundeffects.fandom.com/wiki/Bembo%27s_Zoo_(Websites... )

akdas · a year ago
I started on two resources on different topics. One day, I want you invest a good amount of time into building them out.

https://cstheory.avikdas.com/

https://nesdev.avikdas.com/

akdas commented on How is a binary executable organized? Let's explore it (2014)   jvns.ca/blog/2014/09/06/h... · Posted by u/tripdout
raarts · 2 years ago
Wow. Cool! I’m a CS teacher and definitely going to use this. Thanks for your work! (Anyone aware of a Windows or Mac equivalent?)
akdas · 2 years ago
Thank you! My passion is teaching, and I created interactive visualizations for a CS theory class I taught: https://cstheory.avikdas.com/

If you're interested in collaborating for your classes, reach out to avik at avikdas dot com

akdas commented on How is a binary executable organized? Let's explore it (2014)   jvns.ca/blog/2014/09/06/h... · Posted by u/tripdout
matheusmoreira · 2 years ago
You and your web site are huge inspirations for me.
akdas · 2 years ago
Thank you! That means a lot to me

u/akdas

KarmaCake day793January 31, 2012
About
https://avikdas.com

https://www.linkedin.com/in/avikdas1990/

View Original