#đȘ -progaming
1 messages · Page 97 of 1
Using Compose for things it was never supposed to be used for
minepose soon?
HOW
Way too much effort lol
Currently only text but I'll look into implementing modifiers and layouts later, maybe even animations
https://youtu.be/RnLWLQsh9mw this might be relevant
Rendering 3D meshes, 3D graphs, and marching cubes in Minecraft without resource packs.
All my links:
https://heledron.com/links/
Web app for converting obj files to text displays:
https://heledron.com/tools/text-display-mesher/
Source Code:
https://github.com/TheCymaera/minecraft-hologram
World Download:
Static meshes (No plugin required): ...
I did that before that guy
(Though I didn't implement model loading, only hardcoded models)
real OG's remember this being done with armor stands in 2014
where you'd make an invis nograv armorstand with an always visible name and color that with shit like squares
and servers would make massive floating pixel art like that for banners for shit
That shit was obnoxious as hell lmao
a word is a byte.
dword is double byte
qword is quad word, or 32 bits
unless "for some god forsaken reason" the isa you use does not have 8bit words, theyre all just byte
FUCK
no a word is 2 bytes
idk WHY i thought it was 8 bits
so just double all my math
this is unreadable as hell
type script with a borrow checker?
In pratice its fine.
whatever is linking to your translation unit itself must know the size of the class to allocate in memory
this is the only way shared libs can even work
If you want to hide private state you do what i did in this class where the class simply holds a pointer to a struct that you hint in the header but only implement within your source file
This also simplifies the class header itself a lot
its kinda over kill in this case because all it hides is the pointer but oh well
rust does not give a shit about this because everything is static in rust land unles you use the unstable ABI for rust or make..... c headers
C/C++ are the way they are because they have to be
theyre systems languages
idk how to explain it except just read it https://en.cppreference.com/w/cpp/language/modules.html
this also allows the lib to update private state of the class. EX add new members or rename them without the end user having to worry about it
idk ive never used websys and it's pretty self explanatory
except for Closure i dont get that
I can make sense of it but the recursive brackets makes it hard to tell what level of recursion were on
yeah for a second i was like
QWORD is 64 bit on windows
it can be 4
A word is a poorly defined concept which has different meaning in different contexts
32bit cpu word is 32bit and 64bit cpu word is 64bit
It is readable it just sucks to use
Sure imo itâs still ugly though
A word as defined as exactly 1 word.
đ„č
this will generate 20 javascript bindings
you're literally writing more js like that
We will bind you to a tree and let you rot in the rain
bro
thats what you get for writing rust like javascript
websys is malware
4kb of compiled js vs this ```js
let element = document.getElementById("coolElem");
if (!element) throw Error("Could not find element");
element.onclick = e => e.preventDefault();
at least its memory safe tho ig snackstare
so true like any sane person i also write the 10 lines that could be js in rust and dont only use it for larger projects where the overhead is relatively tiny
right
you do know that it all gets bundled together and that overhead is per project and not per file... right..? like if i use web_sys in dioxus and have 20 components it doesnt include that overhead 20 times and while i could then port my app to desktop with electron and mobile with react native or whatever i could also have the exact same code and just do dx build --platform android
besides performance critical components (which do not need the DOM) this is the benefit of writing it in rust
the overhead is per js function
also per call because you're switching contexts so often
there is exactly zero advantage to using rust web frameworks
they're slower than js

I think the advantage of Rust web frameworks is better DX
triyng to build chip 8 emu and i think the timings are wrong
it seems hard to time both 700 clock cycles per second and 60 screen refreshes a second
i was just imagining a timeline where with marks for both things and the program sleeps until the soonest mark
i should just do ticker
(because, of course, it's in go)
i politely ask go programemers to stop
im building one too, what language is urs in
im tryna make it without any guides just like following the reference, docs, wikipedia n all dat stuff
tho im so clueless đ
go
there's a good guide that doesn't spoonfeed...
i'm finding it pretty easy
well... maybe i shouldn't say that yet
still need sound
and input
but i was surprised how i managed to actually get the ibm logo to work
horror
@woven mesa
LOVE
whats in opcodes.go
so good
@woven mesa I finished the clipboard storage and monitor yesterday
its just about ui now really
names are bad
oh thats kinda smart ngl
though how do u get such pattern from two bytes
i mean
like how does it look in code
@woven mesa I gotta port over some of your code for previews so we can have an easier time writing them
after porting I'm maybe gonna put it on github (private)
im more happy with this rn since its super tidy
convert the two bytes to padded hex
(so 224 would become 00E0)
then compare chars between the hex string and pattern for each opcode, treating - as always equal to the input
00E0 would match directly to the 00E0 pattern, and 8AA4 would match to 8--4 (8 == 8, skip A, skip A, 4 == 4)
if you added ---- to the bottom it would act like the default case in a switch, if you added it to the top it would catch everything so it's pretty flexible but i don't think that's really needed lol
it's a linear search but i don't think that really matters
i see, thank you!
your're welcome
i might try to rewrite mine after i saw that if you don't mind me using your solution (and if i manage to adapt it to zig)
no its copyright! /s
thankkk
would be so much easier to implement that if zig had inheritance
or like ifaces or something
i don't even have any interfaces in my code
yeah but idk if u can do that in zig
pretty sure this approach would work just fine in c
well i think i might have seen something like that
would be surprised if zig was more limiting than c
but that probably look like c func or something
though i'm kinda afraid that it would be much slower if, say, i chose to use just switch (bytes)
/run
// i'm just including everything just in case
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
typedef struct {
char *pattern;
void (*interpret)();
} Opcode;
void starts_with_ab() {
printf("Opcode starts with AB");
}
void starts_with_01() {
printf("Opcode starts with 01");
}
Opcode opcodes[] = {
{"AB--", starts_with_ab},
{"01--", starts_with_01}
};
Opcode match_opcode(uint16_t insn) {
char hex[5];
sprintf(hex, "%04X", insn);
for (size_t i = 0; i < sizeof(opcodes) / sizeof(*opcodes); ++i) {
Opcode opcode = opcodes[i];
bool match = true;
char *hexTmp = hex;
printf("cmp: %s / %s\n", hexTmp, opcode.pattern);
while (*hexTmp != '\0') {
if (*hexTmp != '-' && *opcode.pattern != *hexTmp) {
match = false;
break;
}
++opcode.pattern;
++hexTmp;
}
if (match)
return opcode;
}
return (Opcode) { NULL, NULL };
}
int main() {
uint16_t insn = 0xAB00;
Opcode opcode = match_opcode(insn);
if (opcode.interpret == NULL) {
fputs("agh!", stderr);
return EXIT_FAILURE;
}
opcode.interpret();
}
Here is your c(10.2.0) output @winged mantle
agh!cmp: AB00 / AB--
cmp: AB00 / 01--
aerkhjer
i would find this easier in c++
but it's definitely possible and zig is way more modern
yep im gonna give it a try ty
i spent so long trying to fix this pointless c code
you can stop making the app now, its finished
its incredible how incompetent some developers are
fucking made it x3 smaller and x100 more readable
declaring variables like this is just horror
that entire thing is pure horror
fucking
"return false"
at the VERY end of the code
đ
it was trully horrid
i thought this was go
JS
my chip 8 interpreter now seeems to work pretty well
i feel like it's a bit messy
but i also feel like i made some smart choices
i had a prof that did this
he was using C formatting in C#
it was fucking atrocious
you don't even need to do that in modern c
lol yeah
it gets worse
there was a
while (!this.someState) {
// wait for state to change
}
in there
mf just full blocked the main thread permanently
Bro never heard of "events"
i mean
admittedly i hate the situation with events in js as of now
nodejs events are amazing, but dont exist outside of node/deno
w3c events suck dick, but support abort controllers unlike nodejs events
nodejs has
const res = await once(emitter, 'statechange')
which is UTTER PEAK
but for some reason u cant do
emitter.on('statechange', update, { signal: ctrl.signal })
like
then nodejs events dont suport event maps
Events in hikari-py is best event system ive saw in python lol
Its typesafe and provides support for custom events
i legit need to override types for nodejs events
and worst part is i cant even use all the methods, because no polyfill for nodejs events implements everything
it got to the point where i just considered copying nodejs's code for it and adding types from deno and publishing it as a package
which seemed fairly simple
how is this meant to work
procrastinated something so long sdl 3 is out
help i tried to see how much intel asm i remembered and i couldn't remember hello world
I may have gone a little overboard with how much of compose I've implemented
okay so maybe the return false at the end can be excused because in school or some fucking reason they teach to only have one return statment at the end.
however why didnt they even do
if (['tcpIncoming', 'tcpOutGoing'].includes(this.type)) {
// Impl here
} else {
return false;
}
or actually why is there a return false here at all?
WHO MADE THIS
isnt JS suppsoed to be easy? why is it then a pain to look at
holy shit wow
fucking wild
go isn't 80/20 is more like 50/20
another garbage article defending golang
The entire philosophy behind Go is âdevelopers are dumb so they canât have nice things, but weâll make them think itâs a nice thing by having fast compile timesâ. The amount of time it took to add generics is just inexcusable, I remember when Andrew Garrand came to my uni when Go first came out and being asked about it. But, they already had generics, but youâre too dumb to be allowed to use them.
Also, every fucking second line being error handling is absolute insanity. Itâs a testament to just how poor the ability to build abstractions are (give me a monad for fâs sake).
Thereâs no language that makes me more angry than Go, there are other languages which have their own quirks, but they often have the benefit of âwe donât know betterâ. Goâs developers did know better, and decided âwe do know betterâ - the arrogance and assumption that all developers are dumb AF is just insulting. I would say that Go just feels like a Google product, but it actually feels like an Apple product, you have to use it their way because youâre too dumb - ironic given that Swift seems to actually be a pretty nice language.
Defer is nice though.
https://old.reddit.com/r/ProgrammerHumor/comments/1lm3hlw/zeroiniteverything/n086kbm/
?
Practically unlimited budget sure but that doesnât mean they have to waste budget on stuff the company doesnât need, especially cross platform support
This feels like it was written by someone who thinks all languages except go suck
They might actually think that
people who complain about go, or praise it are insane
its just a tool to be used, it does it how it likes to
you can argue if its a pro or con
I donât mind go I just see no good use for it so I wonât ever see myself care for it
lol no
he's right
go is piss easy / simple and that's why it's good
lmfao
crystal moment
crystal is impossible to make a good LSP for
Not sure why you are pointing out that swift part here, compiler speed is mostly irrelevant, especially with incremental compilation, crashy? As in if I search for either both have their issues and crashes? and for the cross platform one⊠you are talking about swift⊠cross platform is absolutely not a priority and Apple mostly doesnât care about cross platformâŠ
swift will try and smartly resolve some characteristics at compile time and if it fails to do it within a reasonable time, will fail to compile
why swift does not have deterministic behavior built into the language ie beyond me
The compiler imo is fast enough but the failing because its unable to typecheck at a reasonable time error is super annoying. Though, it would take llvm like 20 minutes to even try to even optimize that code because of its unneedlessly complexity so maybe it isn't too bad after all.
I never really used swift but that does sound like bad design
It is yeah
if it can't type check in a reasonable time it means your type system is too complex / overengineered
can't say I disagree with that
crystal has this same problem
its type system is duck typed (you can write code without any types and the compiler recursively analyses your code to figure out all types)
as you can imagine that process is super slow and that's why there will probably never be a good LSP 
no langauge should fail because "code too complicated lol"
generics can easily do that with recursion
part of why go dodged it for so long
Uh no, it fails because it can't find the mistake in the code
how đ
If you fix it even if its unneedlessly complex it would compile it
thats not what you just said
but the failing because its unable to typecheck at a reasonable time error is super annoying.
but if its too complex and theres an error, it would just end up erroring with some "unable to typecheck at a reasonable time"
ye
what even is the point
who would prefer it failing over it just taking longer
I dunno really, it's super annoying especially when your project is large (for example feather) where this is prone to happen everywhere
that sounds terrible
how do people develop like that
does that mean your ci could just randomly fail??
can't believe Apple managed to add gambling to their compiler
they should make a betting site where you can bet if your code will compile fine or error with that
the devs played too much blue archive
only gamblies when u write stupid code dw..
are u saying feather is stupid code galore
nope
because it compiles
surprised it doesnt even break though because of the amount of bullshit in it
@royal nymph one of the github actions for a project I maintain has a race condition and its for compiling c code
now thats insane..
đ
I love race conditions
sounds like someone simply forgot to check if a object exists before another file requires it which is easy to fix with cmake
because I have to rerun the action and wait another 10 minutes
this is an insane take, compiler speed matters so much
slow compile time makes me not want to use a language
especially if even building debug build is slow
the action is 906 lines long
wanna fix it
sure
at that point why is it even an action
torture
what c lib is it?
WHY IS IT A YAML FILE
JUST USE CMAKE LIKE A NORAML FUCKING C DEV
HOLY SHIT
im not fucking fixing this
have you never seen github actions

I hate actions too
vencord installer ci is only a few hundred lines and I already wanted to end myself while writing it
the fact that it's essentially just trial and error because you can't really test it locally đ
I can usually just
a ci unless its for a platform I don't use
i hate this so much
I remember when I was writing some ci that specifically triggered on prs
so to test my changes I had to push to the main branch, then create a new pr and see if it works

almost drove me crazy
hahahaha
honestly I hate that I can't properly test actions with different branches
unless I have a manual trigger for the action (present in main branch)
like whyyy
naturally I can't push testing junk to the main branch so I had to make a dummy repository for it
you actually can just keep a clean commit history and force push it when ur done
force pushing to main branch is insane
I always do that girll
I do that everyday
yeah but no one uses your software so it doesn't matter đ
okay bitch
I meant nino it's your own fault you typed
imagine if I ever force pushed vencord main branch
what would even happen
probably break updater
Also many people would kill me
reported
anyone who's building from source
itâs an unsupported installation method
I mean yeah but doesn't mean you have to break their setup by force pushing
vencord is one of those projects where everything relies on a single git repo existing
every time shit goes wrong in my git history or whatever i delete the local repo delete the fork and remake everything from scratch
(vencord)
how else would it work
updater api
not sure but im not judging it
vencord still works without the repo it's just that you can't update
ye
exactly the same is true for external update servers and github is definitely more reliable than something I would host xD
I mean vencloud has been more reliable than github technically but still
https://github.com/VendroidEnhanced/web/blob/main/src/index.ts fork and make for 
sheltupdate
I think discord is a worse example of depending on some service
actually it can do
@solemn ravine
if discord fails to update you literally can't use it
if vencord fails to update you can still use it just fine

vencupdate soon
go is simple
go is not easy
two very different things
it's simplicity does not make it "good"
you know what else is objective
nuh uh...
much much easier even
anyone fluent in another language can learn Go in a week
I hate the sorted syntax
no đ
js sort is even worse
js sort makes you return 1, 0 or -1 and I can never remember which order it goes
whaaaa
you were asking if it's ts, no?
none
I showed how it should look in swift with ur example 
u didnt tell mee!!
many languages have sortBy
ye but I just couldnt recognize what your example was xD
GO is easy and does not have the overhead that systems languages or.... "opinionated" languages have.
there are no fancy complex types you have to know
does it make some things more verbose to do? yes
its not the fucking nightmare that is js, rust, c++, java, kotlin
If you try and make a shared lib with go tho so help me god he strikes you down from the sky
lmao
it wasn't really made for that
how does that even work with gc
you wouldn't want your shared lib to come with its own gc
It wasnât
Multiple c/c++ libs have internal memory management but usually relies on call backs or destroyer functions in some capacity
I would be genuine impressed if someone made a shared lib with go
I'd use it for more but Modifier is a nightmare
itâs not -1, 0, or 1, itâs negative, 0, or positive
(a, b) => a - b will give you a negative result
the thing calling your function will do if (res < 0) so you can think of a - b as less than because of < 0
thatâs how i remember it, essentially you can replace the - with < in your head
thatâs not just js, any sorting function will want to return a positive, negative, or 0 result to indicate whether itâs less than, greater than, or equal
this is done the same way in just about every language i can think of except rust which has its Ordering trait
if it was an equation,
comparator(a, b) < 0
res < 0
a - b < 0
bring the b to the other side
a < b
but the reason why js sorts negative numbers weirdly
is because it converts the numbers to strings and compares them lexicographically
which is kinda bad but if you never pass a comparator fn you canât expect too much
Haskell has an Ordering type too
Common property among languages with proper type systems
ok fair enough yeah
Wtf
Just why
js arrays are not typed
it canât assert that every value in it is a specific type yeah
so it just converts them to a string to get a common representation
okay smart people, what would be the easiest way to just proxy video streams in js?
i have to proxy cdn links for an embed site (like fixvx or whatever) since the original site blocks all discord requests (which leads to the client spamming requests and banning itself from discordapp.com
)
just passing along the response seems to cause issues, causing either a complete fail to load or weirdness with video seeking
we have Comparable in kotlin/java
https://editor.graphite.rs/ why is this also slower in chrome
why is everything using rust slower in chrome 
google wants you to write in go
i mean its true, google doesnt care as much about wasm as mozilla
haskell lets you implement >= instead of cmp
that's also just integers
No, that's an enum
đ
Python used to have __cmp__ dunder method before 3.x but it was removed in 3.x
nothing compares to the starship operator in php
we're literally talking about the same thing
No
and ermm it comes from C++
Spaceship is a much cooler name which instantly signals to you that this id the worst feature ever
@pearl dawn protobuf
love
this is more than just an empty c++ project... this is the canvas for my vision
clion
@valid jetty
every time i rename a file in clion it crashes my whole desktop session
the good news is the file does manage to be renamed after a re start
man i love using C in go, its so fucking easy

the only issue really is that you have to force the end user to do manual "free"
ex: im writing a wrapper for the ffms lib which itself is a wrapper around the ffmpeg library.
You can get a track which is a member of the index of a container file (ex: mkv).
However said index is owned by the index struct and as soon as the user frees it, well then the track is undefined behavior
if the index itself leaves scope without the user freeing it, then it is leaked memory.
you can use the go runtime finalizer to add it as a function that runs when it leaves sope, but that is up to the GC and not the end user
@valid jetty
im vibe coding a gedcom viewer
i havent written a single line yet
or paid a cent
when is the project gonna implode
im waiting
using c++ is making me miss go
using c++ is making me miss being homeless
I love c/c++ but I donât need it half the time
cpp is basically only for competitive programming i think
News flash: you're wrong
What?
C++ is a lot safer than c and gives a lot of modern language features
not exactly a news flash
im wrong most of the time
method pointers
ignore the fact that it has multiple names i decided louis is a nicer name
c feels less messy but also less practical
idk c++ is overhated it can be fun
fym overhated
valid criticism is far from hate, its still one of the like most used languages and a very widely liked language đ
why the hell are you doing this
C you can about guess the exactly what the compiler will compile, but at the cost of basically all feature
funny
it's inherently subjective
Create an account to read the full story.
The author made this story available to Medium members only.
If youâre new to Medium, create a new account to read this story on us.
TRUE
kys
...
đ
"beat c performance with Go by using... checks notes... assembly"
how did go crash cuz of db and rust didnt
100% of this guys articles are "GO ABSOLUTELY FUCKING SUCKS AND IT EXPLODES YOUR ENTIRE INFRA but the code was made in 1 hour instead of 2 months in rust and thats why its better"
that's the point
yes Rust is better in raw performance but Go is pretty close (more than good enough) and way easier and faster to write
idk bro in one article he goes "The code⊠letâs just say, junior devs cried", "Build time tripled" and "Logging was a pain
" for rust then posted the source code and they are 50 line scripts where he completely left out said "logging" and comments (which are present in the go code) from the rust code like i think this guy might just be playing into what people are already saying without actual first hand knowledge
https://archive.ph/32zKo
especially funny with the logging when axum already comes with tracing layer support... i guess error!("DB error: {err:?}") (equivalent of his go logging log.Println("DB error:", err)) is too difficult...?
like sure what he says can be true but this very much seems like written by someone who is farming for clicks with rust instead of someone who actually uses rust (even if it would just be for these tests)
đđđ this fucking guy on youtube shorts is talking about how vscode is good because itâs very lightweight and literally shows a footage where itâs using 1gb of ram đ
that's not much
right but definitely not as little as he makes it seem
zed is much better performance-wise
hard to recommend something on any social media platform when there are no official downloads
unless you as the creator want "where is windows download!?!??!?!?!" spammed in your comments
that CREATOR had a video âwhy every developer uses linuxâ 
he definitely uses linux doesnât he
they are on windows in the screenshot you sent
this is compared to a jetbrains IDE or Visual Studio
this is possibly, misleading as hell
Its not "click bait" the way they explained it
altho who hand writes asm
better off just linking to a C lib that go supports
there are some... quirks
like _test.go cannot import "C" and c stubs are generated per file to avoid name space colision so its not safe to share raw c types between packages
you have to share a unsafe.pointer and then type cast it
i wish unsafe made more sense. i have a wrapper around it just so i dont lose my fucking mind
package unsafer
import "unsafe"
func CArrayToSlice[T any](ptr unsafe.Pointer, count int) []T {
if ptr == nil || count <= 0 {
return nil
}
return unsafe.Slice((*T)(ptr), count)
}
whelp you cant know
and this is an official google presentation
google lies out their fucking ass to push whatever agenda they want
at google, to move up you have to make a product or a study even if
- its bullshit
- will die off in 2-5 years
this is why the google graveyard is massive
well not really they were comparing it to any other code editor or an ide
the video is literally why vscode is the best code editor
jetbrains and VS will easily eat 5-7GB on a large project
most of the features you need from either VScode has
theyre a normie
they dont think youre gonna be editing source files in the terminal with neovim
yeah idk just kinda annoys me how they probably never even heard of anything other than vim vscode vs & jetbrains
they have, they just know their audience and you dont
one day zed will become mainstream
#đȘ -progaming message or theyre targeting normies
remembering the time i had to request more ram from my manager because phpstorm kept OOM'ing on some projects
yep thats their audience
the solution is simple, just dont use php
just kinda annoys me how they all force that publicly accepted opinions like âall developers hate windowsâ, âall developers like linuxâ, âall developers love macbooksâ, âall developers prefer laptops over pcsâ
i think almost everyone who watches programming youtube shorts is a "normie"
it was the first short i saw opening the app 
solution is very shrimple
so basically
you take your phone
right
and you just
quit youtube shorts
works every time
excluding mac os which is its own... thing
âall developers hate windowsâ, âall developers like linuxâ
I am willing to make arguments that windows is a fucking nightmare to develop for and for some reasons does not have agnostic binary performance
it works most of the time but yt shorts is fucking insane it makes me scroll it even though i understand that literally all the shorts i get no matter what my algorithm is is like funny moments from simpsons or family guy, dumb tech videos or⊠yeah thatâs it
was meant as a reply to this ^
idk i donât think itâs that much bad that as they all make it seem. also he still uses windows in his every video despite saying that ALL REAL DEVELOPERS USE LINUX
Like lets compile something for linux and windows.
linux)
Compile with clang... and youre done
windows)
for some reason depending on the project MSVC is much faster or slower than clang, neither reaching the speed linux does
Also for some reason fat lto is faster than thin lto. Why? Who knows, because thin is always better on linux.
Oh you wanna build something for windows without msys? use this fucked up ass script that builds everything one by one and manually sets up the linker and compiler includes and just fucking hope it works
and i could go ON and ON
because ive had entire fucking arguments with people about which is the better compiler arg just to learn they use windows where everything is cursed as shit
glibc malloc has its own issues and bugs that are effectively never gonna get fixed but no developer is gonna encounter
windows... now windows
depending on the compiler malloc is just fucked for certian projects like libsvt
so i know people that go through the pain that is aliasing minmalloc to malloc to get it working at all or acceptable performance
solution is just use rust 
though idk maybe it also somehow relies on msys like the compiler or whatever
okay good
except when one of your crates relies on c code and then msys becomes a requirement again or face linker hell
this is kinda like that pic where everything stands and relies on one small brick 
which is c but windows hasnt moved in a direction at all to fix the hell that was created
everything is statically compiled on windows because of the hell that is this or uses its own folder with its own versions/dependencies
wait iâm a bit confused why do we need msys if there is already msvc
most likely iâm misunderstanding something but well i havenât really had much experience compiling any c/c++
MSVC C/C++ is a compiler and nothing more. it does not manage where for example libav.h is if your project links to compiled ffmpeg libs.
MSYS is a enviroment that has everything in standardized locations and structure with multiple compilers to make it easier
on linux, if i wanna use for example zimg i just tell clang++ -lzimg and im done because the zimg.h header is stored globally on my system at /usr/include
if youre weird and on ubuntu its probably in /usr/local/include
i can then just tell the linker to use -L/usr/lib -lzimg becase the shared object is located within /usr/lib
windows does not have this standard.
i wish people cared about real issues like what i just ranted about and this
not EWWWWWWWW you do switch statments like THAT?
why are there so many languages it pisses me off đ
cause god hates you
no like fr how do i even choose with that many languages nowadays
i want to learn something new but i just canât choose what
either rust or c or go or zig
What do you want to make
I wouldnât use c to make a web server for example
I wouldnât use JS to make a high performance json parser
uhh idrk but i guess something like emulators or binary parsers or stuff like that
dunno how to explain it with out one phrase
C family or rust would would give you fine easy low level control
You can do the same in go but its more of a pain in the ass.
Rust is opinionated and i personally donât like it. Iâd recommend trying it and c++ both
Zig is a more âmodernâ c you could say
my opinion to c++ is kinda biased but i just donât really like it. like i guess you can call it a preference but i just donât really find it that fun to write. the only c++ code iâve seen made me wanna cry
I donât think you will like rust then
i despise c++ but I love rust
iunno i do. even though it has more syntax sugar itâs definitely much more readable and just better and more fun to write
fuck ass guild icon
i've made a single rust commit
it scared me
no idea how qt works but my guess is you need a parent of some sort
i dont know any of qt but try to pass a into pushbuttons as parent or something like that
zig is a pain in the ass to read and write
more so than rust
???????
1 billion casts
interfaces are painful to read
generics are comptime functions and not part of the type system hence generic inference isnât a thing
thereâs more that i canât think of right now
@valid jetty you know those gambling sites where you can bet on world events
like who will be elected
if taylon swift will get married this year
we need that but for which year i will push my next commit on github
can i bet on your downfall
what do you define as downfall
idk lol
i dont have far to fall
if i lost all my assets and job it would be a minor inconvenience because i dont own a lot
point still stands
lmao whatever
ok my aoc would take a while to get back and i wouldnt redo it but it also isnt very valuable
iâm willing to bet a solid âŹ0.39 on 2027
deal
gonna commit in 30 minutes and claim my 39 cents of profit
wow smh..
ok! i see
sending gift cards now (by post)
you should receive within 17 working days
thanks
doesn't google want to push go, not rust
horror
WDYM HORROR
thatâs how many the entire project in total has
thatâs like
horror
true
the icons look nice tho

Depends on who you ask at google
what?

yes!!!!
legit main use for revanced is completly nuking shorts from the app
welp now that piholes dont rly work for youtube i guess ad blocking too
google wants to push everything all at once lol
itâs organized chaos
hey i think using modded clients goes against yt tos

you go against TOS @spark tiger
yt tos prohibits downloading videos so who cares
nop
I care
tsss i was just trying to find a reason why i wont use revanced
So cringe
but what if you use innertube đ
as far as i know innertube is not a video downloader, it is an api wrapper
oh i meant the innertube api itself, not the api wrapper
because for that one you don't need to mess with breaking DRM for a key, the URL already has the key if you pretend to be an android client
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
based, but i am currently on void
xbps-remove -Ro nodejs pnpm npm yarn or whatever
xbps-remove nodejs pnpm npm yarn
yeah that
solves all your issues
then start using a real language
oh there is docker image
surely that has a download button somewhere
cursomizer only gives you a custom config which you can use to compile your own variation of the font
smh
i fucking swear typescript i'm about to loose my shit
Insane
yeah, that checks out, it explicitly wants an array buffer you have something that's like an array buffer but not guaranteed to be an array buffer
nah just real
What should vencord be written in then, if typescript and javascript aren't real languages?
coffeescript
Isn't that just JavaScript anyway?
wasm obv /s
for vencord its fine since it's a webapp, but for generating a font there's no excuse to use something more stable than JS
uhhh kinda i guess
yeah except that doesnt exist
all underlying data for uint8 is always arraybuffer
I don't think wasm works because of the asynchronous nature of it. Can you load, execute and send messages to Wasm synchronously?
TS insane then
yes you can
Huh, I thought wasm had to be loaded asynchronously.
yes
loaded asynchronously yes (I believe)
but then any other communication can be done sync
you can compile wasm synchronously even
If you wanted to do vencord in wasm, I believe it would have to be loaded synchronously.
nah
inline it
Also, can you modify object prototypes from WebAssembly?
why would you ever need to
those dont exist, you need to construct those objects when passing data
which is where a fuckload of overhead comes from
since you're essentially implementing your own v8::serialize and v8::deserialize in JS
Patching object prototypes is how vencord grabs webpack
why would you ever rewrite that in wasm
That's the point, you can't.
rust obviously đŠ
Let me know when Rust can compile down to JavaScript. 
already possible
rust -> compile to wasm -> decompile to js
ya
wait is that the wrong one
9mb of javascript
one of the a million "wasm2js"s can do it i forgot which one exactly
emscripten
is that so different to the js frameworks adding 2000 gb of polyfills and whatever other shit
neat
or use Go
gopherjs exists
the only use ocaml has in current day is compiling the old rust compiler
sadly true
you can simply compile asm/wasm to js via asm2js
How does one translate a call to the win32.h header/shared DLL to JS
easy just use a 0day in v8
new web framework utilizing state of the art undisclosed 0days to create blazing fast reactjs 
Ffi or bun ffi
bun
You know how much do i love bun
if i could ban you for that i would
if i could bun you
In a browser.
v
You cant do that
Exactly
i still dont get the bun hate
It doesnt work when i try to use it with k8s js client
I had to switch to node
i0 l5y d2t u1e k8s
i know, thats also why my message makes sense once you get to decode it in 5 years
Im not spending thst much time
whelp that sucks for us both i guess
lc.gem decode (as in; k8s is kumertentes and a11y is accessibility)
That's an interesting challenge! It looks like you're asking to decode a series of numeronyms, where a number replaces the letters between the first and last letter of a word.
Let's break them down:
-
i0: This one is a bit tricky as the "0" usually represents the number of omitted letters. With only one letter, "i", and a "0", it's likely a typo or a highly unconventional numeronym. It doesn't follow the standard pattern of having letters between the first and last replaced by a number.
-
l5y: This decodes to lazy.
-
d2t: This decodes to dot.
-
u1e: This decodes to use.
-
k8s: As you correctly identified, this decodes to Kubernetes.
Do you have any other numeronyms you'd like to decode, or perhaps some regular words you'd like to try converting into numeronyms?
so true
The more I look at bun vs node js the more I wanna kms
A fragmented as hell ecosystem within a language with questionable design decisions that already lacks basic features
Ur so stupid bot
why?
deno legit implements nodejs code 1:1
they legit copy-pasted their code into deno
so if anything deno is a superset of nodejs
i never said anything about deno?
fuck im retarded
sorry
im tired didnt read properly and assumed
brain mega fried, sry
average js dev
yeah bun is doing giga questionable shit
man, fuck you xD
i spent 14 hours yesterday implementing RC4 DH symmertic key based encryption
and then another 6 hours today
im so giga fried its unfunny
im gonna compute a shit ton of statistics for multiple video encoders to prove an assumption i had about quality speed optimizations

unfortunately
264 is still the best codec out there for quality
265 is close behind
everything else is ass
and if u want size just do av1
everything about that was wrong but okay.
legit every single encoder would agree with that
but ok
if you care about MAXIMUM quality, and nothing else 264 is still best
near lossless sure whatever x264.
for getting transparent or extremely high quality at a small file size x265 and svt-av1 are competitive.
yeah, i can agree with that
at high qualities 265 and av1 are close to the same, and they'd likely trade blows
please speak in encoders not bitstream standard
and if u want to just go size down while having mid to meh quality av1 will beat 265 by landslide
libaom cant hold shit to x265, but svt-av1 forks can compete with x265
nah because encoders change day to day, and i'm speaking about max capabilities of the codec, rather than a specific encoding impl
if were talking about theory av1 beats HEVC by a land slide
yup!
but libaom cant 
intels hardware av1 encoder is actually insanely good
vp9 theoretically is better than HEVC, but libvpx is dogshit compared to x265 so 
its still horrible compared to faster svt-av1 presets.
it only make sense for real time recording
its not very... performant, like its perf scales way worse with resolution than NVENC, but its size:quality ratio is nuts
yep, 100% agreed
i kinda dislike hevc, it feels like its only popular because shit like nvidia kept pushing it, and not because it was actually needed
i mean, at least what he's yapping makes sense and is not some made up bullshiit
@ivory heath ffmpreg
;-;
HEVC was the first codec to properly support HDR in implementation.
VP9 also had poor support outside of web browsers for a long time
ah, right hdr, i forgot
yeah vp9 was doggy
i mean it was used in youtube? that's about all i saw for its use
at least it was royalty free
but yeah not much going on for it
neither quality nor size
The only problem was google didnt make 10bit support required in the baseline profile.
Almost every single HEVC decoder supports bare minimum main 10 that requires it.
overall google's interest in HDR was very minimal
both in codecs and how they treated it in their products, ie youtube, android, chromium etc
which was annoying
HDR is a fucking mess in of itself.
google simply made it worse.
i meaaan
for a lot of software sure, but
now that chromium has hdr support its insanely good
like the software support for hdr in chromium is imho industry leading, at least as a developer that has created modules and implementations around chromium's hdr support
chrome does not support dolby vision, chrome also does not have the best tone mapping or scaling
you can just.... take a bitmap/image "screenshot" of a HDR video, paint it to a canvas, boom that canvas has the HDR metadata, save it to png/jpeg? boom has hdr metadata
it does support DV
but not in a way you can verify it
its a very touchy-feely topic because chromium supports almost every video and audio format in the world
even AC4
but they wont let u decode video with that metadata because they block it
and u need a lot of fuckery to make sure it doesnt block it
GIGA annoying as a dev who wants to ship electron apps with extra media codecs
i mean i get its because of licensing
still fucking annoying
I mean you can convert DV to HDR10+ and then display it which chrome does support
chrome by default only does wia videwine content to my knowledge?\
tho last time i checked that was.... 2 years ago
so maybe that changed
but i rememeber tyring it on the cyberpunk anime with dv metadata and shit was just green XD
Widevine* and i hate that shit
anyways if you didnt know about it you should try av1an
i saw it, but the encoding times dont align with my ADHD
so i couldnt be bothered playing with it
shit takes WAAAAAAAAAAAAAAAAAAAAAY too long
av1an makes encodes pausable and supposed to make them faster.
were you trying to use target quality or something?
if youre using like --preset 6 in svt with a <=8 core cpu guess it does not make that much sense
ill consider it once they have hardware accel via intel gpus ngl
i'm running a 5800x3d and naaaah
just naaah
i'm a web dev, for me a compile time of 2s is a lot
what? thats never gonna happen. av1an is purely for software video encoders.
av1an cannot make hardware encoders faster
when i see native compile times of 30 minutes i fucking shake
not faster, but less shit quality
but yeah i assumed that too
target quality with hw encoders is cursed as shit and a waste of time
yeah pretty much
yes?
this is the first time in months. would you like to know something about video or audio encoding?
OH
ME
i want an in place ac3/eac3 to ANY audio transmuxer
needs to work with partial streams
all you have is the header/metadata of the file
ffmpeg?
nope, libav
that is ffmpeg
its most of it
i can answer later but WHY?
yes but u cant do libav -i input.mp4 -vf fps=1 out%d.png
thats an ffmpeg thing
libav is just a lib that helps with container decoding
libavformat and libavcodec are apart of libav and will help you with your cursed remuxing
because browsers dont support ac3/eac3 outside widevine, so we wrote a lib which transmux video streams real time from say mkv to MSE, and now we're making the part which converts unsupported audio codecs into... most likely PCM
for shit like firefox, safari or android
why not opus and aac?
why opus or aac?
its just extra work
this is on the client, there's 0 reason to re-encode the audio into another format
just... play it as is
opus is the most efficent audio codec and is stupidly fast, aac is most widely supported. both are faster and less datarate than fucking PCM
yeah but... that doesnt matter
you're just adding extra steps
this is not on the server
this is on the client
the data is already there
why waste CPU encoding it, when the data is already there, you just need to play it
yeah and i can transcode opus at 300x real time with 1 thread
so im sending 1/10 the data or less?
Means you know ffmpeg too right? Should I make a 30 dollar per month macos app that is just an ffmpeg wrapper
storing? what are you doing
playing it back
someone did this for yt-dlp like a few days ago right?
ahhh
this is a 1st in the world solution btw
Yeah but I mean there is a new cli tool wrapper (mostly ffmpeg) coming out every few weeks 
its crazy no1 else in the world did this b4
i just use MPV
all people did was "yeah lets compile all of ffmpeg into wasm, and take the ENTIRE video, load it ALL into memory, and then transcode the ENTIRE video"
just.... stream it pls
really the ONLY thing mpv has going for it imho is proper codec support
yeah its just ffmpeg
getting HDR working in it makes me want to kms, getting cropping in it makes me want to kms, getting subtitles to render correctly with hdr makes me want to kms
there's no fucking ui
just holy fuck
please
all of that works for me lol
yeah after u spent 14 hours configuring it sure
and people are confused why there's so many VLC users, because normies just want shit that works, not shit that you need to spent all day setting up
// rant
wdym why are they confused vlc is great
@ivory heath attack this man
like what else am i supposed to use
i agree its great because its simple to use, and it just fucking works
im playing games with my wife. i will later
but it has.... a lot of problems
with shit like color spaces, subtitle performance and a lot of other shit
not like i don't watch any videos other than my shadowplay gameplay
pretty much yeah
used to av1 used like double or triple the cpu usage in vlc because they used a outdated as shit version of their own fucking software (dav1d)
i see
join the cult
i have a growing pain with av1
because av1 could be used to greatly improve the video quality on the web
but instead, it will get worse because it will be used to cut costs, rather than improve the quality
and that fact pains me so much its unfunny :(((
discord supprots av1 embeds now
lc.g av1
AOMedia Video 1 (AV1) is an open, royalty-free video coding format initially designed for video transmissions over the Internet.
that said, i'm yet to get DTS working in chromium at all
supposedly the chromecast version of embedded chromium has it, but i was never able to get it to run or decode outside of it
i will never understand web devs
why?
my programming philosophy is DRY (do repeat yourself)
for me webdev is exactly about not repeating myself
i dont need 10 native apps with 10 gpu contexts, with 10 system binding interfaces, with 10 file handlers, with 10 cache handlers
just have the browser interface all that for me
waaaaaay less resources used, as long as you keep as much possible in the browser
đ
EKHEM STEAM NUKING PERFORMANCE EKHEM
insane people only in this channel
including you
that said, electron is a mistake, chrome is just sleeping on IWAs for some fucking reason
True. Web Dev mind set
whats so insane about me just having a video player that works
this site would oneshot soda https://haven.pages.dev/
Collection of small, fast, simple PWA's to replace native OS apps.
Using web browser for everything
yep
If it was up to me most things would be a TUI app
man this shit is like... 5 years old at this point?
if not more
its so brokey its unfunny
update when??
next year most likely?
Why would you prefer that over actual native OS apps
its over
because you can open it regardless of what pc or device your on
it uses way less resources than native apps if you've already got a browser open
and... thats about it
actually you know what?
here's why
no thanks I'm not opening 1.58 MB .pdf file
so insane
why would you use any of that
I'd prefer using a native application over web app
they are actually much more speedy and less bloated than web
(except manga reader i guess..?)
Youâre assuming bloated as shit native apps
operating systems notoriously dont come with image viewers, audio or video players
list one non bloated native app


