Private Tag Reporter
kiwifarms.net
- Joined
- Jul 7, 2024
this nigga about to reinvent lambda calculus from first principlesI'm doing something just for fun; making calculator functions only using adding and subtracting.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
this nigga about to reinvent lambda calculus from first principlesI'm doing something just for fun; making calculator functions only using adding and subtracting.
Related to something interesting I found recently: all elementary functions can be built from a single binary operator (and with the constant 1).making calculator functions only using adding and subtracting
This was actually one of the tricks I used while building my x64 compiler for my degree. Speed was never something thought about, so I just used three registers for the whole thing. Then stashed the outputs in memory, and pulled them when I needed them.Related to something interesting I found recently: all elementary functions can be built from a single binary operator (and with the constant 1).
The binary operator in question: eml(x,y)=exp(x)-ln(y).
Here is how the elementary functions are bootstrapped:
View attachment 9065296
Source
good on you for building your own compiler, the closest I ever came was attempting to write my own lowering backend for a custom cpu using the same llvm version as emscripten. My sanity failed when i tried to get past the basic math operations.This was actually one of the tricks I used while building my x64 compiler for my degree. Speed was never something thought about, so I just used three registers for the whole thing. Then stashed the outputs in memory, and pulled them when I needed them.
So it might be useful to reply to those "I'm an AI recruiterThat could be a good sign tbr, someone from the inside is against the LLM takeover and likes that your smart enough to know it's not a human.
It's a running gag in Germany that the trains are never on time. There are layers to this.One time I got one that said something like "your organizational skills are better than a German train schedule." I laughed and sent it to a couple friends.
$ boss = Character(name="Boss")
"Oh good, the Farms is up!"
boss "Nigger, are you going to do any coding today?"
menu "Go back to the cagie, wagie?":
"Yes. Whoever does not work, does not eat.":
$ work_done += 1
"Nah screw this, let's laugh at some freshly butchered trannies.":
"There's one that looks like a rotisserie chicken. You throw up."
Oh good, the Farms is up!
Boss | Nigger, are you going to do any coding today?
𝄋 Go back to the cagie, wagie?
> Yes. Whoever does not work, does not eat.
> Nah screw this, let's laugh at some freshly butchered trannies.
I recommend looking into recursive descent parsing. The parser generator thing, or whatever people do in Haskell is harder to grasp, at least it was for me as a beginner programmer. I built my first complete language with a recursive descent parser within a few hours and I could easily modify the parser with any language changes and the method allows for easily printing useful error messages on invalid input.But more than that I just want to learn how to make parsers, there seems to be a science to it and I'm too retarded to reinvent it.
His "Game programming patterns" book is very good as well. Has much better explanations in it than other material you might find. I bought both books (I am aware they are free online, but I think they are worth buying).I would recommend Rob Nystrom's Book on interpreters, which includes a section on parsers. Robert Nystrom is a great educator when it comes to this stuff.
Lex and Yacc are classics. I think https://craftinginterpreters.com/ has been linked in this thread before, if you want to do it manually.How do I learn to write parsers?
I think you meant parser combinator.The parser generator thing
Yes I meant parser combinator for "whatever people do in Haskell", but besides that also parser generators like yacc.I think you meant parser combinator.
It is if you know Haskell and its philosophy.It's really easy.
I want the input format to look sort of like a subset of Ren'Py, without the Python sections and multimedia. The #1 goal is it should be very easy to write and read (have as few nondisplayable symbols getting in the way of reading as possible) and not force retarded behavior. My "competition" isWhat language are you using? Is your input format fixed? If it is possible to write it as JSON you could probably skip a lot of work.
These people are all so fucking tiresome manhttps://pulusound.fi/blog/emacs-bra-size-calculator - A new troonware bra size calculator for Emacs.
Brought to you by this lovely "woman", who includes the usual pedo imagery on her site, disguised as a logo for a rave promoter.
View attachment 9071633View attachment 9071634
To write and share text adventures with tech-illiterate women.
I am a bit confused as to what alternative solution you're providing here.Twine is newbie-unfriendly trannyshit.
...have you used Twine? The only thing it's maybe good for is traditional gamebooks, and even then it's better to write the book in a text file (or several, why not), then copypaste it to Twine, because Twine "source" is not git-friendly.I am a bit confused as to what alternative solution you're providing here.
"Don't use basic web technologies! Instead, use our custom set of macros that are only sparsely documented by our tranny polycule!"No HTML, Javascript or CSS experience needed
I want a sequence of prose followed by choices, and don't want anything else littering up the source code. The guy just comes out and tells you, "Use something else if you're straight". But Chapbook has the same problems, Ink is overthought and unreadable (and their sample html game has an interface bug), and Choicescript is brain-damaged.Dynamic hypertext as a focus
I have a deep admiration for the storytelling potential of early and recent hypertext mediums, such as HyperCard, Shockwave, Flash, and early HTML fiction, and I have kept their versatility in mind when creating Harlowe. Harlowe heavily encourages you to think of a page as a dynamic interactive space, not just a sequence of prose followed by choices. Harlowe encourages you to place links and interactive elements in the midst of prose, not just at the end, and to use them to change the prose in surprising and unusual ways - inserting or removing text in a previously-read paragraph, changing the styling of words, changing just the link itself, and other such effects to reveal new meaning in the text and communicate your story in a manner unique to hypertext. If you would like to explore the storytelling potential of hypertext, it is my dear hope that you will find Harlowe satisfying.
Though, if you would prefer a more traditional, branching style of interactive prose writing, you may wish to use Chapbook or a non-Twine language like Ink instead.
I have actually not been hearing how Europe is handling this anti-intellectual crisis/AI crisis in academia. I see some articles come out here and there from Japan, so I appreciate your perspective! That's unfortunate, but also good to know. That's how some of our professors are feeling and some don't understand why we're now having the discussion on AI and "ethical use" of it in intro courses. I'm learning more towards no one finds these studies trustworthy, and they're riding the money train.It is a problem in all of academia right now. I can't speak to the US, but in Europe, I know for a fact that three are many research efforts that get directly sponsored on the condition that they use and prominently mention AI in their research. The "move fast break things" ethos seems to have seeped well into PhD and postdoctoral projects. I have no idea how anyone in their right mind can find these studies trustworthy, except maybe they just don't, and are either ideologically or monetarily captured to pump out slop.