logoalt Hacker News

Typed Assembly Language (2000)

33 pointsby luulast Saturday at 6:28 AM14 commentsview on HN

Comments

addaonlast Saturday at 11:45 PM

I think a challenge to me for typing assembly, unless you’re doing old-school C style minimally-useful types, is that assembly types tend to be both more ad hoc and more transient than types in higher level languages, because these types come from the intersection of the problem domain and the way of expressing the solution, instead of just from the problem domain. In C++ I might have a type for “aircraft velocity in mm/s”, but in assembly I might have that type on one line, and then go to velocity in 2x mm/s the next line to save a renormalization; or have types for various state flags, but have them pack differently into a word in different places in the code. This is all expressible, but I think it would make me favor a more implicit typing with a heavier emphasis on deduction, just to minimize the description of types that exist but are not in themselves interesting.

estimator7292last Saturday at 6:38 PM

If you're gonna make a website for your programming language, you NEED to put an example of the language front and center on the landing page.

Three links deep and I finally found some code... packaged in a gz archive. I still have not seen a line of TAL

show 3 replies
Suractoday at 6:08 AM

Reinventing C?

leptonstoday at 5:39 AM

I feel like this is a solution in search of a problem that was already solved by C.

show 1 reply