The very first problem to solve is the lack of functions- that is the cornerstone for all other improvements. I suggest to use the C pre-compiler to generate function like structures and be the base for a more usable way to do D.
-
-
Show this thread
-
New conversation -
-
-
D have no way to name the arguments for a given syscall hook. They can only be accessed through the args array. I suggest the following style to enable naming of arguments:pic.twitter.com/0JKksOypTP
Show this thread -
Before this I copy pasted the information into the source- why not define aliases at the same time? Relevant structures can be shown as comments without taking up additional space with this layout.
Show this thread
End of conversation
New conversation -
-
-
The reasoning for not having loops is the need for the D VM to set gurantees for execution time. Conditional looping can make that impossible. Instead we can repeat an action X times with a hard static maxium. Not pretty- but gets the job done
Show this thread -
This is an example of an alternative to conditional looping. The algo implements a max len on strings. When reached- the middle characters will be dropped. Some dots are inserted instead when done- to communicate there have happened truncation.pic.twitter.com/Lmndu8a8k7
Show this thread - Show replies
New conversation -
-
-
You can make a hook predicate saying only trigger when argument != 0x0. But what if that pointer points to something that can also be 0x0. And what about code duplication and nested casting? Avoid it all with the comma operatorpic.twitter.com/T6ZbOVASkH
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Example of converting to hex with target other then console without sprintfpic.twitter.com/e6U7A4jhfP
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.