Guild icon
DDraceNetwork
DDraceNetwork / off-topic
Any languages allowed
Between 2024-04-08 00:00:00Z and 2024-04-09 00:00:00Z
00:42
morning
Avatar
chillerdragon BOT 2024-04-08 02:13:20Z
morning fred
Avatar
Avatar
chillerdragon
morning fred
just another day to think about quitting job
Avatar
chillerdragon BOT 2024-04-08 02:19:02Z
Oh no
02:19
Do you have something better in mind?
Avatar
Avatar
chillerdragon
Do you have something better in mind?
no
02:21
thinking about getting a company and get friends to make smaller games
Avatar
chillerdragon BOT 2024-04-08 02:22:24Z
Self employed
Avatar
or make a networking solution service like photon or normcore
Avatar
chillerdragon BOT 2024-04-08 02:22:37Z
Idk them
Avatar
doesn't matter
02:22
still deciding. vastly different direction
02:23
still need a lot more researches
02:23
and courage
02:24
for a business/developer facing tech service i'd need a lot more money than making funnies for the internet justatest
Avatar
chillerdragon BOT 2024-04-08 02:26:08Z
Xd
02:28
Catxplosion it is weird that I feel like I might consider staying if they doubles my salary but I don't feel like telling them that
Avatar
chillerdragon BOT 2024-04-08 02:30:38Z
Do they know you are not happy?
02:31
Yea asking for money and if you don’t get it create your own company seems like a ballsy move hehe
02:31
But might have a good outcome
Avatar
Avatar
chillerdragon
Yea asking for money and if you don’t get it create your own company seems like a ballsy move hehe
i'm crazy like that
Avatar
chillerdragon BOT 2024-04-08 02:32:21Z
Xd
Avatar
Avatar
chillerdragon
Do they know you are not happy?
they definitely know
Avatar
chillerdragon BOT 2024-04-08 02:32:43Z
Fred being grumpy cat at work
Avatar
they are afraid of talking to me just so I don't break and stop working
02:32
justatest
Avatar
chillerdragon BOT 2024-04-08 02:32:58Z
lmao
02:33
Ask for more money then
Avatar
Catxplosion idk, maybe they don't actually need me
02:33
i don't wanna ask honestly
Avatar
chillerdragon BOT 2024-04-08 02:33:47Z
That’s how companies work usually. Many employees are replaceable
02:34
But you can still ask. Well at least I could. Idk your work culture
Avatar
amogus ye, but I basically single handedly made the entire stack
02:34
i think i'll just tell them i quit and see what happens
Avatar
chillerdragon BOT 2024-04-08 02:34:36Z
Then you are 10x developer and should get money rich
Avatar
actually i already told HR like two weeks ago
Avatar
chillerdragon BOT 2024-04-08 02:34:53Z
What about asking for a raise first
02:34
nah
Avatar
chillerdragon BOT 2024-04-08 02:35:04Z
And then saying you quit if you don’t get it
Avatar
i feel like i'm being under-valued doesn't mean i actually need more money
Avatar
chillerdragon BOT 2024-04-08 02:35:24Z
I see
02:35
Come back to full time tw dev. I value you.
Avatar
even if they double the salary, working 15hrs just to meet ddl isn't what i want to do
02:35
i might
Avatar
chillerdragon BOT 2024-04-08 02:36:07Z
We don’t pay you well either
Avatar
but not until i have a stable business
02:36
kek
Avatar
chillerdragon BOT 2024-04-08 02:36:34Z
Oke gtg. Lemme know what happened.
Avatar
thank you for listening
Avatar
Ok so today there was supposed to be something called "rapture" or something?
05:23
In poland it's just another day lol
05:23
I guess it only happens in the US
Avatar
no idea what rapture is
Avatar
It has something to do with jesus i think
Avatar
Contribute to Nostalgia-09/AeroChat development by creating an account on GitHub.
👍 2
Avatar
Avatar
pilonpl
Ok so today there was supposed to be something called "rapture" or something?
Not many evangelicals outside the US
Avatar
Avatar
アリヂン
Click to see attachment 🖼️
Does this game runs on win10? I create disimager, file has icon, but is says - "Can't run app on this pc". In the internet i found, there's a game for android. Is that right?
Avatar
@Nik_Hard I had a whole message questioning you about DDnet. I was like wtf he's been here since last June, you know how to open this game. May I ask what tf are u talking about? I'm quite drunk and also rather confused why there are static style images In the DDnet discord
08:08
I know u can open ddnet, so what's going on xd
Avatar
Avatar
Blade
@Nik_Hard I had a whole message questioning you about DDnet. I was like wtf he's been here since last June, you know how to open this game. May I ask what tf are u talking about? I'm quite drunk and also rather confused why there are static style images In the DDnet discord
Blade i swear im taking your booze
08:08
angy
Avatar
Melon dude
08:08
There was an offer on this delivery service today
Avatar
Your local drug Dealer is Not a Delivery service
Avatar
Free delivery from any supermarket. So I bought 24beeers while sitting at home, all I had to do was open my door
Avatar
Avatar
Blade
@Nik_Hard I had a whole message questioning you about DDnet. I was like wtf he's been here since last June, you know how to open this game. May I ask what tf are u talking about? I'm quite drunk and also rather confused why there are static style images In the DDnet discord
Yes, I can open ddnet, lol. Why are you think, I can't or where I say, that I can't?
Avatar
Avatar
Blade
Free delivery from any supermarket. So I bought 24beeers while sitting at home, all I had to do was open my door
Nice Hand leak
Avatar
Avatar
meloƞ
Nice Hand leak
I am more than half way though this pack
Avatar
Avatar
Nik_Hard
Yes, I can open ddnet, lol. Why are you think, I can't or where I say, that I can't?
What are the weird pictures about
Avatar
Avatar
アリヂン
Click to see attachment 🖼️
Wat is dis
Avatar
a game, very small game
Avatar
Avatar
アリヂン
Click to see attachment 🖼️
Avatar
visualized like a picture by set every 3 first hex numbers like a pixel
Avatar
what are these
Avatar
game (edited)
08:12
U crazy
Avatar
na, not really
Avatar
are you guys having fun without me
Avatar
yes, join!
Avatar
He's making a 1990 television screen
Avatar
Avatar
Nik_Hard
na, not really
No hate though. Have fun brother!
Avatar
I mean, that is not too hard, to be crazy for that
08:14
the most hard part is find one function in python, to work with bytes, not utf-8
Avatar
Python bite
08:19
🐍
feelsamazingman 3
Avatar
I made the same program, there's a code on c++ :D But without offset on top
Avatar
@Learath2 my first day and I already slept with a girl from brazil, life is literally this easy
11:31
( although there were 100 other people on board doing the same )
Avatar
Avatar
Overlord
( although there were 100 other people on board doing the same )
Doesn’t count
Avatar
Bit there were 0mm between us! LEG TO LEG
11:33
I cant believe people are flying economy class
11:33
Its literally inhumane
Avatar
Avatar
Overlord
I cant believe people are flying economy class
The other option is far outside the budget of most anyone
Avatar
Avatar
Learath2
The other option is far outside the budget of most anyone
Outside mine too
11:35
The worst part was we were "priveleged economy" aka we paid for real cutterly
11:35
The pleb got jealous ( tho I dont have this on flight back...)
11:35
Also im writing all this to ask most important question
11:36
@Learath2 is it possible to not have next hotel reserved in japan?
11:36
When we checked in to first hotel they already wanted us to fill next destination
Avatar
Idk, I don’t even remember filling something like that
Avatar
Avatar
Learath2
Idk, I don’t even remember filling something like that
The joys of illegal migration
Avatar
Going to north Korea?
Avatar
Been 70 km from it or 80, but I have been above @TsFreddie
Avatar
Just tell them you don’t know
Avatar
Im also extremely surprised how dark it is here at 18:40
Avatar
i don't understand
Avatar
Avatar
Learath2
Just tell them you don’t know
Ok i hope it works
11:39
(Ends up in jail)
Avatar
Avatar
TsFreddie
i don't understand
He flew above china
Avatar
@TsFreddie I blessed china from above, with my earthly oresence
11:39
Also lerato was damn right
Avatar
Today literally killed my socks, pantsu and tshirt
Avatar
cool
11:40
bye
Avatar
They cannot be aired have ti ve washed
Avatar
Avatar
TsFreddie
bye
I will jump out of the plane back, to fall on ur ass!
Avatar
@Learath2 are you single
Avatar
Avatar
TsFreddie
@Learath2 are you single
tear 1
11:49
based
11:49
just wanna tell you that I have slept with a girl before
11:50
can confirm i'm very gay after
Avatar
Can’t relate
Avatar
maybe one day
11:53
or you can try to confirm that you are straight with me 👀
Avatar
I’ve been sent to earth to watch other people enjoy life and archive arcane programming knowledge. Nothing more
Avatar
u can go to gym
kek 1
11:54
owo
11:54
doesnt require u to be with someone
Avatar
Don’t need to be strong to archive this worlds knowledge
Avatar
i think it helps
Avatar
Avatar
Learath2
Don’t need to be strong to archive this worlds knowledge
How can U understand ancient greeks then, who honed both body and mind?
11:56
( and were geh )
11:57
Im gonna look for seven eleven my esim starts tomorrow so see U guys soon or never
Avatar
Avatar
Overlord
How can U understand ancient greeks then, who honed both body and mind?
They don’t have programming knowledge for me to archive. I’ve been sent here for a very specific reason
12:03
Keeper of C99
Avatar
thinking about zig recently
Avatar
It’s enjoyable to use. I rate it enjoyable out of c99
Avatar
We've finished porting Turborepo, the high performance JavaScript and TypeScript build system, from Go to Rust.
12:05
wait, wrong article
12:05
In this Turborepo migration update, we explore the innovative strategies, such as the "Go Sandwich" approach and leveraging Zig's cross-compilation, guiding our gradual shift from Go to Rust, aiming to boost performance without sacrificing stability.
12:06
I’ll admit, there was some skepticism about using Zig to build our codebase. Would using Zig and Go and Rust be too much programmer hipsterism? Would Hacker News and developer Twitter judge us too harshly?
Avatar
what is a linker
Avatar
It links stuff
Avatar
zelda
Avatar
Yes, exactly
Avatar
Avatar
TsFreddie
what is a linker
Linking all symbols before the compilation to machine code afaik. Correct me if I'm wrong
Avatar
Avatar
Learath2
They don’t have programming knowledge for me to archive. I’ve been sent here for a very specific reason
did you read some books about C? (edited)
Avatar
Avatar
MilkeeyCat
did you read some books about C? (edited)
Many
Avatar
can you write the most interesting ones pls owo (edited)
Avatar
Depends on the goal and level you are at
12:42
Effective C and Modern C are good books to learn the new stuff from. K&R is a good book for people familiar with other languages learning C from scratch. C Programming: A Modern Approach is good for beginners with no knowledge of other languages
Avatar
Avatar
TsFreddie
thinking about zig recently
heressy
12:42
jokes aside zig comptime is interesting vs macros
Avatar
Avatar
TsFreddie
what is a linker
links object files together, resolves symbols from libraries, etc
12:46
if u dont know the compilation process its
12:47
12:47
xd
12:47
Avatar
Ok im pretty sure
13:11
This could fix worldwide depression
💊 1
13:11
Hear me out
13:11
Affordable tasty food
13:16
what 1
13:16
ROOK ROOK im chinese now!
13:17
Damn asians have tv from all of asia
13:18
Why cant i have swedish news on my porish tv
13:19
They even have CNN to cater to american warfare
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
can compilers produce straight up raw dawg machine code without generating assembly
Avatar
Avatar
Overlord
Click to see attachment 🖼️
Bte this thing was about us warfare too bht in chinese
Avatar
Avatar
MilkeeyCat
can compilers produce straight up raw dawg machine code without generating assembly
compiling is a rly complex thing so its better if its layered
13:20
llvm doesnt work on source code, it works on llvm ir
13:22
you give it the target information, e.g the cpu, abi, os, etc and it will produce optimal code, depending it does stuff like analyzing dead ends, combination of instructions that are the fastest for the same llvm ir instruction in the given context etc and it varies
13:22
it does this by knowing all assembly instruction sizes and such
13:22
also the image i sent is rly rly simplified
13:22
the compiler it self can be further divided
13:22
into frontend and backend
13:22
the frontend has the following
Avatar
Avatar
MilkeeyCat
can compilers produce straight up raw dawg machine code without generating assembly
Yes, they can
13:26
LLVM has an integrated assembler and just straight up writes out object files (edited)
13:26
GCC doesn't, it writes out assembly and calls an external assembler
Avatar
Avatar
Peter0x44
GCC doesn't, it writes out assembly and calls an external assembler
i just wanted to ask kek
Avatar
Avatar
MilkeeyCat
i just wanted to ask kek
And I answered?
Avatar
  • lexer, turns text into tokens
  • parser, like LR(1) or LALR (this is the so called lex and yacc combo): interpretes those tokens and builds a abstract syntax tree, the AST
  • lowering (optional): to make code generation easier, you can introduce a intermediate representation (or more than one, rust has 3-4) called IR
  • code gen: this converts the language IR into the backend IR or assembly directly if you skip that, but its better to have a backend ir, if you use llvm it will me LLVM IR, i think for gcc it is GIMPLE
  • backend: based on the target information, runs optimization passes on the IR, which typically has SSA form, single static assigment, which allows easier optimizations, and produces the assembly (object file)
