#🪅-progaming
1 messages · Page 67 of 1
null
YOP
zig
nah the amount of operators zig has is fucking crazy ngl
hate writing grammar
https://x.com/secjack_/status/1912670435906580594
yes bro very beautiful
idk quite beautiful to me
now it looks like zig xd
i agree
i'll take it 
is it fine if i deviate from ebnf a bit
Nope illegal you have to stick to it 100%
i dont wanna add TOKEN_whitespace everywhere so im like mentally making "if there's a comma between two rules a whitespace is allowed", cause wikipedia says , is used for concatenation
Why do you have whitespace as a token
Usually you filter out whitespace at the lexer
^^
your rules should look like
"fn" <identifier> "(" [ <argument_list> ] ")" [ <block> ]
thats what they look like
good
@valid jetty
hiii
where is daily elle yap..
i am on mangadex
now add jit
im not done yet with my 205 instructions
lineUtil.ts: Lines 34-56
export function getNumberAndColumnFromPos(text: string, pos: number) {
const lineInfos = createLineNumberAndColumns(text);
if (pos < 0) {
return { lineNumber: 1, column: 1 };
}
const index = binarySearch(lineInfos, info => {
if (pos < info.pos) {
return -1;
}
if (pos >= info.pos && pos < info.pos + info.length + 1) { // `+ 1` is for newline char
return 0;
}
return 1;
});
const lineInfo = index >= 0 ? lineInfos[index] : lineInfos[lineInfos.length - 1];
if (lineInfo == null) {
return { lineNumber: 1, column: 1 };
}
return { lineNumber: lineInfo.number, column: Math.min(pos - lineInfo.pos + 1, lineInfo.length + 1) };
}
what tool are you using to get timings
vscode js-debug profiler
idk what it uses under the hood
please work ahh moment
hopes and prayers
it’s the emoji for this channel
also i can't remember any other emoji that is not using english letters or numbers
can't find it because of that
why doesn't it ignore diacritics
i had to inspect element it to copy it to find out what it was
Penis operator
with cancer
:= is the best pascal and go feature
What about python
python stole it probably
i dont see why it even needs to exist, why couldnt they just make x = y an expression instead of making a seperate expression for assignment
it wouldnt break backwards compatibiity because before you couldnt put assignments in expressions and now you can
idk
i meant ::= in ebnf not :=
::= is just alien penis operator
yop i love penis opperator
im going to call this the penis operator in the icypeas docs
opperator*
i know that guy
somehow no one found this issue before it got locked except me and sepruker
and thomas my g
i wasnt paying attention to the year and assumed loremly got it locked
yeah i think it gets locked after exactly a year of inactivity
Type Inference
Explicit Type Annotations
Types can be explicitly declared using : <type> syntax:
let
x : u32 = 0
in
...
The penis operator
The compiler can automatically infer types using the penis operator :=
let
x := 0 -- Inferred as u32
in
...
Function Declaration Simplification
The penis operator allows omitting explicit function type signatures:
Original (explicit types):
x : int int
x a = a * a
With type inference:
x a := a * a -- Inferred as (int int)
im putting this in my docs
ebns is = not ::=
oh thats normal bnf
close enough
youre not compiling it so you dont have to follow the syntax
Can't you just leave it without type annotation?
It uses u32 by default
y
i could but i want to separate declaration from assignment
foo : type = value is the syntax for declaration and you can omit the type
foo = value is the syntax for assignment
foo : type = value is close enough to
foo : type type
foo = value
the penis operator actually makes sense tho
@valid jetty i got a B in math
i win
i won in file
life
i just an A on hardware development finals for a perfect gpa
i love migrating the entire ui to a different language and breaking most of the program in one commit https://github.com/eagely/voice-frontend/commit/055ef97d07043e468b2234d6bcbb2268b6c2b7bd
the main stuff still works but its almost unusable in this state
wait i thought the voice assistant thing was done
the backend was the diploma thesis which is done (its really not but nobody is actually gonna try it and notice the flaws, and from the outside it looks complete and it does work) but we have a parallel running project which we were supposed to do on wednesdays in school, but i didnt, so im doing it right before the deadline
well really this is also complete but its terrible and i dont have much else to do so id rather secure the A
you could work on icypeas
i spent the whole year working on 1.0 grades im not gonna give up now
ehhh who cares about grades
im gonna fail physics and further maths and i dont really care anymore lol
are you in form 6
yes
ya i’m in y12
well
in uk standards at least
idk if it’s the same in other countries
does uk have yr 13
i’m gonna be in uni at 16 :3
i wish
i wanna get out of this stupid sixth form so i can just study textiles or computer science full time
reading this chat has really made me want to write a compiler over the summer
instead i’m stuck learning about the photoelectric effect and beta decay
it’s a really good idea you should totally do it
not only is it a fun exercise but you really learn how a programming language works intuitively
i totally recommend
i compiled a list a while ago in a computerphile video of the things you learn
since then i have more to add but whatever
like as a prerequisite? I really struggle with videos for actual learning, reading all the way for me
uhhh this list
nope, what skills you get out
of this exercise
i see
I’m thinking of writing something with cranelift and gpu block with part of the ast being emitted as metal
interesting cranelift looks like somewhere in between llvm and qbe
written in rust btw :^)
cranelift is like llvm minus the bajillion host targets
and some optimizations
yeah lol
i was looking into llvm the other day
they have an amdgpu target
no examples whatsoever on how to run it
i wonder if it enforces ssa form or if it just lets you write whatever and corrects it for you or not
(it = cranelift)
qbe lets you write incorrect ssa form and it just fixes it for you, llvm doesn’t do that
some docs say you can only use amdgpu isa on linux, but llvm docs say you can run it on windows using <tool name> but <tool name> is an undocumented project by amd used for their vulkan interop
llvm like assumes the knowledge is supposed to spawn in your head
First and foremost, phi instructions are NOT necessary when writing a frontend to QBE. One solution to avoid having to deal with SSA form is to use stack allocated variables for all source program variables and perform assignments and lookups using Memory operations. This is what LLVM users typically do.
Another solution is to simply emit code that is not in SSA form! Contrary to LLVM, QBE is able to fixup programs not in SSA form without requiring the boilerplate of loading and storing in memory. For example, the following program will be correctly compiled by QBE.
❤️
this is part of what i dislike in big project
contributors are sparse and only a few know the code structure/api
you either spend hours going through the code for a simple problem or you give up
docs are like non existent
llvm is big and a bit scary to me
(this is also what elle does too because for SOME reason qbe does not allow you to get the address of a temporary. so you HAVE to do the llvm thing even if you don’t really need to, if you want to be able to take the address of a stack variable)
if you look at it as "just an assembly emitter" its actually quite simple (ofc dont actually look at the code, thats horrible)
yes f(ir) -> asm
true
qbe is veeee😭ry good for beginners imo
you don’t even need to put function definitions in the ir it’ll just allow calling any function and figure it out at link time
currently writing macros
thats rust
test code for the parser generator
oh are you not gonna roll up your own parser
im planning like
parser def -> glalr(1) parser generator -> parse/lex tables
and the actual compiler will just embed the tables and use a generic function that reads input and lexes+parses based on the table
i would handroll something like a recursive descent parser but i've always wanted to write a glalr(1) parser generator
sure
veeee 😭
@hoary sluice is this a joke https://www.youtube.com/watch?v=Ebyesd3mPAA
Most people will never crack a Google interview, but in this video you'll see exactly how an ex-Google, Amazon, and Uber engineer does it. Watch him break down a real Google coding question in real-time, revealing the mindset, strategy, and problem-solving skills that separate the top 1% from the rest.
🏆 INTERN SUCCESS ACADEMY
The COMPLETE ...
there is no way its this easy right
why is he taking so long to answer it
|| ```py
from collections import defaultdict
from bisect import bisect_right
def solve(s, ws):
ci = defaultdict(list)
for i, c in enumerate(s):
ci[c].append(i)
def subs(w):
pi = -1
for c in w:
if c not in ci:
return False
il = ci[c]
p = bisect_right(il, pi)
if p == len(il):
return False
pi = il[p]
return True
return sum(subs(w) for w in ws)
s1 = "abcde"
ws1 = ["a", "bb", "acd", "ace"]
print(solve(s1, ws1))
s2 = "dsahjpjauf"
ws2 = ["ahjpjau", "ja", "ahbwzgqnuk", "tnmlanowax"]
print(solve(s2, ws2))
maybe i could get a job at google 🙏
me
Slopsquatting is a type of cybersquatting and practice of registering a non-existent software package name that a large language model (LLM) may hallucinate in its output, whereby someone unknowingly may copy-paste and install the software package without realizing it is fake. Attempting to install a non-existent package should result in an erro...
such a funny name
how
im thinking if i should secretely compile to haskell and use their giant ecosystem as a backend
"secretly compile to haskell" in an OSS project is insane but you go girl
that would make icypeas a transpiler tho,,
also why are you awake at 6am..
why not
that implies you either didnt sleep or just woke up (in which case are you EMPLOYED??????????????)
i slept like 8 hours
oh
speaking of employment i need to make a resume todey
noone could ever force me to wake up at 6am if i didnt have school to go to
you have no right to complain about peoples sleep schedule
:3
you literally never sleep
i have to infer it from the solution cause a cba watching the video
why are all googlers indians
given a string s (can be empty) an an array of words, find the number of words which are substrings of s
so for "abcde" given ["a", "bb", "acd", "ace"], there are 3
index 0, index, 2, index 3
oh thats like the most popular leetcode problem
lmao
idk why it took this guy so long to answer
and why hes typing like excessively long variable names and making several functions
array.count { it in string }
wtf is he WRITING
if you tell me this is slow i will report you to hr for mental abuse
no not quite
i did subsequences i think
yeah
it can be missing out parts
the approach to make a hashmap out of indexes is smart so what im wondering is how he figured that out but took almost the full time allocated to solve the problem
i first discovered that method of speedup entirely on my own in an entirely different environment back in march 2024 lol
specifically https://bit.ly/fastFindByProps
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
its probably really common tho
i think ive done that in aoc before
or at least tried
@hoary sluice read #80-#233 lmao
i was proud of coming up with that completely on my own
lmao
reading it again now, im pretty sure the time complexity is off but whatever
i give up
there's some electron bug that crashes before this breakpoint can be hit
i have no fucking idea how to find the cause
so instead of doing an n^2 search u do a m*n mapping where m is much smaller
did i get the time complexity right
its not n^2
its n*k, n is the length of the modules array of objects with keys, k is the number of keys you wanna search for in each object
you search the list once and for ehery appearance of element 1 you search it again
not quite
if the list holds a bunch of objects with like various keys, and you search for keys foo and bar, you will loop through every item in the list, and then loop through every key to see if foo and bar are in the object
youre never looping through the objects twice
(or rather, loop through foo and bar to see if theyre in the object, looping through every key is a bad idea)
so like
[
{
foo: 1,
}
{
foo: 2,
bar: "x"
}
]
``` n is 2, and if were searching for just "foo" then k is 1, which means we loop through every module and then loop through every one of the keys were searching for until we find an object that has all of them
if you search for "foo" and "bar" then k is 2, so you loop 2 times each item in the list * 2 times for each key were searching for in the objects
i hope that makes sense idk
this is a really cool algo, i was thinking more of saving actual indices of an array in a hashmap (1:1 mapping, not keys in an object) so you could do map[value] = index and then reverse search it but this doesnt work if you add or remove items in the array and i dont think there has been an actual aoc problem where ive used this
yeah its really cool, and it does allow for reverse searching like this
but specifically for objects it allows finding an object in O(k) time because you just find all the indices of every object and then see which ones exist in all 3 keys's sets
isnt that the same complexity as the hashmap
nope because you pay this cost every time you want to search for a module
for the hashmap you do m*n once then just O(k) every search
oh you save the map?
yeah
alr
and the speed clearly shows it (although i think JS jit is helping a lot here)
this looks like he was vibe coding it and tried not making it look vibe coded
even in jitless hermes its faster
or copied the solution
computeIfValide
so it looks legit
i think for how long it took him its legit yeah
if it was vibe coded hed be right on and ready to start coding it
computeIfValide 🥖 🇫🇷 🥐 💣 💥
especially with that fuck leetcode thing
you can delay to make interviewer think u were thinking
yeah this thing https://www.interviewcoder.co
Interview Coder is an AI-powered tool designed specifically for Leetcode interviews. Get real-time coding assistance and improve your technical interview performance.
true
idk im not a recruiter but he seems to be taking his sweet time to solve a 5 min problem
i think hes done this problem before and is stretching it out on purpose
also how and why are you awake at 6:40 if you were also awake at 2
that doesnt make it better
(i have exams starting like a week into may its so over)
no, your clock is just wrong
lol what
its 6:49 everywhere
whattt
yep
no way,,,,
@deep mulch can vouch (it will be 6:49 when he sees this)
the new UK supreme court ruling states it is now always 6:49am forever at all times
no more fun
nono the new uk supreme court ruling states there are no timezones and everyone follows whatever i say
currently we follow central european standard time
ah of course
anyways being awake at 5:50 isnt any better
ive stayed up past 4 once in my life idk how u do it
when youre 20 people will give up their seat for you thinking youre elderly
will you fix your sleep when you get a job
i dont think thats gonna happen lol
you turning 20 or people giving up their seat?
uhhhhhhh
if i go to work at arm they have a very flexible working schedule such that i can show up for work at 23:00 and leave at 7:00am
working at arm sounds like either maintaining legacy asm or doing linux arm support
but to be honest i have no idea if ill make it to 20 lol
big number 4 years away
make Rosie sleep
i was 14 yesterday
its 2 am
you're still 14??
i meant 6:59
typical american math
she said 20
nop
ok
I don't think Rosie will survive on 1 second of sleep
zoot cant count past 3
@valid jetty
zootie whats 9+10? (hint: its not 19...)
yea
3
@hoary sluice do you get this please tell me you get this
zoot is a dirac impulse
@valid jetty
have you learnt function mappings yet
like what formally defines a "function"
in maths
rosie 11 is too young for discord
like how f(x) = x^2 has no inverse because its a many (inputs) to one (output) because -2 and 2 both give the same output of 4
and the inverse is a one to many mapping which is not a function
that thing
the sands of time drag you down @rosie.pie
ik what the inverse of a function is but what does that have to do with 1, many
Rosie (11) will go to sleep
you have to decrement the age by at least 1 every message
yes
oh i forgot you cant count
the mappings of functions are defined as "how many inputs does this output map to? one? or many?"
^
oh
it was never funny cause ur the only one who got it...
@valid jetty @valid jetty hiii
😭
study more math..
i know that math just not in that form
ik function mappings but not what 1, many means
(math is taught in german)
(we never actually discussed this i dont think)
horror
so you discussed how x^2 + y^2 = r^2 is not actually a function because if you write it in the form y =, you get a one to many function, just never used the terminology "one to many" and "many to one"?
no we learned what an inverse is and why some functions dont have one (many inputs per output)
yes it is because you never specified what the variables meant
@valid jetty
rosie go to sleep
yeah ok
@valid jetty don’t sleep btw
go to sleep
ok
i have been for like ages
@valid jetty go to sleep
No but like why does it suddenly appear again... I thought they wouldn't add them back
secret
It was Guinea pig appreciation day
Did you appreciate a Guinea pig or something
It was also national cherry day
Rosie would rather die than sleep
Additionally it was world snake day
What was so coveted about this day of yours @valid jetty
y
why
It's also called injective
And function is injective when \forall x_1, x_2 \in D_f: (x_1 \neq x_2 \implies f(x_1) \neq f(x_2))
And when it's injective then it has inverse
And each strictly monotonic function is injective that means it has inverse
i hate opcodes i hate opcodes i hate opcodes
it will become the end of the universe before rosie reveals what it is
you will NEVER know unless you break into my house, kidnap me, tempt me with cats or mizuki plushies, then i might confess (100% chance)
what if I am already in your walls
you are so me
hmmmmm
are you planning to kidnap me
idk maybe
smh
Did you know? In most jurisdictions you can't legally kidnap someone without their consent
@grok is it true
this can’t be
what happened 😭
fortniteitemshop
oh i didn't knonw i had access to that lmao
why are u using default [user@hostname pwd] prompt
its so ugly
yes why not change it
kinda hypocritical of me to say that because rn im using the default zsh prompt
yea
what should i use?
well atleast absolute paths in my prompt would be good
make a custom one
user@hostname pwd >
with colors
or use zsh and smth like starship or powerlevel10k
i tried to customize mine on windows but it always looked like shit 😭 how do yalls look so good
most debian and debian-based have quite a nice bash prompt
windows 😭
your 7th word gives your answer
i remember writing a prompt for pwsh (it sucked)
well writing it did
the prompt was alright
starship or ohmyposh seems good
though the first one was so slow for some reason
yeah
me when i username@hostname:pwd$
aids
pretty much every debian-based distro uses it for some reason
function prompt {
Write-Host -ForegroundColor DarkRed -NoNewLine "["
Write-Host -ForegroundColor Yellow -NoNewLine "$env:USERNAME "
Write-Host -ForegroundColor DarkMagenta -NoNewLine "$(Get-Location)"
$branch = git branch --show-current
if ($?) {
Write-Host -ForegroundColor DarkGray -NoNewLine " $([char]0xe725) $branch"
if (git status --porcelain) {
Write-Host -ForegroundColor DarkGray -NoNewLine "*"
}
}
Write-Host -ForegroundColor DarkRed -NoNewLine "]$"
return " "
}
i believe it’s mostly slow because of stuff like lang version git branch and other stuff
how do u have touch
is it alias
either pwsh alias or https://github.com/uutils/coreutils
Cross-platform Rust rewrite of the GNU coreutils. Contribute to uutils/coreutils development by creating an account on GitHub.
i had that installed
touch makes so much more sense when you look at what it was actually made to do
it's made to update timestamps it looks like
huhhh
so it touches the file to make it update modification dates to current without actually modifying it
hence touch
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.
my goddd initramfs builds take so long
average polish programmer on twitter
he's not wrong
its not difficult to make a performant electron app
in the same way that its not difficult to make ur electron app inhale resources
☠️ 😂
its an issue with modern web development, than electron
because browsers will simply suspend the resource inhaling tab to reclaim resources
electron cant do that
people simply use electron when its not needed
but in places where it is needed, there's little that can outperform a WELL WRITTEN electron app
even shit as straight forward as video players
not to be confused with simple ofc
beauty is subjective
no colors tho
he's right
electron isn't inherently bad
wheres the syntax highlighting 😔
maybe, personally i've never used it before in programming; people just shit on it
breuuugh
gotta love when people shit on something because "its hip to shit on something"
electron is made bad by the slop sites companies throw at it
shocker: the same bloated nextjs crap that runs like shit in your browser also runs like shit as an electron app
except the browser will handle it better, because it will suspend it or dispose of it the moment u tab out
electron persists
:^)
to whoever made yml
PERISH
electron is okay but my poor ram
react native
100MB isnt a lot, but the ram is a giga problem
its not even CEF
its just full chromium
oh right
tbh storage size became irrelevant
but the ram is a giga problem
everyone should have plenty of storage nowadays
especially in windows
where windows pages the chromium assets in the background, doesnt report it, and in actuality each electron app uses an extra gig of ram which is in the mapped files
because yeah, its not the app using the ram, its windows to cache the app
idk i think discord being electron sounds fine 
and a lot of people don't
it has 0 reason to be tho
it sounds really hard to maintain a non-web app like that to me
if not for electron discord probably wouldn't have a native linux version
and pwas are just electron with a different runtime and less native integrations
oh man
i've never seen someone so wrong in my life
really really not
a webpage gets its own window
yes, but you dont spawn an extra 40 processes to do that
it re-uses existing processes
it's chromium there's a billion processes per tab
plus i then have to deal with the ugly as hell titlebar chromium uses for pwas
oh yeah its awful, unusable
that's assuming i even use chromium, which i don't, and firefox doesn't have pwas
that's uglier than what i was expecting actually
many non electron apps are also 100mb
it's pretty normal for apps to be around that size

