Show newer
the Hearth :ms_agender_flag: boosted

oh hey #dev nerds

black socialists in america is working to design a better online meeting platform and could use help with money but also coding!

@starkatt This led me to realize that a somewhat flippant but probably accurate description of our spirituality would be "I believe in gods *I* haven't even heard of"
-F

@packbat This will vary based on the phone, usage patterns, and the age of the battery; generally a new one will last several days on a charge, but an aging battery or using intensive apps will make it much shorter.
-F

did something happen to the uk royal family??
-F

re: Serious reply, re: Elixir 

@noiob @socks it's a calculator, what do you expect?
-F

re: Serious reply, re: Elixir 

@noiob @socks i think it's probably a habit from when we taught ourselves how to code on a ti-84

ti-basic doesn't have constants
-F

re: Serious reply, re: Elixir 

@noiob @socks we taught ourselves how to program on a TI-84 and now primarily write code for tiny microcontrollers that cost $4, so entirely different worlds here
-F

re: Serious reply, re: Elixir 

@socks @noiob if you say `int x = 3`, that's (bar any compiler optimizations) reserving some amount of memory (4 bytes on modern computers) for x to occupy, until it's done being x and can be used for something else (figuring out when it's done being x can be a hard problem if you don't explicitly say it's done being x, this is the cause of many memory leaks). If x is never anything other than 3, it would be more efficient to just use immediate opcodes instead of 1) taking up some memory and 2) requiring additional memory fetches (which are way slower than processor cycles)
-F

re: Serious reply, re: Elixir 

@noiob @socks I don't see the point in occupying a bit of memory with a constant when you could just use a macro

i imagine compilers probably optimize that out anyway but eh, habit
-F

re: Serious reply, re: Elixir 

@socks ah, so like the GENERATE block in VHDL! yeah we find those annoying to comprehend and debug too
-F

re: Serious reply, re: Elixir 

@noiob @socks when I say how people usually use them I'm talking about things like PI 3.14159f
-F

re: Serious reply, re: Elixir 

@socks I'm guessing in this context it means something more complicated than how people typically use C preprocessor macros, then?

oh and assembler macros are hard to program without, i don't want to have to remember which memory location we stored this variable in and every location we referenced it in case we have to change it
-F

re: Joke reply, re: Elixir 

@socks big emi....
-F

we're in the process of doing this now and wow this nand dump takes a long time (exacerbated by the fact that it filled up our 16 gb sd card and errored so we had to find a larger sd card and start it over, though)
-F

Show thread

re: Elixir 

@socks out of curiosity, what do you not like about macros?
-F

some words, the adjective form and noun form have *very* different connotations

just look at "artificial" vs "artifice"
-F

Show older
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!