Better HN
topnewbestaskshowjobs
Log inSign up

WilliamBerglund

11 karma · joined Mar 18, 2023 (3y ago) · 5 submissions

Submissions

comment 3y ago · link · parent

Only tangentially related, but this documentary is quite good https://www.imdb.com/title/tt2475454/

comment 3y ago · link · parent

My favourite demo of all time https://www.pouet.net/prod.php?which=56112

It features programming in multiple languages: cobol, fortran, lua, pascal, ruby, vala, ada, d, java, objc, scheme, visualbasic, asm, javascript, ocaml, python, shell

Big shame no videos of it are up on the internet anymore, I've looked quite hard, but nothing. The code is available here however: https://launchpad.net/binaryofbabel/+download

comment 3y ago · link · parent

Yes, tiktoken, here's a client side visualizer for it

https://github.com/functorism/gpt4-tokenizer-visualizer

comment 3y ago · link · parent

Hello (author here), I found the OpenAI tool (https://platform.openai.com/tokenizer ) for visualising tokens really useful when working on token optimisation strategies (and other token related tasks). But unfortunately that site doesn't support the tokeniser that GPT4 uses (currently).

So I threw together a stackblitz that uses the js-tiktoken to do the same thing.

Hopefully it will be useful for someone else too!

Try it here: https://react-ts-h9yrjh.stackblitz.io/

comment 3y ago · link · parent

D does this "the right way", which is to say free of side-effects.

https://tour.dlang.org/tour/en/gems/compile-time-function-ev...

https://wiki.dlang.org/Compile-time_vs._compile-time

You're supposed to be able to trust the compiler, you can't trust people. (https://forum.dlang.org/post/po2734$20mq$1@digitalmars.com)