jobhdez

Joined 6 years ago

Karma
36
Submissions
45
Member since
Oct 4
I built a little linear algebra interpreter. What do you think?
View on Hacker News

Recent submissions

Comment · 2 years ago
Thank you so much for this response.
Comment · 3 years ago
wow -- thanks so much. I will learn group theory and abstract algebra. thanks
Comment · 3 years ago
Implementing tcp sounds like a lot of fun!
Comment · 3 years ago
Very I interesting project. Thanks. I’m going to start using it for my job search. Great job!
Comment · 3 years ago
My apologies for saying the following but can you share some books or papers that support your view? The example that I provided was from the dragon book. CMU uses that same example for one of its ssa slides for an compiler optimization course. This makes me think that I can I indeed lower an ast to ssa that looks like the example I gave and still exploit the ssa for optimization. By the way the examples I provided above are from the dragon book.

Perhaps you work on llvm or something professionally?

But yeah if you can please provide support for your view. Thanks

Comment · 3 years ago
Three address code:

```

p = a + b

q = p-c

p = q * d

```

Ssa:

```

p1 = a+ b

q1= p1 - c

p2 = q1 * d

```

Given the above examples how is it not straightforward to use ssa instead of three address code using what the dragon book teaches? What is wrong with the above examples?

In fact section 6.2.4 in the dragon book it says:

“Two distinctive aspects distinguish SSA from three-address code. The first is that all assignments in SSA are to variables with distinct names; hence the term static single-assigment.” The second one is that ssa uses a function to combine two definitions

Comment · 3 years ago
The first programming language I learned was Scheme - I read the little schemer by Felleisen but my second book was what really taught me to program. This second book was structure and Interpretation of computer programs. I’ve been using lisp ever since. Scheme is a a beautiful language but I’m a Common Lisp guy now a days

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton