esotericist / frf Goto Github PK
View Code? Open in Web Editor NEWa particular kind of language
License: Other
a particular kind of language
License: Other
one of the key things a useful language needs to have to get work done is some way of evaluating the 'truth' of things. some have explicit true/false values and all else is a type error, some coerce some types into some specific type for evaluating truth (a common one is evaluating things to an integer, and using 0/nonzero)
for my purposes, i'm borrowing from erlang and having the atoms 'true'
and 'false'
be my canonical boolean values. but there's a great deal of utility in being able to consider the results of many operations to have a truth without having to do some mechanical test when the result should be some kind of inherently obvious.
on the other hand, i don't want to fall down the javascript hole where nearly everything can be considered to be true or false, somehow.
enter the falsifiability concept:
falsifiable types:
non-falsifiable types (and rationales):
followup to #1
it actually looks like bdw-gc provides an immutable string library remarkably similar to what i implemented after cribbing off of sds to produce sfs.
someday i need to pursue moving from my ultra homebrew kitbashed solution to one made by real programmers.
the design of frf, as with the languages it draws from, assumes most kinds of data are immutable. anything that is changed within a string or container is effectively "copy on write", producing a new object.
sds, the string library i started with, assumes for several functions that strings provided to it are valid scratch space, which invalidates the original string pointer.
this is incompatible with the presumption that a string, once pushed on the stack, no matter how many times, will continue to be that same identical string until it no longer has any references remaining. i keep having to fix bugs related to that incompatibility in worldview, because i expect my data not to get trampled by a thing that's supposed to produce new data.
need to do one of:
sdsdup()
invocations)third solution is most likely. doesn't preclude moving to another solution later.
defines that expand to multiple tokens (e.g. "} array_make") only seem to expand the first token in the definition.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.