The units file (and its comments) makes a thrilling read https://frinklang.org/frinkdata/units.txt
There are some great notes in there and also things that you will almost certainly not know already. Beware the SI's broken definition of Hz. You should treat the radian as being correct, as a fundamental dimensionless property of the universe that falls out of pure math like the Taylor series for sin[x], and you should treat the Hz as being a fundamental property of incompetence by committee. [...] Either way, if I…
Frink
21–30 of 66 posts
Re: Frink
#22Mirror: https://web.archive.org/web/20180812184707/https://frinklang...
I'm surprised the site died. It looks like a static website, and even a small webserver in a default configuration can serve thousands of files per second.
Re: Frink
#23>"I will not buy this record; it is scratched." -> Spanish >No compraré este expediente; se rasguña.
is wrong x).
Re: Frink
#24https://metacpan.org/pod/Language::Farnsworth
I originally built it because I wanted an easier to integrate version into an IRC bot, the java implementation of Frink was hard to integrate safely (keep it from running too long, max memory usage, etc.) at the time and having a native perl version made handling a lot of that easier.
Language wise, the problems I ran into were that, at least in my implementation, it began to get very difficult to parse a lot of things unambiguously and I couldn't solve them without a larger redesign of the language. In particular handling arrays and making user defined types easier to use and make (you can emulate that right now with currying and closures to make function calls simpler). I never got it past that step because I didn't want to do a complete redesign of the language and break all compatibility, right now about 80% of all Frink programs will probably just work fine in Farnsworth, and 90% with some minor tweaks.
Re: Frink
#25Earlier quoted context omitted.
There are some great notes in there and also things that you will almost certainly not know already. Beware the SI's broken definition of Hz. You should treat the radian as being correct, as a fundamental dimensionless property of the universe that falls out of pure math like the Taylor series for sin[x], and you should treat the Hz as being a fundamental property of incompetence by committee. [...] Either way, if I…
Hmm, I guess it would have worked if a radian was defined as 1/(2pi) instead of 1. On the downside, you'd have to redefine things like `sin` to take multiples of "whole rotations" to make `sin(2pi radians)` (i.e., `sin(1.0)`) do the right thing.
Re: Frink
#26The units file (and its comments) makes a thrilling read https://frinklang.org/frinkdata/units.txt
There are some great notes in there and also things that you will almost certainly not know already. Beware the SI's broken definition of Hz. You should treat the radian as being correct, as a fundamental dimensionless property of the universe that falls out of pure math like the Taylor series for sin[x], and you should treat the Hz as being a fundamental property of incompetence by committee. [...] Either way, if I…
Hz == 1 revolution / sec
revolution == 2 Pi radians
The problem of not having the revolution as the conversion unit is the massive oversight.
Re: Frink
#27I've actually built a similar language directly inspired by this one. It's been left to sit for a long time due to some issues with the implementation and language itself. https://metacpan.org/pod/Language::Farnsworth I originally built it because I wanted an easier to integrate version into an IRC bot, the java implementation of Frink was hard to integrate safely (keep it from running too long, max memory usage, etc…
Huh. I don't know why, but I never thought I'd see a Perl project anywhere in HackerNews. There might literally be dozens of us.
Re: Frink
#28Re: Frink
#29Re: Frink
#30Earlier quoted context omitted.
Indeed 3 m 4 m 3 m -> liters 36000 3 m 4 m 3 m water -> kg 36000 2 metricton / (3 m 4 m water) -> m 1/6
Ur carpenter is amazing.