#πͺ -progaming
1 messages Β· Page 26 of 1
so i will use preact 
consider solidjs
nah
astro is very good
it's just that Astro is not meant to be used on its own for everything
you combine it with an ui framework
GUH
they hated him because he was right
i assume you didn't use starlight so that you could emulate the theme better
mhm!
neat
yeah it came out pretty good actually
i mean all the css was already done for you
that's usually the hard part
userdoccers being mostly mdx also saved you a lot of work
no not really
no not really
i had to patch a bunch of shit on the parser because they use a very outdated standard
neat
Meat
did we finally move to astro
no more shit- i mean next- i mean shitjs
alright nvm parent repo is still on shitjss

userdoccers will move to typst
NOW
oh no never
sad

i'll abuse my push perms to forcefully move to astro :^)
obv theyre hesitant to swirch because its effort
||/j||
what kind of effort
does the markdown content need editing
or would it just work by swapping out nextjs for the astro source
aside from the missing images mm no it should be fine
the list of the headers is autogenerated from md source so those could use a bit of cleaning up, lots of just jsonparams
(write a script)
meh
sed it 
idk theres lots of other stuff like google indexing and bla and idk ask splatter
if you wanna spearhead this be my guest π ill help fix stuff thats necessary
ok why can i not open dev tools on vesktop (asahi linux btw)
π #π₯-vencord-support-π₯
(Auto-response invoked by @nimble bone)
yeah small issue i got the dev build and all i want to do is open the console which is not just vencord related
any spring security person here pwease
Only winter here
lol
ok for macos do we like amethyst, aerospace or yabai for ricing (or any other alternatives) ive been meaning to clean my terminal etc up for a while and need a push to get it done
or even something like dwm might work if i can figure out a nice way to make it work
@jade stone well I cant respond in #πΎ-core-development but yes they do. I was working on a customized silent type plugin and noticed all my falsy inputs were being ignored
{
name: "chat-icon",
description: "Show an icon in the chat bar for toggling the plugin on the go.",
required: false,
type: ApplicationCommandOptionType.BOOLEAN,
},
Hello everyone!
Im new to Vencord / BD plugins, and im trying to write an actual AdBlocker for YouTube player. Any ideas how to do it?
Im thinking either adguard DNS, or just blocking specified domains or elements in client
Doesnt that already exist
I think so
huh
@sturdy stirrup dont you have a commit merged already
any source, link?
yeah it was the auxclick one
run vgh in #π€-bot-commands
hmmm, any other information to help me find it? lol
Anything bro
vp adblock
Block ads in YouTube embeds and the WatchTogether activity via AdGuard
lillith <3, Vee
desktop only
nice didnt know you had to do it after the commit was merged
Yea
canj i download it as .js?
No
hmm
ainβt the ads in yt embeds server side?
been hearing a lot about it
yeah, might be, that's why im wondering if It's better to do it via DNS for example
well i found it in source code lol, tho vencord uses typescript which i dont understand lol
Theres not much to it
If you know js well just read the docs
Well, i know js a bit, but just a bit
I just really suck at window management and I need something that actually incentives me to close my finder windows or terminal tabs after I'm done with them
so useful
They must
very useful ^^
option #2: rename javascript to rustscript
Would be better for marketing at this point
@nimble bone you love Oracle
lol?
Congratulations you are the 1740289th person to find that
Thanks
Copilot is perfect...
Can we get vencord aoc lb
advent of code written in veev
v+ needy @mild arrow
no aces
why no access :(
slow
Also no access
if you use it to learn a new languge the puzzles get a bit too hard..
yeah i tried rust last year
fatal mistake
before that kotlin
was fine until the jvm failed me
I have a question, how to get the latest version of vencord in plugin? Like in /vencord-debug
no access :( (I'm totally not the 4th person to say this)
Look at vencord debug code in _core/supportHelper
torture.
do it in jq
do it in awk
Do it in cat
I mean nix is turing complete and can output data via file output or debug logs so
NGL I wrote a script in awk once and it was better than I thought
cool repo 
just beat one
this one
"hard" challenge
look inside
why is typescript like this
ig cause the former is a Tuple not array
Meanwhile in java you cant even pass primitives in generics
Iirc itβs something with tuples being a special case
The length prop of a string is only available at runtime or smth
Try is readonlykey
also you might like this
https://marketplace.visualstudio.com/items?itemName=YRM.type-challenges
ok
Unit testing type system using type system is crazy
i'm very proud of this one https://github.com/type-challenges/type-challenges/issues/30594
consider typescript type system inside of typescript type system https://github.com/ronami/HypeScript
Jesus
is typescript's type system turing complete
Yes
aoc channel/thread when @royal nymph
@ionic lake hiii
doing good
never boo
once it starts
should we do one single channel or should we do a forum and make a post for every day
forum would be funny
normal channel is sane enough
ninooooo π
Give us atleast the code so i can join the lb
dum that is wild
any chance some1 knows why a patch that works in vesktop fails in web?
i copied vesktop's menu bar patch
but it doesnt seem to work
{
find: "platform-web",
replacement: {
// eslint-disable-next-line no-useless-escape
match: /(?<=" platform-overlay"\):)\i/,
replace: "$self.getPlatformClass()"
}
},
getPlatformClass() {
if (isMac) return "platform-osx";
return "platform-win";
}
skill issue? or is it actually something different about vesktop
Web doesn't have a menu bar, does it?
Did you check with patch helper?
here's the corgi generator i made last week! https://codeberg.org/programmingguy/corgigenerator
ye lol it just uses that
there is nothing different
make sure your plugin is actually enabled
hm
https://github.com/Vendicated/Vencord/pull/2994 its for this
and idk, struggling ig
i dont like this whole "yeah figure out plugins urself" shtick
i do agree it's kind of challenging
@veeeeeeeee private leaderboard link when
adveet of code
I will never get javascript
why does
window, this, self, globalThis ALL POINT TO WINDOW
"this" is understandable
you love decades of API buildup
globalThis is a new thing
it was added because it was complicated to properly get global in all environments
nodejs has global, web has window / self
self is inside workers
so all websites had ulgy code like
const globalObject = typeof global !== "undefined" && typeof process !== "undefined" ? global : typeof self !== "undefined" ? self : typeof "window" !== undefined ? window : typeof this !== "undefined" ? this : Function("return this")();
discord also has it 
668530: function(t, r, n) {
"use strict";
var e = function(t) {
return t && t.Math === Math && t
};
t.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof n.g && n.g) || e("object" == typeof this && this) || function() {
return this
}() || Function("return this")()
},
you love
this is just to get the global object 
that's why they added globalThis, it works everywhere (that supports it)
discord has this code (or similar equivalent code) like 7 times
because they are all different things,
window is window, only when there's actually a window, aka a DOM
this is the context, it can be window, it can be undefined, it can be an object
globalThis is the global execution scope, not always window, especially in workers, sharedWorkers, and its also compatible across js envs such as node
self is made for service workers, which references the sw context, which can in some cases not be global
simply use globalThis and not give a fuck
its not really ur job to add backwards support, its up to the compiler such as webpack or rollup which the end developer would configure
i guess exceptions would be shit like workers, since there's still not a good standard for importing and compilign worker code
i like webpacks new Worker(new URL('library/worker.js', import.meta.url).href) the most
mainly because its valid syntax and works outside of webpack too
Function("return this")(), god i fuckig hate this
it actually makes my blood boil holy shit
this is cursed
why is it so hard for js developer to be consistent
so bad
That works everywhere (except where it doesn't)
please just use if-else
i love globalThis
one liners sillier
came for scraper, got jquery, 0/100
uglier
prettier SUUUUCKS
i hate prettier so muhc
its awful
i hope someone has made a better formatter
subjective but i disagree with a lot of the formatting rules in prettier
and since its an 'opinionated formatter' there's no way to change it
rustfmt >
you can configure
tried
because it's so opinionated there's no way to configure what I want to
.prettierrc.json:
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": true,
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "none"
}
add useTabs: true
hi i am looking for a c# group to make things (not expecting to be paid)
I just enabled highlight updates option in react devtools
and wow
disord seems to use react properly
its kinda increadible for them to achieve this bad performance with somehow sane code that doesnt rerender every millisecond
react still terrible
a
why is shadcn so advertised when its just radix ui bruh
http://vanilla-js.com/ βββββββββββββββββββββββββββββββββ
anything related to animals and/or cool animations honestly
Also here, something different: Any DiscordJS Developer here who is open for comms? :3
just learn coding
Thats why I have money
You know there are people who do not have the time to learn this. And this people pay others for it π
That is very much understandable
And before seting up people on Fiverr i put it in here cause I like this community and wanted to give people who might need the money a chance before I give it to another
:))
how much money
you should give more details like what do you want done and how much are you paying
Enough
Sure, rn just looking for a Modmail Bot with some extra Commands π I pay hourly so yeah
i used to make minecraft plugins for like 10$ and i scammed myself for probably a lot of money im realizing now
Do you still code Gameplugins?
I mean I am also looking for Java Devs
And no I do not underpay
what are you looking for?
Too much. Working on a Freebuild Retro Server
Send you a PM
*FR
yeah you did
We can make a deal if you don't have someone else :)
So I still need a Discord Dev (now), and a Java Developer (Jan 2025).
i can do the discord part
Sure, PM me
-- Job opening closed --
Found 2 nice devs. Thanks for everyone who wrote me :3
What did I just witness
a small case of unemployment being solved with programmers
peak
peak
if you need additional help later im available
ok doing this advent of code is slightly harder in google sheets than i thought it would be
(oh oops didn't realize there's a channel for this)
well more annoying than difficult
i wish reduce() did what i want :(
@royal nymph you
program i am using segfaults on close
#0 destroy_queued_closure (closure=closure@entry=0x555555575f40) at ../wayland-1.23.1/src/wayland-client.c:284
#1 0x00007ffff7e98369 in wl_event_queue_release (queue=queue@entry=0x55555558c5d8) at ../wayland-1.23.1/src/wayland-client.c:341
#2 0x00007ffff7e98720 in wl_display_disconnect (display=0x55555558c4e0) at ../wayland-1.23.1/src/wayland-client.c:1366
#3 0x00007ffff7f26cf0 in _glfwTerminateWayland () at /usr/src/debug/glfw/glfw-3.4/src/wl_init.c:991
#4 0x00007ffff7f0edeb in terminate () at /usr/src/debug/glfw/glfw-3.4/src/init.c:124
#5 0x00007ffff79a4c62 in backend::end() () from /usr/lib/libsdrpp_core.so
#6 0x00007ffff786fe19 in sdrpp_main(int, char**) () from /usr/lib/libsdrpp_core.so
#7 0x00007ffff7634e08 in __libc_start_call_main (main=main@entry=0x555555555020, argc=argc@entry=1, argv=argv@entry=0x7fffffffd5a8)
at ../sysdeps/nptl/libc_start_call_main.h:58
#8 0x00007ffff7634ecc in __libc_start_main_impl (main=0x555555555020, argc=1, argv=0x7fffffffd5a8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffd598) at ../csu/libc-start.c:360
#9 0x0000555555555055 in ?? ()
i told author
they said its glfw fault
they kinda scare me
and i dont wanna argue with them and idk how to interpret gdb backtrace
sdr++
insane what is that
idk just tell them you have no idea how to read that and if they have any pointers
chances are they have no clue
me when someone reports some obscure graphical issues or crashes to vesktop (electron / chromium fault)
idk why it happens or how to fix but people expect me to know 
what the fuck was intel cooking when it made avx2
does golang suck? (my friend is convincing me to try it)
if err != nil {
return nil, err;
}
ill tell her to update then
bc we were debugging issues with streams
we thought she was up to date
is there an insomnia alternative which doesn't have annoying account stuff
i upgraded insomnia and it deleted my project with no option to restore it

and insomnia might be open source but it's super artificially limited with what you can do locally
yeah
original insomnia dev made a new thing
just found it
i love arch
instead of people providing packages you need to find suspicious looking aur packages
yaak?
yeah
Insomnium
What is it
yaak
archived
probably Yet Another Api Client
just using a k instead of a c to reference the animal
Would make sense
YES
terrible language
it's good
Crystal is unironically such a good language, it's just a shame the language server is a bit lacklustre in some aspects
nop
it's like a joke language that somehow became popular
there is so many baffling decisions made as a result of ignoring decades of modern language development
yop
Error handling? What's that?
Sum types/adts? Never heard of it
Unused variables? We don't do that here
even something as shrimple as generics took like a decade and are still very mid
Go is a very solid and simple language. I wouldn't listen to these opinions, they're subjective. Just give it a shot if it seems appropriate for what you want to build and see if it's for you
yeah if you like it that's fine
but just because go is objectively simple, doesn't mean it's easy
the complexity is always hidden away somewhere
Go is very easy lol
easy on the surface
go a bit deeper and you realize how much of a mess there is (from my pov)
Go sticks with a very simple, deliberately limited syntax with little abstractions
Thanks to that, you can learn the core language and get used to its syntax within a few days, in tradeoff for more "boilerplate" in some things
And the stdlib is plentiful with good documentation and multiple sites filled with useful example code snippets
I would put no abstraction as a massive con, not a pro
subjective
python
I cannot refute that
I don't like how abstraction heavy kotlin is for example
kotlin code is often very difficult to understand if it wasn't written by you
i like kotlin, but i've never really learned the basics i just jumped into contributing to a minecraft mod in kotlin
depends on how much abstraction you yourself write
this is definitely applicable to rust though
I struggle to understand crate apis without reading the src
Kotlin, Rust, etc
it's so hard to understand stuff because it's so abstraction heavy
i dislike that
Lack of heavy abstractions makes it much easier to understand code. I can understand other people's go code without needing a PhD in rustology 
i remember seeing one of the original go developer's (brian kernighan i think?) mentioning in a quote or talk that go was designed to be kinda dumb and simple, since one of their goals was to make it so a beginner and expert would always write generally the same specific code to solve a problem
But you have to read two phd theses' worth of boilerplate to figure out what a golang program is doing
and when the original implementation was being written internally, he also mentioned that they had a sort of implicit deal with eachother that if one of them wanted to add a specific feature to the language, they needed to sell the idea to the other 2 or 3 people working on it before they can add it
yop
ive been wanting to try go for soooo much time but i havenβt yet
also writing go just feels very run and refreshing to me
it starts to all make sense when you learn rob pike called syntax highlighting an infantile disorder
regex my beloved
wtf is that
that looks nonsensical
all the regex i write much easier to read than that?
ig i write regex for different things
transforms
vim.keymap.set("<MODE>", "<LHS>", "<RHS>")
into
vim.cmd("<MODE>map <LHS> <RHS>")
lowkey not even that bad
(?P<localPart>^(?:(?:\"(?:(?:[a-z0-9!#$%&'*+\-\/=?^_`{|}~,<.>;:\|}\]\[\-()@])|(?:(?:\\\\)|(?:\\\")))*\")|(?:(?:[a-z0-9!#$%&'*+\-\/=?^_`{|}~]*)|(?:\.[a-z0-9!#$%&'*+\-\/=?^_`{|}~]))){1,64})@(?P<domain>(?P<sld>(?:(?:(?:(?!(?<=@)\d*(?=\.))))(?:[0-9])|(?:(?<!@)\-(?!\.))|(?:[a-z]))*)\.(?P<tld>(?:(?:(?:(?!(?<=.)\d*(?=$))))(?:[0-9])|(?:(?<!@)\-(?!\.))|(?:[a-z]))*))
this is one i wrote that's way worse
email validation :3
it seems like you could just do . instead of this horror```
[a-z0-9!#$%&'*+-/=?^_`{|}~,<.>;:|}][-()@]
its not all chars
just those
it cant be all of unicode
and it doesn't support literal . as per IETF standards
maybe you shouldn't do it all with regex then?
felt like it
i also had to implement a stop if it goes over 2k steps because its prone to runaway
its so poor quality but if it works it works

validating an email with regex is insane bc urls/email addresses are an incredibly weird standard
theres so many edge cases and order of operations shit
its easiest to just check if the input contains a "." somewhere after an "@"
true but some extremely simple validation should at least be done client side
.
some languages have url parsing in their stdlib you can also use

java/kotlin oop hell is so bad
Chat, so let's just say I have some confidential files in my external hard drive, mostly images, videos, documents and PDFs in a folder, that's around 100gb in size. How do I hide/disguise them so that the police won't see them when they search my files? (They're just evidences of me and a few friends plotting shits against the dictator and other illegal stuff like our protest marches etc. that could get us end up in the gulag)
I thought of 2 ways, I could just hide them, like hidden folder, but it's just a matter of ticking a box in their computer and also they can see the space occupied in the drive and will notice a 100gb missing. Or, this smarter method, I can zip the folder, and rename it into a .java file and tell them it's my programming stuff and they won't know what a java is and will just assume having a 100gb java file is normal. But the downsize is that I would have to uncompress it every time I want to access a file (which takes about 3 hours), and also when you open the java file, you would see the ZIP keyword in it, which just gives it away.
Orr, I could just hide it in plain sight, which I've tried before, where I would copy the folder structure (not files) of my C drive, and then put the 100gb folder somewhere in it, so like maybe AppData/Chrome/Update/[Folder here], along with other empty seemingly system files. But again, this can be easily discoverable with a file scanning tool which will show the location of where most large files are. So, what about putting it in another partition that is only accessible by me on my laptop, and not by anyone else in other laptops? Like when you plug a drive in the USB port, it mounts all the partitions, but what if I make it default so it looks like there is only 1 mountable partition and the other "hidden" partition looks like a system partition, but it's not and I have to manually mount it, and I'll be able to access the files after I do. How's that? Would that work, like is that possible? If so, how would I do it? Is there any weaknesses to that method? Or are the other three methods i mentioned superior?
sledgehammer
What happpend to encrypting zips and partitions
Step 1 is not posting an admission on a public discord server in a public discord channel
that too
thanks for answers guys, i will never ever touch it and my another friend won an argue because of these messages
deranged
try out the language yourself and make an opinion yourself
no
Thanks
is this a copypasta
- don't post a confession in a public server
- enable full disk encryption with a very strong password for one of your disks, don't tell it anyone or write it down anywhere
- move the files onto the encrypted disk
- overwrite all your unencrypted disks that had any of this data at any time fully with random bytes to ensure there is no data left recoverable
- make sure your disk is actually encrypted if your house ever gets raided (i.e. make sure your pc is powered off)
- realise that if you live in a country where you need to fear punishment for resisting against the government, they probably won't care if they find something or find an encrypted disk, they will make up some bs reason to arrest you if they want

@frosty obsidian jolly wong i require assistance
doing aoc
just forget the password
simple as that!
(well don't remember it in the first place)
At that point why not just burn the drive
ok soon i wanna try making a mobile app from scratch what are the best langauges to do something like this in? and should i build it with gradle or is there something better?

Everyone knows you put your data on a microSD card (relatively affordable) and then eat it
kotlin, or react native if you're insane
your options are flutter or react native if you want platform-agnostic code
you can use java/kotlin for android and objc/swift for ios
or you could use something like capacitor to turn a web-app into a mobile app similar to electron
keep in mind that react native is far better than flutter and its not even close (if you wanna go that route)
Everyone knows the only correct way to make mobile apps is to make terminal programs and run them in termux
true
depends on what you want the app to do and what platforms you want to support
I hate react native
(that's the joke)
why use a ui
ah... this seems fair
it's a bit confusing
it looks like you need to pay to use it
veracrypt can make a partition that looks like random noise when encrypted
VeraCrypt is free open-source disk encryption software for Windows, Mac OS X and Linux. In case an attacker forces you to reveal the password, VeraCrypt provides plausible deniability. In contrast to file encryption, data encryption performed by VeraCrypt is real-time (on-the-fly), automatic, transparent, needs very little memory, and does not i...
yeah true 
if you live in a country with poor rights they will just torture you until you give them the password
that won't help in real life situations because any smart person will be aware of this and ask for the real password
it explicitly says you cannot know whether there is a hidden volume
yes but if you raid someone and find out they use veracrypt and they give you the password and you see uninteresting data then it's obvious there's a hidden volume
that's why you don't put "uninteresting data"
To the outer volume, (before creating the hidden volume within it) you should copy some sensitive-looking files that you actually do NOT want to hide. These files will be there for anyone who would force you to hand over the password. You will reveal only the password for the outer volume, not for the hidden one. Files that really are sensitive will be stored on the hidden volum
i mean sure, but they will be aware of that possibility as well
just the fact that you're using veracrypt will heavily imply a hidden volume

if your jurisdiction tortures you to give out data, if they believe you did anything and can't find anything, they will just make up bogus charges and execute you
encryption still goes a long way
just dont have incriminating info? clueless
nothing's perfect, if they're willing to torture you you're gonna get tortured
be a model citizen 
gitmo?
if they torture you then no encryption matters
i was assuming a scenario where it does matter
thats the point xd
ex. a normal law enforcement raid
there, encryption absolutely does wonders lol
if law enforcement sees veracrypt they'll 100% assume hidden volume
then u have plausible deniability
then what
they have to prove your guilt
i guess
it is not illegal to have an encrypted volume
"idk what you're talking about officer, all i see is empty space"
real
because that's all there is
or you could just admit it but refuse to give them the password
makes your life easier if you don't
technically wouldn't used space size reveal it?
there are a few jurisdictions where they can force you to give it out but in most good jurisdictions you have the right not to incrimate yourself
so they have no legal basis to punish you for not giving out your password
they either have to crack it somehow or have to cope
what if you're in one of those few jurisdictions and you tell them you forgor 
in canada they can't force you
pretty sure in the UK you can be arrested for it lol
cuz it's considered speech
and the right to not self-incriminate applies
pretty cool
I live in the country where the dictator is good friends with Putin, Kim jong and xi, we don't have human rights here to defend our data π
after January 20, this won't narrow it down for me
also, what country
Oh.
Military junta
https://youtube.com/shorts/hq7EJRgJXog sometimes I'm telling myself that i shouldve kept instagram account
Javascript is the final boss..
You might think youβre having a breeze especially if youβre a computer science major first stepping into web development.
As the first things youβll learn is html and css.
And same for coding bootcamp students.
But the truth is.. thatβs just preparing you for something very very big.
And itβs javascript.
Itβs...
who the fuck takes notes when programming
βyeah iβll need to remember that the type of NaN in js is a numberβ
βlet me write that downβ
notes more useful when you need to architecture something first before implementing
Nah, architecturing can wait
or else you can end up writing code and re-writing a bunch of times
to get a proper final solution
did it ever get functional tho?
cuz I mean having to rewrite before it gets functional
I've been spending the last week refactoring a major component at work
since the idea in your brain wasnt thought enough and had flaws
Looking forward to resolving the merge conflicts
lmaoo
not much your fault it wasnt done good before π
or is it
I wrote that component
I do that so much
refactor once -> look at it two days later -> wait why is this done like this
I wanted to do another refactor, kinda syntax sugar thing, but due to a msvc bug I can't :(
what the hell
the point i was trying to portray was more about taking notes about content you learn like from school
because that stuff is usually pretty easy
if i wanted to make a program that added cool particles and trails nshit to my mouse, what programming language would i use?
jsx and electron
nvm
ifound it
its not EXACTLY what i wanted but mf im takin it
nah
why is it saying this (im in a java project)
Because you know you want to
you will soon become a kotlinion
i just realised macros are technically compile-time interpreters
so are typescript types
Clyde was lobotomized
i pro all over my gaming
Wgat
fn main() -> int {
io.say("hello!")
sc c1, c2, c3 := 'c', 'b', 'a'
sc concatted := {c1, c2, c3} // strings are char arrays
sc a := 5
sc adder := create_adder(a)
io.say(adder(3)) // 5+3
io.say(create_adder(10)(20)) // 10+20
// sc num_ptr:int* = new ? as 0
sc num_ptr := new int as 0
if (nullable_returner(false)) |ret_val| {
io.say("the nullable returned number: {ret_val}")
}
rc arr := {5, 3, 8, 6}
sc accum := 0 += for (_ in arr)
// += effectively expands into arr.len prefixed addition ops
io.say("contents:", for (_ in arr)) // "unfold" elements of the array
io.say("sum:", accum)
for (elem in arr) -> {
// do something
}
}
fn create_adder(int num1) -> fn(int num2) -> int {
return fn(num1 + $1)
}
fn nullable_returner(bool ret_null) -> ?i32 {
// if ret_null then null else 42
if (ret_null) null else 42
}```
how bad does this look
Is sc and rc some kind of types?
@valid jetty
scoped vs refcounted
the idea is sc will be the go to for most things
it'll auto free heap objects once out of scope
is this like
syntax ideas
ye
teehee
basically i want a fp lang that looks like a non fp lang
show
this is the very very first prototype
// Import statements follow a lib:file@{method1, method2...} format;
use elle:io@{print};
use elle:int@{random};
const languageName = "Elle";
// Use `pub` to make functions public so they can be imported by other files
// You *must* expose the main function for it to be runnable
pub op main() {
let resWithThree: Int = randomWithMultiplier(3); // Returns a random number between 0 and 10 multiplied by 3 using positional arguments
let resWithSixteen: Int = randomWithMultiplier(multiplier: 16); // Returns a random number between 0 and 10 multiplied by 16 using keyword arguments
printMessage(
"First result is %d and second is %d",
resWithThree,
resWithSixteen
);
let maybeRes: Int? = randomWithPossibleError();
if (maybeRes) {
// In this scope, maybeRes is just Int32 not Int32?
printMessage("Result is %d", maybeRes);
} else {
// This is a character because it's a single quote.
printMessage('a');
printMessage("Oh no! We failed.");
}
}
op randomWithMultiplier(Int multiplier) -> Int {
// If a function uses keyword arguments they must *all* be keyword arguments
// Use the ret keyword to return from the operation
ret random(between: 0, and: 10, included: true) * multiplier;
}
// Operations can either return a value or void.
// `nil` is the undefined/null value in Elle.
// Use the '?' operator at the end of the return type to denote that the function can return nil.
op randomWithPossibleError() -> Int? {
let result: Int = random(0, 5, true);
// Match keyword works very similar to other languages
ret match result {
3 -> nil,
val -> val,
}
}
// No return argument needed if function returns void
// Note that this is *only* if the function returns void
op printMessage(String message) {
printf(`[%s] %s`, languageName, message);
}
btw that's for distinguishing from non looped fors
whats a non looped for
basically like variadic args but works everywhere
interesting
reminds me of odin syntax
it's not that unreadable
needs more work
π©
yeah since then it looks completely different
modern syntax looks nothing like it
use std/collections/array;
use std/split;
use std/cast;
use std/io;
fn s1(string contents) {
Array<string> *parts = contents.split("mul(");
i32 sum = 0;
for i32 i = 0; i < parts.len(); i += 1 {
Array<string> *numbers = parts[i].split(",");
if numbers.len() > 1 {
i32 left;
string end = "";
i64 right = numbers[1].strtol(&end, 10);
if i32::try_parse(numbers[0], &left) && end[0] == ')' {
sum += left * right;
}
}
}
return sum;
}
fn s2(string contents) {
Array<string> *dos = contents.split("do()");
i32 sum = 0;
for i32 i = 0; i < dos.len(); i += 1 {
string contents = dos[i].split("don't()")[0];
sum += s1(contents);
}
return sum;
}
fn main() {
string contents = io::read_to_string("input.txt");
io::dbg(s1(contents));
io::dbg(s2(contents));
}
pretty rusty
use std/io;
struct Foo<T, U> {
T a;
U b;
};
fn Foo::new<T, U>(T a, U b) -> Foo<T, U> {
return Foo { a = a, b = b };
}
fn Foo::double_all<T, U>(Foo<T, U> *self) {
self.a *= 2;
self.b *= 2;
}
fn Foo::get_a<T, U>(Foo<T, U> self) -> T {
return self.a;
}
fn Foo::get_b<T, U>(Foo<T, U> self) -> U {
return self.b;
}
fn main() {
Foo<i32, f32> foo = Foo::new(100, 1.2);
foo.double_all();
io::println(foo);
}
its made in rust so thats my mindset
actual headcrab evolution in action
yup
here we go this is the one that has the most stuff
use std/io;
struct Foo {
i32 a;
};
// `Foo`, only gets a copy of Foo
fn Foo::add(Foo self, Foo other) {
return Foo { a = self.a + other.a };
}
// `Foo *`, edits in-place
fn Foo::divideBy(Foo *self, i32 num) {
self.a /= num;
}
fn main() {
Foo foo1 = Foo { a = 10 };
Foo foo2 = Foo { a = 30 };
// The compiler automatically passes a reference to Foo if the function needs `Foo *` and not `Foo`
foo2.divideBy(15);
Foo resWithInstance = foo1.add(foo2);
Foo resWithStruct = Foo::add(foo1, foo2);
io::assert(
resWithInstance.a == resWithStruct.a,
"Instance and struct methods should produce equal results."
);
io::dbg(resWithInstance, resWithStruct);
}
and it's already obvious what lang i'm writing in
lmao yeah
gleam ahh imports
use literally the devil
you have created the bastard child of rust and go
is it gc'd
what language is this
Using frameworks for static sites is weird
astro is great
but thatβs more of a SSG than a framework
Svelte 
vanilla-js βββββββββββββββββββββββββββββββββββββββββββββ
both
nah not necessarily
just throwing insane bloat at it is
not every framework is bloat
if you make ur static site an entire nextjs react gigaslop app, sure
but if you use something cute like astro or svelte, that's alright
i meant horsesboe crab
what was i thinking π
or SOLIDJS
astro is good for static sites
svelte......
gwat
may I ask, how does solid differ from react
I have searched it multiple times and I still dont get what it is exactly
different state management and not as bloated
that's about it
iirc I saw useState in their website and I was like... that's the same?
createSignal
it's very similar in that it has signals (state), effects and memos, but it's less black magic and effects/memos track dependencies automatically. the trade-off is that the value is a getter function instead of the actual value
interesting
const [value, setValue] = createSignal(42);
createEffect(() => {
console.log(value());
}) // automatically re-runs whenever `value` changes
const valueTimesTen = createMemo(() => value() * 10); // automatically recomputes whenever `value` changes
it also has inbuilt stores which function kinda similarly to Vencord settings proxy (though for changing properties you use setter function)
ok someone help theres no way there isnt a smarter way to do this:
echo -e "<b> "$(date +'%A' | tr '[:lower:]' '[:upper:]' | sed 's/./& /g')" "$(date +'%d' | tr '[:lower:]' '[:upper:]' | sed 's/./& /g')"\n"$(date +'%B' | tr '[:lower:]' '[:upper:]' | sed 's/./& /g')" "$(date +'%Y' | tr '[:lower:]' '[:upper:]' | sed 's/./& /g')" </b>"
this looks horrible
i hardly know what its doing anymore
what's the end goal
its for my hyprlock setup
wtf
write it in a proper programming language
simple python / perl script or write it in a compiled language
yes but you can just make a script/binary that prints that and call the script
it also only "renders" once, the function only runs once and the dom gets updated from reactive value triggering effects
also no virtual dom
yall youngsters want everything virtual these days
man fuck this shit
it shoves it up my face whenever i open dev tools
i might consider switching to laravel from spring boot
i dont know any other mvc based backend frameworks
please help me
omg crystal logo song
how can i like measure electron ipc speed reliably
maybe ill ask in an electron server
Stopwatch β±οΈ
have you tried if it works
299,792,458 m/s in a vacuum
Well
not quite
That's the speed of light
Electrons are even slower
or slower to some degree
no idea how
someone that isn't stupid can inform us all what the speed of an electron is
pls
Pretty sure it depends on how fast you make it go
i.e itβs arbitrary but definitely less than the speed of light
its faster than a snail
You sure? I'd have guessed the electrons that make up the snail moves at the speed of a snail
They orbit around the atom faster than the snail
Well at this point teleport but you get the point
is it normal to have session based auth when the backend and frontend is splitted(laravel, nextjs)? or i should i use jwts
its more of a if people do it this way
depends
jawts are easier to scale horizontally aka don't need storing them but are complex to implement securely than cookie based sessions
i would implement jwts, but i want to be able to control the user logout, generally to do this with jwt, you would need a database already, but then it seems like jwts loose its point
yeah, no need
https://www.youtube.com/watch?v=3DvBGGZfH-I
java is slow and outdated π but have you ever tried it?
Similar to where I was rating Linux distros and made a wacky tier-list for them, I thought I'd do the same but with programming languages, since it only makes sense... Probably the final one of these I'll make!
It's like horoscopes but for nerds... featuring C#, C++, Python, Rust lang, and others...
If you're above 18, feel free to join our on...
i learnt python
https://x.com/cognicarbon/status/1865221602407071927
free access to the paper if anyone is interested:
The author argues that a programmer's first language significantly shapes their future coding style and problem-solving approach, potentially limiting their ability to adapt to different paradigms later. While not insurmountable, overcoming the ingrained habits from that initial language can be challenging. Essentially, your first programming language leaves a lasting imprint on how you think about programming.
the obvious solution here is to not learn a first programming language but to learn 5 at once
is there a formula based on stuff people usually work with, like voltage, current, etc.?
Can't you just learn Kotlin
Java isn't slow
but outdated, pretty much
Pretty sure its dependent on voltage
Canβt recall the formula now though
One sec
I know kotlin, but java serves its purpose
What is its purpose, as compared to Kotlin's?
Javas purpose it to be very explicit and verbose and object oriented
Kotlin is more
Scripting i think
Yeah, the first two, or at least, the middle one is so damn annoying
Then dont use it??
I could say all of those are annoying, but it's really only the way Java does it, I think
Like
I'm just wondering why people prefer Java over any other JVM language
It would largely depend on what i want to make
If i want to make backend service, i will still choose java because i like mvc pattern and spring does it well
Explicit is nice to a degree, verbose is good if done right, and OOP is nice if it's not annoying to work with and not a bunch of ISuckMyCock spam
ISuckMyCock actually violates javas naming conventions for interfaces
Its more c# thing
Fine, Suckable
Now we're talking
class Femboy implements Submissive, Breedable
not outdated either
WORKS EVERY TIME
how to defeat any functional programmer:
- tell them about the stack pointer
- profit
when did i get husked
mutation
atoms are mutable refcells so you use ! funcs for them
what language
clojure
HOW DID I GET TEN HUSKS
husk tu-
what is an atom
matter
smallest unit making up all matter
Atoms are the basic particles of the chemical elements. An atom consists of a nucleus of protons and generally neutrons, surrounded by an electromagnetically bound swarm of electrons. The chemical elements are distinguished from each other by the number of protons that are in their atoms. For example, any atom that contains 11 protons is sodium...
Atoms are the basic particles of the chemical elements. An atom consists of a nucleus of protons and generally neutrons, surrounded by an electromagnetically bound swarm of electrons. The chemical elements are distinguished from each other by the number of protons that are in their atoms.
buh
Quarks anyone?
Or maybe just subatomic particles in general
They don't matter
They are made of basically nothing
kotlin is more sane i think
You know this is my first time checking this channel in a long time and idk if seeing this makes it a good or bad thing I did.
Kotlin is a multi paradigm language featuring OOP (MOP), functional, and basically C.
MOP? π§Ή πͺ£
Message oriented programming. Object oriented programming is a misnomer
In proper hierarchical OOP you wouldnβt have a mechanic class directly modifying a door object it would use the master class of car to do so. Car would send a message from mechanic to door to modify its internal state http://userpage.fu-berlin.de/~ram/pub/pub_jf47ht81Ht/doc_kay_oop_en
That structure is stupid tho because you end up with a lot of classes that do nothing but manage messages
I'm more of a sanity oriented programming kind of guy
If there's no invariants to maintain, just make that damn field public
Iβm tempted to learn rust
rust is so good
Only thing it makes me happy about is the lack of βundefinedβ state
That's one of the best parts
I hate the syntax the toolchain sucks.
i thought you said music oriented programming
i actually had an idea
what if you used a piano keyboard as a computer keyboard
I think you would annoy your coworkers
assumed i have a job

well i do
my job is procrastination
i am a professional
my job is secretly being a ball of glitter
well you havent seen me irl
so how would you know whether i really am secretly being a ball of glitter or not
i could be bluffing
rate my vs code setup :)
The gray keywords are unreadable to me and will probably cause eye strain or near sightedness
and I don't know how I'm still getting husked π
probably a good color for inlay hints, but not for keywords
same
if i have a job it will probably involve the same thing i do right now
which is sitting down a lot and writing code at a glacial pace
:3
i love when i can't do my homework the other way
even tho this is a completely valid code that returns what is intended it just doesn't count it
why thumbsdown 
your linter setup is broken
youre missing spaces on the imports and a newline after
bruh what is }catch(e){ who does that
undefined state is good, sometimes you dont want to initialize memory
In which case there are ways to opt into that
But in the common case, you do want to initialize stuff, so that's the most convenient

that's my coding style :|
did you even heard about error handler?
python my beloved

most annoying programmers be like:
python is ass
- that's what we study at school
- why
its not like even a programming language
when i code python
i feel like im coding english
wdym
how i explain
it don't give me the programming feel
you know
its too easy for a programming language
Spice it up then, like I do
plus
what'd u rather solve stuff like aoc in?
if not python
explaning please :|
my first lang is not english
what language would you solve tasks like from Advent of Code if not in python that is "too easy"?
anything complicated seems just like pointlessly making your life harder
wait a sec
i don't know how you're saying it
are you angry, annoyed?
its a argue or just simple talking?
no, i'm geniuinily just curious what you would choose
js,c++,java, something that make me feel im programming
even for simple tasks
plus
they are faster
i mean js doesn't seem much "harder" than python
js is not hard
but not easy as python
Python is very good for aoc
what is aoc? i never heard about it and i don't want to read that document :|
Programming puzzles of increasing difficulty pasted each day
yeah
if i got right
that mean simple things?
im sorry, im so dump T_T
First few are simple
if you chose like c++, you'd probably have to manually write some stuff that is already present in languages like python instead of actually spending time on trying to solve the puzzle
Just, read it
i mean there is definitely something fun about that, but why not just use python in that case?
im disgusted by availability of all backend frameworks for java, i will make my own instead
- Spring is too complex for no reason, nobody needs 10 different filters for one single request
- Ktor is too kotlin
- Javalin is too inline, i want mvc and spring features
writing few line code that you always write is that hard?
Boilerplate is boilerplate
code you always write - probably not
but how can you be sure you'll get to make stuff you have already made
and not something you haven't even used before
hmm
you're right
if you want to do simple things
don't mind to use python
but
python is ASS for big projects
Oh, certainly
i mean
its too fuching slow
but still peoples act like they found best programming language in the world
It's fast to write and fast enough unless you're bruteforcing
cause its like you're writing english
And that's a bad thing?
"brainfuck"
it's a really simple language
reason it's "hard" is that the most basic thing takes 10 years
its just math
Syntax is the least important part of any language anyway
+ to increment
- to decrement
< to move left
> to move right
. to output
[ ] for loops
Python would be exactly the same language, only a tiny bit more obnoxious, if all keywords were emojis and the whole code was written backwards
I mean yes but a lot of people tend to be opinionated over syntax
i swear one day python will add a AI to codes
There's people who dislike rust's syntax for example
what does rust use for?
That sentence is a syntax error
I can't say I dislike its syntax but it definitely is not something I've seen before
I think it's marketed as a systems programming language, meant to become the new C++
Well doesn't completely replace it
maybe one day 
hmm
me going to learn rust after seeing this message:
Fair, just feels really nice to write in personally
Reason I say it's probably not going to replace C++ is due to like legacy codebases with bajillions of lines of code
And Rust itself doesn't integrate too well with C++ to my knowledge
(might be misinfo)
There's still stuff legacy systems in cobol and fortran after all
is there even a good programming language?
Yes there's a lot of great ones lol, it just depends on your use case
backend and windwos/linux application
I think any interaction with C/C++ code would make Rust code unsafe
Yes, ffi is unsafe
at least that's what happens when you try to use a function from a DLL
Ah yes the language that uses columns
Is it true that if you know Cobol you're guaranteed a job?
If you're okay with hating every day, probably
Lmao
me hating myself every single day:
well cause nicer* syntax means you'll have a nicer time writing code
* definition of nicer is subjective
integrating anything with cpp is terrible
Anything non monolithic makes rust unsafe which is why a lot of people question its use in the Linux kernel
Rust does not have its own βsafeβ abi and at this rate never will and even if it did literally everything talks in C not rust
Cpp is like a gun, except shooting your self in the foot it blows your whole leg off
Nothing really does.
Instead of β1:1β mapping in like C because C++ supports more complex ideas like classes and interfaces, your language then has to support things like Fat pointers and integrate it c++ fat pointers as well
And itβs all a big cluster fuck
When C just works
no i think you quoted it wrong
In this analogy c/c++ IS THE GUN
I didnβt literally quote it word for word but they have the same damn meaning
Is this a me problem or did the server list api break again?
Neither in nor above work
if I have a function which accepts some variable array of strings, and returns a string(they are all unique), how would i go about constructing some sort of a dependency tree?
@sharp frigate ?
I've already set up Vencord dev, read the documentation about the first plugin, usersPlugins and plugin. However, it's very brief, and doesn't explain much about how Discord modules work. I noticed that Discord had modules and they were identified with numbers by reading codes on github
i requested access
Please tell me how I can post my plugin? And if there are any unusual rules?
For #1256395889354997771 : read pinned post
For the vencord repo:
https://github.com/Vendicated/Vencord/blob/main/CONTRIBUTING.md
thank you
hmm
Yeah but in rust you can write yourself into a corner, and either have to box stuff or do a whole re-write to implement something that the system didn't account for
Async 
Async my beloved
My hated.
Imagine not doing multiple things in parallel
Concurrency is good but function coloring isnβt
Real life example of why Itβs bad even. https://youtu.be/TZxxWXVnb1E
Recorded live on twitch, GET IN
https://twitch.tv/ThePrimeagen
Reviewed article: https://corrode.dev/blog/async/
Author: Matthias Endler | https://x.com/matthiasendler?s=20
MY MAIN YT CHANNEL: Has well edited engineering videos
https://youtube.com/ThePrimeagen
Discord
https://discord.gg/ThePrimeagen
Have something for me to read or react ...
instead of watching him I just click the video, go to the description and read the actual article
Wrong video. I like him cause was an actual senior dev with experience in a fuck Ton of languages
This was the right video. https://youtu.be/_lwvoBBqa9k
article https://nullderef.com/blog/rust-async-sync/
Itβs funny that the rusts community solution to this was effectively the same runtime golang uses
slightly deranged
concurrency isnt parallelism π€
To be honest idk which means which. I prefer just saying βmulti threadedβ and concurrently






