@typeswitch@gamedev.lgbt avatar

typeswitch

@typeswitch@gamedev.lgbt

they/them 🏳️‍🌈🏳️‍⚧️ #pluralgang
we make games and compilers sometimes

also: https://tech.lgbt/@typeswitch

This profile is from a federated server and may be incomplete. Browse more on the original instance.

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

is there ever a good reason to allocate a contiguous buffer in memory that is greater than 4GB ?

asking for a friend

typeswitch,
@typeswitch@gamedev.lgbt avatar

@exa how does this work? does it really allocate 100gb array in memory and change all the values in memory?

typeswitch,
@typeswitch@gamedev.lgbt avatar

@astrid @exa ah i see! i need to re-calibrate my sense of scale, 'cos i still think of 4GB as a lot of memory. it's not the first time i've heard of computers with >100GB memory but it's still so far from anything i've worked with.

typeswitch,
@typeswitch@gamedev.lgbt avatar

@astrid @exa wow, ok. i just searched around and found someone selling a used server with 128gb for around 450 euros. i should see what i can get my hands on. thanks for opening my eyes to this possibility : )

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

mini-announcement: I've decided to publish Yotta.

Yotta is a forth-like language with a very small core. In the beginning, all you can do is:

  • emit machine code,
  • emit machine code that emits machine code,
  • define new words ... that emit machine code

With just those primitives we define an x86-64 assembler, and from there we use that assembler to define most of a forth.

Check it out: https://github.com/typeswitch-dev/yotta/

typeswitch,
@typeswitch@gamedev.lgbt avatar

In Yotta there are only three primitives:

$XX emits the byte XX (in hex)
^XX emits machine code that emits XX
: A defines the word A

From there, the first thing we need to do is define semicolon (;) which emits the RET instruction. Semicolon is used to end word definitions. We use semicolon to end its own definition.

This is the preamble, the first bit of Yotta code that the Yotta interpreter/compiler runs. Besides semicolon, we're also defining line and block comments with \ and ( ).

typeswitch,
@typeswitch@gamedev.lgbt avatar

After the preamble, there is an x86-64 assembler, written in Yotta. The assembler makes it much easier to work with machine code, as you might expect.

However the assembler is a bit quirky, because it uses a syntax that reflects the structure of the machine code. It's neither intel syntax nor at&t syntax, but a secret third thing.

I won't get into the assembler details, but let me show you how it's used to build a forth:

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

words are pronounced exactly the way they are written, even words in languages that you don't speak. oh and those funny marks above or below the letters? those are just for decoration

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

oh i was so confused how the time had gotten so late

tonight was the switch to summer time

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

a woman who loves two women who love her back and also each other, call that a trêsbien

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

wedlock implies the existence of wedsemaphore

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

if the government just implements UBI starting from tomorrow, without changing anything else, rents will creep up until the UBI amount becomes practically irrelevent, and the goals of UBI will fail. in the end it'll be another transfer of public money to landlords.

we need to implement UBI and establish universal housing and rent controls and tax the shit out of landlords. UBI isn't a magic wand that will solve the problems of late stage capitalism on its own.

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

DOJ antitrust case against Apple has this delicious morsel.

https://mastodon.social/@owa/112134268098124996

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

there once was a lamp that could turn anyone into a woman by merely standing in its light. people came from far and wide to see it, but to their dismay the lamp was rarely lit. for this lamp ran on a special fuel, and that fuel was heavily guarded. it had all been gathered up and stored in a fortress, and that fortress had only one way in or out, through a big iron gate. the only way to get the fuel was to get permission from the person in charge of the gate, the girl light gas keep gate boss.

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

thinking about something i was once told: "everybody has to do things they don't want to sometimes."

there's truth to that, but for a lot of us it's absolutely the wrong message. some of us are so used to putting other people's feelings ahead of our own that we really need to hear the opposite message -- that we're the ones in charge of our own bodies, our own minds, and our own actions. do you do things you hate, because other people expect you to? you can choose not to. you can say no.

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

👋 free algebras
👉 zero-cost abstractions

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

oh no neighbor is listening to music

it's on repeat

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

let's just all go back to irc.

yes really.

typeswitch,
@typeswitch@gamedev.lgbt avatar

where do people hang out on IRC these days...

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

D'antes inferno
Durante's inferno
Depois' inferno

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

when you take a boat and you replace its parts over the years until every part has been replaced at least once, and you put all the old parts together to make a second boat, and then you make the two boats kiss, that's called the ship of theseus

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

"I made a new command line tool"
"Command line tool or programming language disguised as command line tool?"
"...programming language disguised as command line tool"

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

it's my birthday. (-:

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

we should run a universal basic income trial in reverse, where we charge participants a certain amount every month to see if it improves their lives.

oh wait, that's just neoliberalism.

typeswitch, to random
@typeswitch@gamedev.lgbt avatar

in the olden days before calculators you had to rasterize polygons by hand, video games took forever

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • everett
  • ethstaker
  • thenastyranch
  • magazineikmin
  • modclub
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • ngwrru68w68
  • tacticalgear
  • InstantRegret
  • Leos
  • cubers
  • mdbf
  • normalnudes
  • tester
  • GTA5RPClips
  • anitta
  • cisconetworking
  • provamag3
  • lostlight
  • All magazines