Live data from Hacker News

Frink

frinklang.org

21–30 of 66 posts

Re: Frink

#21
post #19
post #5

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…

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

#22
post #4
post #3

Mirror: 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.

It's much more likely to have reached maximum concurrency than maximum throughput. When the site is accessed by a general audience, many will access it through a 3G connection or worse, and their slow speeds will cause the number of concurrent connections to balloon. This website uses Apache, which sometimes defaults to a maximum of 10 concurrent workers.

Re: Frink

#23
Funny how one of the examples for translation

>"I will not buy this record; it is scratched." -> Spanish >No compraré este expediente; se rasguña.

is wrong x).

Re: Frink

#24
I'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.) 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

#25
post #19

Earlier 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.

If you define a "radian" like that you lose all the nice properties of sin like sin(x)' = cos(x)

Re: Frink

#26
post #19
post #5

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…

Easy to fix

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

#27

I'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…

>CPAN

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

#28
post #14
post #9

Earlier quoted context omitted.

Amusingly, this example wouldn't be nearly as impressive if you used metric units instead.

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.

Re: Frink

#30
post #14

Earlier 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.

I'm not quite sure what this means, but your profile proves you're not a spam bot, so I guess I won't flag it... did you submit this in the wrong tab or am I missing something?
Post reply on HN