445 karma · joined February 24, 2020
Really?
Do you know about any language with as strong or stronger borrow checker than that of Rust?
huh?
(I didn't have to print line numbers back then)
You can generate LaTeX documents, images etc. with line numbers. And then print them. hmm.
I was already using Pygments to highlight my source code and was thinking if I could print them highlighted with it.
Pygments has many formatters to format output. I used .rtf but you can also output images as well.
$ mkdir rtfs
$ for F in src/**.rs; do
> pygmentize -o rtfs/$(basename $F .rs).rtf -O linenos=1 $F
> done
Now open the .rtf files with a word processor and print them.To change the highlighting theme, e.g. to "pastie":
$ pygmentize -O style=pastie,linenos=1 ....>> I would now love to opensource the project for everyone.
Where is the license?
Learn more about licensing here: https://help.github.com/en/articles/licensing-a-repository
* 0 or more
.
.
.
[a-q] ...
[A-Q] ...
.
.
.
[abc] ...
[^abc] ...
that is, remove backslashes from the front of them[1]: https://www.lua.org/work/doc/manual.html#3.3.7 [2]: https://www.lua.org/work/doc/manual.html#3.3.8
.\31{width:5%}
.\33{width:22%}
.\34{width:30%}
.\35{width:40%}
.\32{width:15%}
huh? can you tell me what those \31 \33 etc. mean?Can you actually do that?
Why not piping from /dev/zero , heck even /dev/random or /dev/urandom ?
* self compiling compiler (self-hosting?).
* self interpreter interpreter (metacircular evaluator)
[from scratch. no parser generator or backends like LLVM, or tools like that, as they hide much info and insight]
Testing
* Fuzzer (for testing, e.g. programming language implementation)
I did not dare to open the gcc man page, now I think I will look at it.
For that constraint, one have to pass an option. I want to know if any language (other than V) which has this as default.
Have seen that.
Another one by 3b1b on that topic: https://youtube.com/watch?v=sD0NjbwqlYw
The best example of that in programming language design I have seen is the V programming language. (https://vlang.io)
No global variables, no null/undefined/nil/None/... V is the only language I know in which variable shadowing is an error. (Do you know any other language with this feature/constraint?)
And then I remember the handling of ''var''s in js and hoisting etc. ... sigh!
At least one can simply prove that 0.999... = 1 without much hard work. Maybe less controversial than the following:
1 + 2 + 3 + ... [somehow] = -1/12 {{Riemann's zeta(-1)?}}
1 + 2 + 4 + 8 + 16 + ... [somehow] = -1
As well as the weird prime product (Product of 1/(1-(p^-2)) for p prime) and the sum of x^-2 from x=1 to [sigh] being equal to (pi^2)/6 are some example of infinite beauty of mathematics that I remember.Then I learnt that prototypal inheritance is a superset of ''class''ical inheritance [1] as well as this [2]. Hmm.
With Reflect, Proxy etc. you have great metaprogramming capabilities that make this language much powerful.
Still, there are some (many?) edge/corner cases and unfixable bugs (aka features) that the language is stuck with for the sake of backwards compatibility and developers have to learn these. (The most famous of these might be typeof null === "object")
When I look at the amount of features added to the language specification, sometimes it seems like it is going to become another incarnation of the C++ specification.
I still like its expressiveness and power, but if it becomes another C++ in future, I have to look somewhere else. (TypeScript maybe.)
[1]: https://aaditmshah.github.io/why-prototypal-inheritance-matt... [2]: https://wiki.c2.com/?ClosuresAndObjectsAreEquivalent and https://www.crockford.com/javascript/private.html