Thread — 2023-03-22

4 tweets

Tweet 1 2023-03-22 20:11 UTC
#Silice latest improvements (draft branch):
- while/if/else use fewer cycles✅
- faster parsing! (another x2 gained) ✅
- command line tool to see how code maps to cycles ✅

Example of improvement in cycles, visualized with the new tool (before:6, after:2). https://t.co/58raBNcqoZ
11 likes · 4 retweets
1638634513705074688-Fr2XjmmWIAIvzbR.png
1638634513705074688-Fr2Xl5VWYAE3ydF.png
Tweet 2 2023-03-22 20:11 UTC
Because the fewer-cycle optimization can impact existing code, Silice outputs a 'change log report' indicating everywhere the changes may have an impact: https://t.co/j0kiUNwul6
2 likes · 1 retweets
1638634517177987075-Fr2YCyMXsAIWIDL.png
Tweet 3 2023-03-22 20:11 UTC
Thanks to @suarezvictor for pointing out opportunities for fewer cycles, and to github users rob-ng15 and at91rm9200 for tests and suggestions!
2 likes · 0 retweets
Tweet 4 2023-03-22 20:11 UTC
To visualize cycles with the tool, build your project (e.g. 'make target') and then run
http://report-cycles.py target http://source.si
Here is how it looks on the doomchip (raycaster part): https://t.co/BUUJXyRs0I
5 likes · 2 retweets
1638634524564176901-Fr2YR-kWcAA2Kzl.png