that's true
chromium is a lot worse for mapped file caching on windows tho
but some electron apps would take way less if done native and done well
non-issue on linux doe
electron is native
wtf is bro chatting
by native they obv mean compiled app code
electron is stupid native
who

you are clearly the joker
you likely mean that electron runs js which is ran in a VM as its interpreted
which automagically disqualifies half of all apps ever made
browser engines look and run the same everywhere in a way that cannot be called native to any specific platform
and if you're trying to run native code IN THE INSECURE UI, then you've got other issues sir
cuz electron's renderers are not even half of the framework
and you can very easily compile all the js to v8 bytecode and load the bytecode instead of the js
idk why all electron apps dont do that tbf
bytenode my beloved
"sir"?
whos that
sir
sir
yes its slang, derogatory use of sir used when some1 chats shit like they know shit, but they in fact dont know shit
they pointed it out cuz look on their profile
thank you for coming to my ted talk
you did not just say "sir (derogatory)" lmaooooo
sir (derogatory)
what does this even mean
nb
I meant womxn
slir
xxxxx get it right
they broke it completely doesnt even update when i play a song 🔥
insane
why does rwrv sound like a file permission
why is the script tag touching kids 💔
because that's not what that means in that context
does @fluid temple approve of this statement
i think it does
it's short for number once, actually
im still waiting for some mfer to set their pronouns to null / undefined
i identify as /dev/null
idk
yeah that would be extremely funny haha
in the given context, yos
nobody likes js enough for that
my pronounce are dev/null
i know shit but i can't explain shit properly
~/dev/null
personally my pronouns are Option::<&str>::None;
big e
e
odd choice
im ending it all
forward ing
forwading
im wading im wading
apparently the super mario odyssey source code has an insane number grammar errors
lol great
I will forwad you
get forwarded idiot
im STILL trying to find out what is causing the message bar clearing ive fixed every single other bug on this stupid plugin 💔
forwading
when u fix a bug a few more pop up along the journey
thats progress
one time i fixed this one opcode in my vm, and immediately broke 12 others
fixed another that broke
and the original broken opcode broke, along with 7 others
to summarise, i gave up
gg
i dont do bugs so thats impossible for me
OPCODE_M, i hope you suffer
test driven development 📈
Please enter the passphrase to unlock the OpenPGP secret key: "Surge surgedevs@gmail.com" 3072-bit RSA key, ID 2377F43EEE0EC29C created 2025-03-27.
gmail
normie
i should write tests soon
i wake up to 30 users shouting at me for fucking up a floar
this benchmark does tell me a lot thanks for that
(Auto-response invoked by @royal nymph)
not a vencord issue, im pretty sure
hm
it seems to be an issue with CopyFileContents
@delicate sinew @green thicket finally managed to reproduce the issue https://github.com/microsoft/vscode/issues/246902
Type: Bug Be on electron >= 34 clone https://github.com/sadan4/crash-repro open it in a vscode window set a breakpoint at extension.js:5 start the extension host using the provided task run the ...

