𓁟 host1.bitchan.one

What are you working on, /g/?

⧖expiring0/25 kept6d ago

𓀐 @8tgdRF49

⏱ 1w 👍 0

⬆ upvote 0

[⇥] sort oldest ⏱
filter [-]
𓀐 @~?mrW*VW: I don't know man. I just tried to sit on my temple machine and either I have to move as slow as a crippled snail or starting with a HolyC compiler in HolyC might not be a brilliant idea. Not sure tho which one it'd make easier. Choosing a different source or target language. Probably irrelevant, I could target a super small subset first+

⬆ upvote 0↩ reply 0

𓀐 @i~iZoJ5A: >i think your problem is that theres a part of you that wants to do practical shit when another just wants to program for fun yes and some masochistic part of me that wants to make things extra hard. >>whats the best lab to learn stuff i dont know yet? I was just considering this. I did buy the book "writing a c compiler" from Nora Sandler. While this books seems to be good, it forces you to write a lot of stuff yourself. Maybe I'll start with this https://craftinginterpreters.com/ But in HolyC. I once started it in powershell, because it was bored and I think I made it until expr evaluation. I just had to work around implementing the visitor pattern, but that was possible. And if I can work through it, then it should teach me the shit in the vm part hopefully. Then I can move on to C or HolyC compilation+

⬆ upvote 0↩ reply 0

𓀐 @m?5w8atY: >wym? >this doesnt sound like a bad thing It's not. Thinking too much is hard for me rn. So I gotta take snail steps >this i cant follow. yet he used the visitor pattern to evaluate the expressions. What's that? Like virtual base class then just one for each type so you can just visit() and it dispatches to the correct class+

⬆ upvote 0↩ reply 0

𓀐 @CpaqwWNo: Shut the fuck up+

⬆ upvote 0↩ reply 0

𓀐 @*6-8FTnT: and all that for reviving dpt mods dont want to have a dpt? all is clear now. /g/ is a vibeslop NIGGER board with people drinking cum from a bottle we are no longer acceptable here. it is what it is you want to be a class b shitizen here? then stay im leaving. theres no point. i still won, bc i always do but everyone who stays here will automatically lose this place is a complete fucking shithole and now im leaving. mr. c bc fuck this noise and fuck niggerApe i got better things to do than to evade this is motherfucking retarded enjoy your empty board, faggot fucking retard imbeciles+ 1

⬆ upvote 0↩ reply 1

𓀐 @aHJy8-2U: >soilence i told you i always win bc i always do im too retarded to lose thats how i routinely do shit thats supposed to be impossible to the likes of me youre still subhuman though like, literally- inferior by any metric intellectually, in shitposting, and also physically just go home, sharty fucking niggers youre retarded. and inferior its in your genes there is no fixing that fucking sue your parents for not having used a condom short of thet, unironically, just kill yourselves. jump in front of a bus. or shoot a shotgun into your heads. i dont fucking care to be quite honest+ 1

⬆ upvote 0↩ reply 1

𓀐 @njfRq4hQ: why do people insist on writing compilers for imperative languages when you can have much more fun compiling functional languages+ 1

⬆ upvote 0↩ reply 1

𓀐 @aiJknY*F: IDK what the fuck I'm doing, how do you name variables? There seems to be a big focus on 1. keep lines at 80 chars, MAYBE some places say 100 is okay 2. clear variable names, no single char variables, clear function names with multiple words I don't get what I'm supposed to be doing. Both camps seem obnoxious to me. I think you can fit 100 char lines on a 1080p monitor twice side by side. Also for the long ass variable name crowd, I don't get it because a lot of actual C functions are short as fuck, like fgetc. Is it named file_get_char? No, it's called fgetc. You can't have both, what should I actually focus on? I can't read another AI slop article telling me what to do I need you guys to fill me in+

⬆ upvote 0↩ reply 0

𓀐 @?UHXZLEp: FOLKS, please do not listen to her: she is clearly out of her mind and is most likely writing Java. If you want good naming, just look at the Go std lib. Thanks+

⬆ upvote 0↩ reply 0

𓀐 @FEF22ouN: What is the difference between an API and an ABI?+ 2

⬆ upvote 0↩ reply 1

𓀐 @i5AqikEP: Which one of the following qualifies as "AI-generated code"? and which one is the most practiced nowadays? 1) you use AI to learn the basic concepts, but do the actual work entirely yourself 2) you do the work yourself, then use AI just to review/improve the code 3) you try to do the work yourself, but whenever you have a problem ask the AI to solve it 4) you ask the AI to do the whole work, and you just review the code 5) you just ask the AI to do the whole work, and that's it+

⬆ upvote 0↩ reply 0

𓀐 @Y2ig7Ypq: people say the factory pattern is le bad and they hate on java for it but wtf else are you support to do? I have a async file manager library. it needs a callback to create a 'shared' state (i.e. allocate gpu memory for textures and gpu buffers, common hashmap for header files). also it needs a bunch of factory objects to make instances of parers (image parser, font parser, html parser) for each of the files you want it to parse. literally wtf else are you supposed to do? like File_Manager manager; (each inherit from IParserFactory that make instances of Parsers) manager.set_parsers(new Image_Factory, new Font_Factory, new ScriptFactory... x10); manager.shared_parser_factory(new MySharedStateFactory); unless you want to rely on static linking, but that is so weird for a library to require itself to be static and to have you implement a function as part of its initialization+ 1

⬆ upvote 0↩ reply 1

𓀐 @rQN4TFXU: >Bored >No ideas >Don't want to work on anything unless it's meaningful How do I get out of this mindset?+

⬆ upvote 0↩ reply 0

𓀐 @ZR_wG~oG: >/hsg/ - dead >/sqt/ - dead >/dpt/ - soon to be dead It's over bros, it's all over+

⬆ upvote 0↩ reply 0

𓀐 @56j2K?_n: generics are THIS easy in odin+

⬆ upvote 0↩ reply 0

𓀐 @Zh9+~R7x: this is retard's first programming question but please be patient. if I have a thing with multiple properties and I want to put those properties in a table and have a program read the table and store the properties in memory so they can be referred to by other stuff how do you do this? I know the answer is going to be language dependent but is there a general approach to take? from the little I know in many languages an array can only have values of the same type, so for example if "thing" is a car some properties like "top speed" would be numbers but others like "color" would be strings.+

⬆ upvote 0↩ reply 0

𓀐 @**avse4K: You only need 7 colors. 1. Normal text 2. Comments 3. Control flow (if/while/return...) 4. Literal values (optionally 3 slightly different hues for strings, numbers, keywords) 5. Definitions (keyword or name when a type/function is defined, not when they're used) 6. Miscellaneous keywords (const/static/inline...). 7. Macros/meta (#include/#if) Everything else is bloat.+

⬆ upvote 0↩ reply 0

𓀐 @Ubuvhifp: Do AFAB programmers exist?+

⬆ upvote 0↩ reply 0