miniblog.
← Back to all posts
Apr 10, 2016 at 15:17
"Writing a good indentation function can be difficult and to a large extent it is still a black art."
Auto-Indentation (GNU Emacs Lisp Reference Manual)
Auto-Indentation (GNU Emacs Lisp Reference Manual)
Wilfred Hughes
Related Posts
Mar 15, 2021 at 00:08
Finally got dynamic string allocation working in my toy compiler!
https://github.com/Wilfred/proper-compiler-hat/commit/cd726f45eb0540eb54c2c3c7e0ab75a651c46a43
Implementing intrinsics made this way easier: writing a single large assembly function is a pain.
feat: Implement a slurp function using compiler instrinsics · Wilfred/proper-compiler-hat@cd726f4
Contribute to Wilfred/proper-compiler-hat development by creating an account on GitHub.
Wilfred Hughes
Shared words: Writing, function, large Score: 35
Nov 9, 2014 at 23:19
Writing decent indentation for a major mode is very hard. You need a non-trivial performant parser. I dare not look at perl-mode or C++.
Wilfred Hughes
Shared words: indentation, Writing Score: 31.3
Sep 9, 2017 at 07:10
Interesting SO topic on writing a good hash function for ints:
https://stackoverflow.com/q/664014/509706
(tricky to handle ints divisible by a common factor)
c - What integer hash function are good that accepts an integer hash key? - Stack Overflow
Wilfred Hughes
Shared words: Writing, good, function Score: 30.7