13:27
then the linker
Avatar
Avatar
Peter0x44
And I answered?
yeah, i wanted to ask if gcc generate assembly first
Avatar
Avatar
Peter0x44
LLVM has an integrated assembler and just straight up writes out object files (edited)
nah llvm has a assembler
Avatar
Yeah, gcc does
Avatar
llvm-as
Avatar
Avatar
Ryozuki
llvm-as
Yeah but in a normal compilation it doesn't write out an assembly file and then call the assembler on it
Avatar
it is used (as a library) by other componentats: also true
Avatar
Avatar
Peter0x44
Yeah but in a normal compilation it doesn't write out an assembly file and then call the assembler on it
did u use llvm
Avatar
I think this is what clang does
13:29
clang is a compiler driver
13:29
it unified all the tools
Avatar
I guess I should look under strace to see what it's invoking
Avatar
it also has the clang frontend which parses and generates llvm ir from c code
13:29
my point is, it maybe doesnt invoke the llvm-as as a cli tool but uses it as a library
Avatar
That's exactly what I was saying
Avatar
actually i can tell u the exact function they use because i use llvm
Avatar
^ this is the boy that fears he will burn out
Avatar
pub fn module_to_object( module: &Module<'_>, opt_level: OptLevel, ) -> Result<Vec<u8>, LLVMCompileError> { static INITIALIZED: OnceLock<()> = OnceLock::new(); INITIALIZED.get_or_init(|| unsafe { LLVM_InitializeAllTargets(); LLVM_InitializeAllTargetInfos(); LLVM_InitializeAllTargetMCs(); LLVM_InitializeAllAsmPrinters(); LLVM_InitializeAllAsmParsers(); }); unsafe { let llvm_context = LLVMContextCreate(); let op = module.as_operation().to_raw(); let llvm_module = mlirTranslateModuleToLLVMIR(op, llvm_context); let mut null = null_mut(); let mut error_buffer = addr_of_mut!(null); let target_triple = LLVMGetDefaultTargetTriple(); let target_cpu = LLVMGetHostCPUName(); let target_cpu_features = LLVMGetHostCPUFeatures(); let mut target: MaybeUninit<LLVMTargetRef> = MaybeUninit::uninit(); if LLVMGetTargetFromTriple(target_triple, target.as_mut_ptr(), error_buffer) != 0 { let error = CStr::from_ptr(*error_buffer); let err = error.to_string_lossy().to_string(); LLVMDisposeMessage(*error_buffer); Err(LLVMCompileError(err))?; } else if !(*error_buffer).is_null() { LLVMDisposeMessage(*error_buffer); error_buffer = addr_of_mut!(null); } let target = target.assume_init(); let machine = LLVMCreateTargetMachine( target, target_triple.cast(), target_cpu.cast(), target_cpu_features.cast(), match opt_level { OptLevel::None => LLVMCodeGenOptLevel::LLVMCodeGenLevelNone, OptLevel::Less => LLVMCodeGenOptLevel::LLVMCodeGenLevelLess, OptLevel::Default => LLVMCodeGenOptLevel::LLVMCodeGenLevelDefault, OptLevel::Aggressive => LLVMCodeGenOptLevel::LLVMCodeGenLevelAggressive, }, LLVMRelocMode::LLVMRelocDynamicNoPic, LLVMCodeModel::LLVMCodeModelDefault, ); let mut out_buf: MaybeUninit<LLVMMemoryBufferRef> = MaybeUninit::uninit(); let ok = LLVMTargetMachineEmitToMemoryBuffer( machine, llvm_module, LLVMCodeGenFileType::LLVMObjectFile, error_buffer, out_buf.as_mut_ptr(), ); if ok != 0 { let error = CStr::from_ptr(*error_buffer); let err = error.to_string_lossy().to_string(); LLVMDisposeMessage(*error_buffer); Err(LLVMCompileError(err))?; } else if !(*error_buffer).is_null() { LLVMDisposeMessage(*error_buffer); } let out_buf = out_buf.assume_init(); let out_buf_start: *const u8 = LLVMGetBufferStart(out_buf).cast(); let out_buf_size = LLVMGetBufferSize(out_buf); // keep it in rust side let data = std::slice::from_raw_parts(out_buf_start, out_buf_size).to_vec(); LLVMDisposeMemoryBuffer(out_buf); LLVMDisposeTargetMachine(machine); LLVMDisposeModule(llvm_module); LLVMContextDispose(llvm_context); Ok(data) } }
13:30
this is how i compile
Avatar
Avatar
Ryozuki
actually i can tell u the exact function they use because i use llvm
Gcc has no such library, so the driver creates a temp file and then calls the assembler on it (edited)
Avatar
my MLIR code (edited)
13:30
to a object ifle
13:30
file
Avatar
I don't think LLVM needs such a step
13:31
That's what I was saying
13:31
Is my impression here correct?
Avatar
Avatar
Peter0x44
Gcc has no such library, so the driver creates a temp file and then calls the assembler on it (edited)
i think gcc can skip the temp file with -pipe
Avatar
Whether it pipes the assembly or not is still an extra step to generate it
Avatar
llvm also generates the assembly
13:32
u cant skip it
13:32
the assembly is the object file
Avatar
Okay, but it doesn't need to do it as a text format
13:33
i doubt gcc needs to either
Avatar
GCC's approach does need that
13:33
it generates .o files
13:33
.o files are object files
13:33
assembly
Avatar
The driver calls the assembler to do that
Avatar
they arent textual
Avatar
Basically cc1 generates a ".s" file and then the driver calls the assembler to make the object file
13:34
LLVM does the assembler step internally as a library
Avatar
is that rly true
13:34
It also causes problems with the actual syntax, to this day I think you still can't have a global variable or function named "and" with -masm=intel
13:34
But att works fine
Avatar
ok i dont know much gcc internals xd
13:34
but thats odd
13:35
in the snippet i sent
13:35
u can get a text assembly by changing the enum LLVMCodeGenFileType::LLVMObjectFile,
13:35
to llvmassemblytext or something
Avatar
I assumed he was asking "is it necessary for a compiler to make a .s file first" (and the answer is no)
13:36
But still some compilers do that
13:36
well i explained the full process
13:36
its counter productive to go from a AST to assembly
13:36
without intermediate steps (edited)
13:36
its way harder to optimize
13:37
SSA is the key
13:37
In compiler design, static single assignment form (often abbreviated as SSA form or simply SSA) is a property of an intermediate representation (IR) that requires each variable to be assigned exactly once and defined before it is used. Existing variables in the original IR are split into versions, new variables typically indicated by the origina...
Avatar
Avatar
Peter0x44
It also causes problems with the actual syntax, to this day I think you still can't have a global variable or function named "and" with -masm=intel
Here, try this: int and; int main(void) { and = 1; }
13:38
gcc -masm=intel bruh.c gives an assembler error
Avatar
thats a bit disapointing from gcc tbh
Avatar
clang doesn't care because it doesn't go through the "text assembly" step
Avatar
Avatar
Ryozuki
thats a bit disapointing from gcc tbh
Yeah it's a bit cursed
13:39
Other weirdness in internals: for parallel LTO gcc creates a temporary makefile and invokes make on it (edited)
Avatar
I did not expect it to work that way
Avatar
do u make compilers with gcc?
Avatar
or u contributed to it
Avatar
Yeah
Avatar
how u know this
13:40
ah
Avatar
I have contributed
Avatar
im a llvm contributor owo
13:40
but i like gcc license more
13:40
but making ur own compiler is way easier with llvm
Avatar
No doubt lol
Avatar
its just so much more modular
Avatar
Llvm code is much much easier on the eyes
13:42
Reading gcc source is like reading moon runes
Avatar
gcc has some "weird" formatting like: if (x) { printf("whatever"); } (edited)
😬 1
13:42
Also a bunch of mixed tabs and spaces
Avatar
llvm uses c++17 btw
Avatar
I think gcc is keeping to C++11 still to avoid adding an extra bootstrap step But idk
Avatar
also idk hwo gcc tests but
13:43
llvm got some nice tools
Avatar
Gcc uses some thing called "dejagnu" which is tcl
13:44
It's a pain
13:44
I hate the build system too
Avatar
llvm uses cmake xd
Avatar
I think gcc has a way higher "bus factor" than llvm
13:44
But the devs are nice people
13:44
llvm bus factor is apple
13:44
xd
Avatar
Avatar
Ryozuki
llvm bus factor is apple
Surely Google as well
13:49
If they are using clang as system compiler for Android (edited)
Avatar
@gnu when unblock twintri
18:24
eclipse!!!
Avatar
Really cool
Avatar
Im being cucked by mobal esim provider
Exported 303 message(s)