hmmmmmmmmmmmmmmmmmmmm
maybe its too much
mfw animating background-position and transform3d at the same time uses 15% of my GPU
jesus
25%
NICE
X D
average electron app
guys any tips on my backend stack for my final hs project? i want to use: spring, redis for sessions, pg for user data, minio for data storage. i want to build a simple selfhostable spotify clone
jesus fucking christ thats a cursed stack
if you're going to have <10000 users just replace all that with pocketbase and you're done
i wanted to make it as complex as possible to flex on my teachers
most of students pass with a simple portfolio website(in plain html)
i flex on the teachers by completing their tasks within 100 LOC
just to show them that their methods are outdated
and everything they teach us doesnt hold up in the real world
just you know, to make them miserable
not sure if i want ot be done in a week though >:(
well i would still have frontend to do
frontend will be usual nextjs web and flutter mobile
how do you handle auth?
auto-generated based on the schema
how do you handle REST?
auto-generated based on the schema
how do you cache
idk cf magic
ah, thats the difference
our teachers dont know whats caching
i have other shit to do than shitty school projects they assign me xD
we literally use mysql with phpmyadmin and clean php in web subject now
well this is my final school project i can really take care of and flex on others so it gotta be big :D
i think we do too, but idk i dont go to classes, i just turn in all the assignments in the first week and stop coming to class for the semester
then do supabase with all the pretty knobs
be me
raw html, css, javascript
expressjs backend
postgres
hate yourself and explode after 24 hours of coding
no nextjs and bun boo
been there, done that, its awful
tbf if i were to make an app id use sveltekit
i remember my 2nd project ever used HTML templates and raw JS to build UI
most people dont even know what templates are XD
giga useless
my current big project uses raw JS client side and ejs (server side template engine)
ive worked with supabase a lot before, but tbh i wanted to make it myself a bit, i got tired by setiing up everything by clicking
i want to fuck with the auth too
mine currently is sveltekit with an abstract RPC/ICP layer for calling native methods inline as async JS functions
and its so fast its uncanny
it just opens insta and is there
and its weird, cuz it feels like as if it was minimized
im writing a C programs currently 
but no, its just starts that quick XD
oh wanna help me with that?
i need to compile C with pthreads to WASM
and i've been failing for 2 months now
XD
using emcc?
you cant compile with -pthread with emcc?
haha
if only it was that simple
it just shits the bed the moment it tries to create a pthread with a "thread startup error"
libass
compiling works fine, running it doesnt
i got ffmpeg to compile and run with pthreads
but cant get this to work
idk why
and pthreads would help here so much its unfunny
if ya actually help me fix this or fix this urself i can pay ya btw
that's how down bad i am
wow
yeah pthreading would help insanely here
currently this lib is performing 3d rendering on a single thread on the cpu in wasm
💀
to say its slow is an understatement
is thrd from C11 supported in anyway? or does it require pthreads too
its an order of magnitude slower than native and 2 orders of magnitude slower than gpu accelerated
idk its not my lib thats using pthreads
oh
well yeah
wasm mutexes can lock main thread
it is bad
you're expected to run wasm in workers
except then u cant run other shit in workers like WebRTC or anything DOM based like filters, color matrixes, svgs etc
how so op
use rust, rust for sessions, rust for user data, rust for data storage
yes
A fullstack crossplatform app framework for Rust. Supports Web, Desktop, SSR, Liveview, and Mobile.
Oxidize
if you want it to look particularly good on a resume do it in kotlin spring
but if you want to have fun making it do it in rust
I just want to have a job
in that case do it in .NET
I'm getting an electrician certification instead of uni
"fun" and "do it in rust" dont go together
Spring is wide spread
you literally have a rust icon on your name
do i like like im enjoying life
i was at a recruiting day last wednesday and ~80% of the software companies there used exclusively .NET
@supple whale
i know spring is wide spread and ive never used .NET and i hate .NET but its more popular and safer for a backend job
im not recommending you to do it
Aspnet feels so ancient to me for some reason
Tbh coding and getting paid for it feels like a fever dream to me
same
well moreso having fun while doing it
ive only ever had legacy java or mainly frontend jobs
being employed feels like a dream to me
aint no way someone pays me to write horrors i do
Lmao same
Never had a job in coding, only a done a few minecraft plugins. I feel like everyone thinks that we as high schoolers are completely useless
yea thats a big problem
Where tf should i even try to get internship or any job opportunity
i was looking for internships around my area
they all wanted senior eng
i was sitting on my ass watching anime
some guy i was watching anime said "yo my company needs a web dev, come work for us"
anime landed me multiple jobs
;kekw
ive only ever had internships that paid 9 euro an hour and a job that paid really well but had almost no work to be done (a few hours a month if i was lucky, yet i still made more from it than the original internship that started it)
and with the ai slop no one will bother looking for new devs
they're rather gonna hand existing devs ai tools and make them "more productive"
damn i wish i could pull that
Last year i did some manual labor for 2 weeks for 4.2e per hour 
cali internships pay like 120k for vibe coders that know nothing
but you have to live in usa
i wish i could sign up for that
but i dont really like the idea of vibecoding
the entire reason i code is because i enjoy the process
if im handing that off i might as well just not do it at all
thats why im gonna do at least a masters degree
2 year bachelor 2 year masters
But im probably going to Brno to redhat open house meeting so maybe some opportunity finally pwease 🥹
and i dont see any disadvantages to doing a phd
you get to make a hobby project youd make either way, get paid for it, get a Dr. title that guarantees you at least 80k a year for the rest of your life
you have to write an extensive paper documenting it but its worth it
yes, but cost of living in cali is 200k
that's the difference
it requires actual effort
.
the cost of living in the usa is your sanity
phd is ass because you actually gotta do shit, for a masters you can legit come to classes, sleep all day, write 3 exams that are "whats 2+2" and write one dogshit paper at the end of it
you have 4 years to make a project that helps people and write an extensive documentation on the process of making it / how it works, that sounds really fun
its not like im gonna slave away for a random big tech company doing only stuff for them thats not fun
no, you have to document research, a proejct can be part of it, but rarely is
"but rarely is" idk how true that is and even if its true its bandwagon fallacy
i learned this the hard way in my masters, that u can write 9 LOC and make a paper on it
and that's enough
because its the paper and research that matters
not the project
the point is i want to do hobby projects and document them either way
i have 4 years for that
my masters is legit
use wasm_bindgen::prelude::*;
use sha2::{Sha256, Digest};
#[wasm_bindgen]
pub fn sha2(data: &[u8]) -> Vec<u8> {
let mut hasher = Sha256::new();
hasher.update(data);
hasher.finalize().to_vec()
}
and
bench
.add('WASM ' + data.length, () => {
wasm.sha2(data)
})
.add('WebCrypto ' + data.length, async () => {
// hash using web crypto
await crypto.subtle.digest('SHA-256', data)
})
.add('JS ' + data.length, async () => {
const hash = new Sha256()
hash.update(data)
await hash.digest()
})
thats ALL the code i wrote to get my masters paper
lol
doing a phd to make a cool project is a waste of time
just do the cool project without blueballing urself with the phd bullshittery
i would make a cool project either way and i get the title
the title is a lot more useful than the project on the resume
i've yet to see a moment when a phd mattered for a software dev job
at least in my friend groups and from my experience talking with companies
idk how it is in the hamericas
but in EU people rarely give a fuck
if its a cool phd its definitely gonna put you on the top of the list, im sure eelco dolstra has no trouble applying anywhere if he wants to
a bachelors usually is enough to get u any software dev job
you're utterly delusional if you think they will even read the title of the PHD, let alone the PHD itself
a recruiter will spend max 30 seconds on ur resume
i would love to do a phd but that requires you to contribute something new to whatever field youre targeting
and i have NOTHING to contribute
other than my last shred of sanity and braincells
if theres Dr. Dipl Ing. at the top or your resume youre likely gonna get the interview, no?
and then in the interview you can show your thesis
no, because you have 0 comercial experince so you're instantly a reject
and if you have enough comercial experience with transferable skills, the PHD doesnt matter
who said 0 work experience
because you spent all the time on the PHD
and work experience, and commercial experience are separate things
whats commercial experience then
4 years of FOSS/internships is close to meaningless
💔
well im doing my bachelor part time with a 32 hour job
im sure that counts
the bachelor is 9.5 hours a week on evenings
if its a software dev job with transferable skills, then yeah it does
yeah the only reason i'm doing a masters is because of the scholarship money
i'd insta drop this shit otherwise
its a waste of time lol
do software dev]
not even joking
you can write a masters on a "hey is this new framework faster or better than any of the well established ones"
and 90% of schools will accept that
This is a summary of how I wrote a turn based multiplayer game (from scratch?!) in Go and Typescript. Animations made in Manim lib.
play it: https://tankops.xyz/
source code: https://github.com/kodestan/tank-ops
visit my personal website: https://kodestan.com/
hexagonal grids: https://www.redblobgames.com/grids/hexagons/
0:00 - Intro
0:32 - Ga...
and its like 4 hours of effort
my goal isnt to spend the least time possible on the thesis
is it actually that simple
taking career advice from vencord
i've done way more complex shit in my lifetime already XD
https://www.jku.at/en/degree-programs/types-of-degree-programs/masters-degree-programs/ma-computational-mathematics/#c103144 this sounds like what i enjoy doing with aoc already
i gave my finals not knowing what an integral is and how to do simply it or whatever
wouldnt mind that either but computational mathematics is a lot more relevant for software development
a recruiter is gonna completely gloss over a msc in physics
i was so burnt out the past 2~3 years were like the most unserious academic years of all for me
i jsut ran diff --recursive on a directory with node_modules
have mercy on me
how long is the paper
my hs diploma thesis is 3k loc and 80 pages (30 from my partner)
nah thats crazy
your hs has a thesis requirement??
the fuck
diploma
idk they havent reviewed the paper yet, so idk if its good
what was it on
its no longer required in normal high schools (since last year i think - you can choose between an extra subject on the Matura exams or a VWA thesis), but in technical high schools (im in one) you need to write a diploma thesis to get a proper graduation
did you just legit yap 30 pages about comparing sha256 performance?
"how dogshit is wasm"
answer: dogshit
thats wild
👍
maybe i'll do a masters
we have 5 years instead of 4 in normal schools, and most of the last year is focused on the thesis, theres still normal school stuff, grades, and exams but you have a lot more free time and you can enter a bachelor a semester early or a year early for some unis or if its exactly the same subject
exponential scale btw
WOW
i just moved from having my dev folder in wsl to windows _> symlink
and perf improvement in rust-analyzer is insaaane
oh i thought u were done already
wait i swear i saw this exact graph somewhere
because my.... uuuh guardian? said its good
i posted it a few months back
ah
also what are the rules on reusing old material, could i use an interpreter i wrote in high school in my masters thesis, or could i completely recycle my high school thesis, or do i need to start completely fresh?
yeah u can re-use it
no problem
higher y is better right
my bachelors is some app i wrote in high school to learn JS
we were not allowed to use any material from before september unless explicitly marked as such and it would not contribute anything to the grade
what country are u from
is anyone here familiar with astrojs? im trying to use an npm package on client-side js but for some reason it just says the imported function is undefined
how were they gonna know

