I'm currently experimenting with the varied isearch alternatives. It's like Emacs is a primordial goo through which new editor ideas evolve!
miniblog.
Coming from Python, Rust has an extraordinary number of integer types. I've used i8, u8, i64 and usize all in the same block of code!
I'm moving from ace-jump to avy. avy is a little more versatile, actively maintained, and can be configured to be a drop-in replacement.
Aha, great to see that ENSI have standardised the BF language to give compiler writers maximum flexibility! https://esoteric.sange.fi/ENSI/brainfuck-1.0.txt
What's your least favourite Emacs keybinding? I find C-M-x awkward for such a useful command. Moved to C-c e and never looked back.
Are there any languages that allow spaces in variable names? Would be interesting to try: could help readability but would affect syntax.
Quickcheck is great for finding interesting bugs, but it's a little sad when your tests randomly go green inappropriately.
Correctly printing floats was considered to be a solved problem, but there have been some recent perf improvements:
Benchmarking correctly is hard. Criterion generates HTML reports: https://www.serpentine.com/criterion/fibber.html and performs linear regression to measure noise!
Found my first genuine bug using quickcheck! It can be hard to write properties, but https://fsharpforfunandprofit.com/posts/property-based-testing-2/ is very helpful.
Nifty Emacs command of the day: helm-imenu. It lets you jump to definitions within a file, but also gives you an overview of that file.
ENSIME is a very nice Scala package for Emacs: https://www.troikatech.com/blog/2014/11/26/ensime-and-emacs-as-a-scala-ide -- why don't more languages offer an 'inspect type' feature?
Writing an autocomplete tool for IDEs is an interesting problem. Rust is using AST pruning, C# uses lazy compilation https://www.reddit.com/r/rust/comments/3a4qbj/racer_rustc_update/cs9w3ny
I'm having fun with quickcheck, but it definitely takes careful thought. You need tests that can be parameterised over a range of inputs.
I really like that Rust's build tool compiles all the files in your examples/ directory by default. It means examples actually work!
Showing 5,251-5,265 of 7,654 posts