<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sinter/examples/nq/glue.c, branch mag/llvm-14</title>
<subtitle>Intermediate functional language that compiles to LLVMIR</subtitle>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/'/>
<entry>
<title>Added int width specifiers</title>
<updated>2020-01-11T02:53:36+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2020-01-11T02:53:36+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=1a3dc02a18a9050877288a5867e44d9c47a53542'/>
<id>1a3dc02a18a9050877288a5867e44d9c47a53542</id>
<content type='text'>
The width of an int can be specified at the site of its creation. For
example, the following function returns an int of width 2 bits and value
1:

[def two_bit_int []
    (2 1)]

Ints can still be written the old way; in these cases the compiler looks
for a default int bit-width (specified with the -w flag). If a default
has not been defined, the compiler throws an error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The width of an int can be specified at the site of its creation. For
example, the following function returns an int of width 2 bits and value
1:

[def two_bit_int []
    (2 1)]

Ints can still be written the old way; in these cases the compiler looks
for a default int bit-width (specified with the -w flag). If a default
has not been defined, the compiler throws an error.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add option to enable/disable boxing</title>
<updated>2020-01-08T23:47:14+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2020-01-08T20:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=505d8a2d364b3012455068d433ccec73cac38a50'/>
<id>505d8a2d364b3012455068d433ccec73cac38a50</id>
<content type='text'>
Only affects atomic types, not structs. Accepts three options:

- "-u always": always boxes
- "-u never": never boxes
- "-u smart": inserts a comparison of sizes, and boxes only if
    the item is bigger than a pointer.

"smart" is smart in name only; I expected the comparison to be optimised
away (since the sizes of the types are known at compile-time), but it
seems to run significantly slower than the other options.

Steps to improve:
- try making the comparison compile-time (or, if it already is, find out
    why it's so slow);
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only affects atomic types, not structs. Accepts three options:

- "-u always": always boxes
- "-u never": never boxes
- "-u smart": inserts a comparison of sizes, and boxes only if
    the item is bigger than a pointer.

"smart" is smart in name only; I expected the comparison to be optimised
away (since the sizes of the types are known at compile-time), but it
seems to run significantly slower than the other options.

Steps to improve:
- try making the comparison compile-time (or, if it already is, find out
    why it's so slow);
</pre>
</div>
</content>
</entry>
<entry>
<title>I should commit more</title>
<updated>2020-01-08T14:14:39+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2020-01-08T14:14:39+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=4cdc57ce8041aecabd3175f2dff176b115f17724'/>
<id>4cdc57ce8041aecabd3175f2dff176b115f17724</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