^
youd have to make sure you touch all the files and burn all receipts ig
its not that hard to avoid
my bachelors was legit just: https://haven.pages.dev/
Collection of small, fast, simple PWA's to replace native OS apps.
take is as a fun exercise and "rewrite" your old code with better practices :^)
which i wrote in like 2022 to learn PWAs
my problem was more that we werent allowed to work alone, or the grade would automatically be downgraded because there was no teamwork involved, and nobody in my class wanted to do anything interesting so i had to settle on a voice assistant
guhh
wtf thats awful
im thinking of writing an ART hooking lib for my bachelors thesis
although that might be really overkill
that is when i actually get into a uni 
yeah my shit is usually stuff that has real-world usage
aka shit that'd people actually use
and i use that kind of shit to learn
so i make something people will use, while learning how to
oh well yeah duh
i'd like to make a personal gesture controlled, ar assisted small drone swarm that'd scan anything and everything
but its not like its useful
lol
so i'll make a torrent client lib, or utility libraries whcih are
you can sell it to ikea
or polyfills for shit
no, its highly illegal
regulations on drones are insane
depends on the country
makes me wonder why AI has no regulations in comparison
youre allowed to operate small drones in austria as long as you dont spy on anyone
so if you want to scan someones house who gave you express permission you can
cause its incompetent
and useless
except for maybe like medicine
yeah but sending a swarm of 8 drones to map an entire corridor/room will get u jailed about anywhere
ah yes, i want to use drone swarms to map my living room
BRUV
i can imagine them being used to map caves or map peoples houses accurately to the millimeter for furniture design
caves are useless because you cant map them very deep because signal cant rly travel that far
the drones can be autonomous
and the types that can are often heavily regulated
that presents its own issues too
well anything is gonna have its issues but it can definitely be done and it would be an awesome phd
anyways, its smth i'll probs do anyways regardless of how legal it is
only because its cool
i can see it being more useful in mapping peoples houses
if they want to renovate
or drone shows that people can control themselves
i have some experience with p2p swarms, syncing and messaging, just the drone crotrol itself will be difficut
would you build your own drones or buy ready ones
like betafpv and dji have some pretty extensive protocols for controlling them
buy ready ones, or buy custom ones most likely
self-building drones is.... dogshit
mainly because miniturization isnt easy
i know ive tried
i know from simple pcbs and arduinos
as a project last year in high school
that self-making shit using generalized instead of specialized hardware is awful
it completely failed but i aced the presentation and got a C
we burned through 5 microcontrollers

