#πͺ -progaming
1 messages Β· Page 20 of 1
I'm on vacation in JP right now
ace is onto you
is he from Japan?
wth
if you decode erl gateway with small_big integer actually being a bigint you get bigint ids
ah
as it should be
storing snowflakes as strings is inefficient
not only does it use more memory but you'll have to do casts chenever you want to extract information from the snowflake
yeah but their reference erlpack implementation is just lazy then, they turn big integers into strings if > 32 bits
π
napi even has an ok ish api for that usecase https://nodejs.org/api/n-api.html#napi_create_bigint_words
now i cant decide
do i "properly" decode into actual bigints or do i keep to the reference?
is it possible to make a embed maker as a / command without needing a 3rd party website ot bot?
no
how would i make a jiggly button using css
is this the code for creating a guild tag or activate one?
i just activate a plug i didnt wanted and i feel lost
?
hi
no, go #π₯-vencord-support-π₯ or idk
but how will they now about what i'm talking about if this was a code?
chat is this guy retarded
you do not have to instantly call people that
fr
i didnt, they had a chance :3
?! 2nd message, and i hope that you get this into your skull that going around calling people slurs is unacceptable for any reason
its not getting in my skull no
you didn't need to be rude
felt like it
too early he just asked one question
only if the brainrot is overwhelming
is plain text
If you edit Markdown in a WYSIWYG editor, then it's not a text editor
Anything that edits rich text is not a text editor
Text editors are for plain text
I said "closer to what people call a text editor" in reference to VS Code, which blurs the line between text editor and IDE
Text editors edit plain text and nothing else
yes you do :3 ||/s||
Does this imply a 3 category system of
- Plain text editors
- Code editors
- Word processors
where an editor could be in multiple categories?
true
Code editors cant edit plain text files?
holding back from dropping hard r
Word processor?
No my processor processes binary
nah but BRO
Anything that edits rich text is not a text editor
Text editors are for plain text
I said "closer to what people call a text editor" in reference to VS Code, which blurs the line between text editor and IDE
in one place you go "oH iT bLuRs ThE LiNe So ItS cLoSeR tO wHaT pEoPlE cAlL a TeXt EdItOr"
and then in another place you are "if it does rich text it isnt a text editor since text editors only do plaintext"
like shut THE FUCK UP
choose one, the general perception or technical perception
dont fucking mix your logic to prove a flawed point
you'll need a bot (even a worker would do)
and for all the marbles
even vscode can do rich text alright
so by your logic is not a text editor
so how does it blur the line between a text editor and an ide?
when its not a text editor according to your logic?
Also what about manually editing the file ie. word stores with a plain text editor
Does that make the plain text editor a rich text editor?

Did you ever open LF files in WordPad on windows and save it to convert it to CRLF?
ive used vsc for converting line endings
I've used Microsoft word for programming
Was it good?
arguing is fruitless. I am the winner.
Source Code/Support: https://patreon.com/mixmorris
My Links:
Twitter - https://twitter.com/mixedmorris
Instagram - https://instagram.com/mixedmorris
Twitch - https://twitch.tv/mixmorris
Music Used:
Swing de Chocobo - Final Fantasy Distant Worlds
Fighting The Enemy - Sailor Moon
Yorokobi to Shiawase to - ...
lame
it isn't ran in powerpoint
Video highlighting my research on PowerPoint Turing Machines for CMU's SIGBOVIK 2017
Read the paper:
http://tomwildenhain.com/PowerPointTM/Paper.pdf
Download the TM:
http://tomwildenhain.com/PowerPointTM/PowerPointTM.pptx
Original video (without live background noise):
https://youtu.be/sdkxWqsk17c
Music:
The Land Of The Wizard by Machinimaso...
Depends on what your target platform is
web
is using google docs to write html on a chromebook worse? i've done it before, it sucked
not really
if someone needs down-compilation they can do it themselves
yes it's great with autocapitalization enabled
Makes it easier to PascalCase

i swear to god there was a gateway logging option somewhere. am i misremembering
oh right i need the experiments plugin
Hey anyone having problems with authenticating? I am having them and it's because for some reason discord is using my favorites "server" or smt. I go around it by resending with a valid guild id, but still.
yes
Or just excluding it
this is a discord skill issue
Yea like tf
the solution is to copy request as curl
change the guild id to anything you want
and go to the redirect url in the response
crappy solution but it works
π
Rustc + ghidra
I wish to turn
Rust source code
into C source code
quality doesn't matter
it just needs to be valid code that will compile
It is literally impossible to compile anything into C source code
Because if it's compiled from something else, it's not source
A source-to-source translator, source-to-source compiler (S2S compiler), transcompiler, or transpiler is a type of translator that takes the source code of a program written in a programming language as its input and produces an equivalent source code in the same or a different programming language. A source-to-source translator converts between...
This concept
Not asking how to take a "binary compiled with rust" into C source, at that point linking is preferred
this might work
wait til u find out about vlang
V is a pretty big scam
code editor???
no? word processors vs. text editors vs. IDEs
IDEs and text editors have overlap
Word processors have zero overlap with the other to categories
but why's there a distinction between "plain text editor" and "code editor"?
ive never heard the term plain text editor
What would be a plain text editor that isn't a code editor? I can think of Notepad and TextEdit but nothing else
exactly
i would classify notepad as a text editor
Exactly
but we all know that MS Word is a word processor and not a text editor
If it does rich text in a WYSIWYG fashion, it's not a text editor
this feels like really bad code
i dont know much about promices
export function sendAndGetData<T = any>(data: { type: string, data: unknown; }) {
return new Promise<T>((res, rej) => {
setTimeout(rej.bind(null, "Timed Out"), 10_000);
sendToSockets(data, res).catch(rej);
});
}
anyone know why this is giving an error
type Definitions = vscode.ProviderResult<vscode.Definition | vscode.DefinitionLink[]>;
export type ProviderResult<T> = T | undefined | null | Thenable<T | undefined | null>;
read the error
π
i was dmed about this
like an hour ago
i just figured it out
@jade stone have you tried Promise<Definitions>
that's decent
but you never resolve
oh nvm
im blind
it's weird that sendSockets takes callback as second argument but also returns a promise
why do you need the callback then? Just wait for the promise
this
Hey, I have a question:
I'm trying to code my first Vencord plugin, but I don't understand the following:
The Guide explains how to get the component. But when I do that, I get this:
let f = e=>{
let {children: t, className: n, direction: i=u.HORIZONTAL, justify: a=c.START, align: l=d.STRETCH, wrap: E=_.NO_WRAP, shrink: f, grow: h, base: p, style: I, ...m} = e;
return (0,
r.jsx)("div", {
style: {
flexShrink: f,
flexGrow: h,
flexBase: p,
...I
},
className: s())(o.flex, i, a, l, E, n),
...m,
children: t
})
}
;
Can someone help me?
vee is a scam!?
what's with that that you dont understand?
How to import it?
Tbf this doesn't explain how to make your own components in JSX
it says how to find the code for it to patch it
Which does NOT how explain to import it
That guide is for making vencord plugins, if you want a tutorial on react components, consider finding one
Instead of doing a find inside a webpack module, you need to find inside the component itself
Use findComponentByCodeLazy to get the component to use in your own JSX
This
I don't understand how to find a component
finding the component as in finding it's code (which that is) or as in using the component in your plugin?
Find it so you can patch it or so you can use it?
pro gayming
Ye
Do u know a vid where I can learn it
answer the question
and you didnt answer kyuu either
I did
Here
"Yes" to a X or Y question
well the guide tells you how to do it
But I don't understand
I get this when I do it:
let f = e=>{
let {children: t, className: n, direction: i=u.HORIZONTAL, justify: a=c.START, align: l=d.STRETCH, wrap: E=_.NO_WRAP, shrink: f, grow: h, base: p, style: I, ...m} = e;
return (0,
r.jsx)("div", {
style: {
flexShrink: f,
flexGrow: h,
flexBase: p,
...I
},
className: s())(o.flex, i, a, l, E, n),
...m,
children: t
})
}
;
Get = Looking in the Source (JS)
Also define what the problem is
You were looking for a component, you found a component
I can't see what the guide says
Why? Someone pranked you with a filter: blur(4px) on that paragraph?
Ohh, no. I get this
But the guide says I should see this:
return (0, r.jsx)(u.Z, {
children: [(0, r.jsx)(n.Z, { /* some arguments */ }), (0, x.jsx)(n.Z, { /* some more arguments */ })]
})
No
I searched for the same...
And if I search for this, nothing is found
You're not searching for that exact text, are you?
Because the variable names change a few times a week
does anyone else use https://github.com/marlonrichert/zsh-autocomplete and have issues with commands like pacman package lookup freezing the shell
@royal nymph
its driving me insane
no issues
maybe try switching to that
oh the one you sent also has full suggestions
well it has to query packages ig
but optimally it'd be async instead of freezing ur shell
i dont think there are any
guh
Write one
No...
make
Question for anyone who's relatively familiar with the Vesktop client design (or custom clients in general). What made you choose the architecture you did?
I'm looking into repackaging a note taking application called Notion for Linux, and I'm trying to decide between repacking the app.asar or wrapping the webapp.
The web-app seems less intrusive and less likely to break, but the repack would offer things like multi-tab support. Anything you found while making Vesktop that would weigh into that decision process?
I don't fully understand this question. what do you mean by "wrapping the webapp"? electron does nothing more than wrapping a web app. plus extra system code that is contained inside the app.asar archive
I guess I'm thinking the difference between starting from scratch and implementing everything on top of an application.loadURL vs patching their asar which seems to has a lot more going on than that simple load url
what app.asar are you gonna patch for notion anyways
notion doesnt have a linux client as far as i can see
so what you want to do is make new electron wrapper around notion
you arent patching anything
I think he wants to use the windows .asar for linux
i dont recommend doing that
lmao
it might just work xd
Nushell my beloved
I use it as my main shell on my computer atp
It's really nice for processing data and writing scripts
It makes posix sh/bash look like cobol
ONE TYPO WAS DRIVING ME MAD FOR WEEKS
https://cdn.discordapp.com/attachments/1235557404226355211/1288130249292517437/WindowsTerminal_3hl8PkHgfj.png?ex=66f41047&is=66f2bec7&hm=34810fa387908c77b5e425ee5d011a0acd7294850eca96a6dfe6a0b12f5dcc59&
https://cdn.discordapp.com/attachments/1235557404226355211/1288130564938793103/WindowsTerminal_SRZohoxGf1.png?ex=66f41092&is=66f2bf12&hm=e5e1ec8c17c206c433530725c04c0ca7926a00323af9482c3ba9a8b392d8b117&
I NEVER expected I would fuck up implementing includesAny
so I was looking LITERALLY EVERYWHERE ELSE
is there a more sane way to indent an entire block of text
text.split('\n').map(line => `\t${line}`).join('\n')
Oh im dumb as hell
.replaceAll('\n', '\n\t')
but that doesn't get the first line
I just feel insane when writing stuff that I would only do in AOC
mapped inline functions are reserved for cursed shitcode in my brain apparently
thanks
the error explains exactly what is wrong
look at other plugins to understand how to do it properly
@formal belfry ok i made it
next stop is #π¦-shiggy-and-friends
hello
i am lost
i need someone to walk me down to #π€-bot-commands
Take my hand
alr
Weβll walk there
lets go
vns #π€-bot-commands
π #π€-bot-commands
i cant jump sorry
i need to go one at a time
lets go to #π¦-shiggy-and-friends and now
It's mixing doubles and bigints based on whether it's lossy? Yeah, disgusting
they do it because they can, they turn bigints into numbers or strings willy nilly
so stupit
π all this effort and my library is slower
use c/rust/zig modules with napi
is it possible to make plugin, and this plugin allows you to use soundboard from diffrent servers by:
1.downloading this sound
2. uploading it to server (requires permission )
3.playing sound
4. deleting it
???
would be fun
(ping me when you anwser this)
Yes, parent is spelled with one r
watch out for the hammer
bad idea
just use local soundboard
what?
oh
late but just this.uses!
when you use the filter function typescript loses information about the if behind
hmm does string.indent exist
i know string.dedent does
wait nvm dedent is just a proposal
stage 2
neither exist
I was thinking of https://github.com/tc39/proposal-string-dedent
love
WHY do tc39 make GOOD proposal and NEVER ACTUALLY HAVE IT CONSIDERED
I think it's being considered
Yup
Pipes and do-expressions? Not here yet
terrible name for a good idea
trimIndent is right there
its more descriptive
especially when trimLeft and trimRight exist (deprecated aliases to trimStart and trimEnd)
dedent is just as descriptive
dedent is the opposite of indent
It clearly removes the indentation of something
Any further clarification is the job of IntelliSense and MDN
i have never heard that word before in my life
You...haven't?
no
Regardless, the name doesn't matter that much
dedent is a made up word primarily used by python
That's probably good enough though
not everyone uses python
and they can always change the name if it's a major issue
yeah, I don't
the name is logical but not intuitive
it only makes sense after the fact
someone looking for that functionality isn't going to instinctively think of the word dedent
however they will know to look for something that trims
will they?
yes
or at the very least they'll type "indent" and intellisense will show it
It doesn't matter how the name is perceived on its first use
ive never heard the word dedent before in my life
What matters is how it stands out to people reading the code
weird
I wonder why I'm the only guy who's heard it
when i first saw it, i thought it said detent
that's not a word either...is it?
isn't the word detente
oh
the slot thingy
detent
yea
the proposal itself lists python as the only language that uses that term
most languages don't even have a function
you just use different syntax
usually triple quotes
Kotlin - raw strings using triple-quotes and .trimIndent().
oh. no wonder you said "trimIndent"
to be fair, "stripMargin" would be weirder
doesnt js have that with grave quotes
idk
scala moment
Yeah I don't think JS can afford to do that lol
no, those are for multiline strings and templating/interpolation
both of these are more sane than dedent
some variant of trimIndent would be better in my opinion
but you can use String.dedent as a template tag to modify the succeeding literal
like uh
the best way to describe this is that it feels very javascript
the guy that proposed this doesn't even use python??? why go with this name??????
String.dedent`
import {x, z} from "y"
x((a, b) => {
let [u, v, w] = z(b, 123)
if (u) w?.(v + a)
})
`
It's not a bad name though
It's shorter than indent
and it's not something you usually need to pay attention to anyway
The focus is on the content of the string, not the template tag (String.dedent)
i still think its odd
im honestly surprised this functionality didn't exist before tbh
its something thats present in most stdlibs
well, now we have it
if not outright a language feature
*now we will have it
Things like, uh
What was that thing
Object.fromEntries is new I think?
comparatively?
groupBy is really new
oh this proposal is like 4 years old
write faster code 
ig you get the extra ms from the transfer overhead
things usually take a magnitude of years before being standardized
when its a large project adding things is a slow process
i dont
im comparing apples to apples
im gonna compare you to rocks ;-;

this is comparing my erlpack written in cpp (basically what discord has but with some small changes) to erlpack writen in zig
i will do some benchmarking today ^^ but i have a feeling its just error callstack stuff since i use a lot of try
might be a little silly but does someone know if you can have multiple values per slash command argument?
i have an array of values and want a multiselect
there's choice if that's what you want
I just ended up making 4 seperate optionals lol
is this with -O ReleaseFast?
didnt seem to make any difference
I just use fish
I don't like zsh
I use bash
basic
if it ain't broke don't fix it
true
why would I switch to fish/zsh if bash just works
the only upside of zsh over fish is zsh is posix compliant
but i like fish
it has nicer syntax
me when I ```bash
sudo dd if=/dev/urandom of="$(which fish)" bs=4M
what are you gonna do then
chmod -R 000 /bin
why not /dev/null
/dev/null returns nothing
not null bytes
that's /dev/zero

fish has syntax highlighting tho
I don't really need syntax highlighting
if I needed it, that means I'd be making something bigger and so would write it in a text editor
Zsh has highlighting too, but it's really slow on sshfs
everything's slow on sshfs
True
not gonna hold that against it
yoo does any1 know how to create smthing like vencord or better discord :3
if so dm me pls i just wanna know
i might not respond immediately
Read the source code
that is boring but ok ill try
also why do you have a role naimed brainrot
anyways ima go outside ||aka chatting on discord|| so bye
you arent building a client mod with that attitude
One day you could earn this role and regret it 
The Secret behind to Contributing to Vencordβ’οΈ
anyone know a way to graph what times git commits were made?
yes i have one on my gh profile
https://github-profile-summary-cards.vercel.app/api/cards/productive-time?username=arHSM&theme=github_dark
grrr
oh they do svg, discord doesnt embed that
the ???? experience
Huh, mine is strangely daytime-heavy
It doesn't see commits to private repos, right?
It shouldn't
Would probably be more biased to daytime if it could see what I do at work
Confirmed, Nucky does not sleep
LOL
nucky is busy keeping up with discord bundler changes
bruh
mine
how do u have commits every hour lmaooo
mine is wild
you can see i code at school, tend to commit during my work the morning then go eat then finish my day and then when i come back home at 18 i commit all the shit i forgot + more stuff then i go eat and then i start my night shift with my personal stuff

I live at every hour
changes each month

i should fix my sleeping schedule somewhen\β’οΈ
Fat chance of that happening
You commit your school code?
I mean
You commit code?
You commit stuff to a git repository?
do yk why vencord is slow
sorry
Yeah
It's all public btw
So that basically other students can learn from my mistakes
Or yoink the good things
your classmates will use ChatGPT instead
Here's my main repo : Julienraptor01/School-courses
Here's a repo for a project i had to do : Julienraptor01/ImageEditionTool-Cpp-Linux
And that's just 2, others exist but can't be bothered to link everything
the reality:
Yeah but i'm the training data lmao
If anyone is on PC, you can confirm the embeds are not too big so that i remove them if they are pls ?
it's fine 
imo those should show the start of the readme instead of a big white picture
i wonder if those "open source" mega projects where theres like 3 different sponsored by [server hosting/cloud workspace] in the readme that also has nothing practical about the project other than wiki and download link would the custom social preview image feature
XD
github explore slop part 1 (recommended topic with 1 repo??, AI image for their blog article)
they do
Bruh
github slop (for real)
skidding tool on github trending
https://github.com/Z4nzu/hackingtool
Bruh we had smth for that, it was called Kali Linux
That person wants to be a north Korean General or what lmao
Why do they have so much badges
this is like moderate
Esp for stuff that are litterally written above
there are repos with million fucking badges

when the
kali users are the the children in wannabe hacker arc
And the people that want a nice WSL experience
mmmmyes skid looking tool shall be used for security research purposes
the best wsl is no wsl, hop on real linux 
Also Kali is legit nice when you're learning security
I do have a dual boot but it's less great
I sometimes need to run both Linux and Windows at time
i personally think you dont really need kali for sec, you can just have the same packages pretty uch on any distro, and you may learn more while manually installing those
Indeed
I started by just adding packages on top of Ubuntu
But Kali being an AIO is nice
is it stupid to think of kali as "tested version of debian testing designed for hackers"
Kali is just a Debian with lots of tools pre-installed
real haxxors only use kali πππππ―π―
And also support for WSL that other distro don't provide
Hop on nix-wsl
wtf..
yeah that's the power of WSL with KeX
you can have seamless Windows + Linux
and when you are deving a server for Linux + 2 clients, one Linux and one Windows, it's really neat
theres like five rockets in this photo lmfao what is going on
bro is getting airstriked
relative line numbers, i think vim and emacs normally use them instead of absolute
They're not default in vim, but some people like them
(Auto-response invoked by @jade stone)
I was trying to see how vencord patched discord so the devtools show up and found this flag. The question I got is how was this even found? Tried to searching in Sources tab but got no results, maybe itβs obfuscated in some way or how else would one find that flag?
that flag is public knowledge, just google it
I mean itβs only valid for discord right?
pretty sure, yeah
yeah so what Iβm asking is how was this originally discovered if anybody knows
for starters, its not in the "sources" tab but rather the electron bundle
its mentioned atleast twice in there
and also if my memory serves me right, jake posted it on reddit
sorry, where do I find the electron bundle? is it not loaded from like requests, is it stored locally?
I'd guess app.asar but not entirely sure
download the discord client, go to files then the latest folder that starts with app then resources and you should find the app.asar (the bundle)
if you have npm you can then npm i -g asar to install asar cli tools then asar extract app.asar app (which extracts all files into an "app" folder)
the extracted result would be like a uhhhh js project?
Yep
sorry not really familiar with js ts electron and all that webdev stuff
Will contain the node modules, package.json, source etc (of course minified)
is the .asar file like encrypted or are the strings obfuscated? like would I be able to find stuff with strings in the file
No itβs minified
All variable names removed, whitespace removed etc
Just like the code in the sources tab
There is no reason to obfuscate code
I mean in its original state without using that asar cli tool
Itβs an archive, itβs compressed
understood, thank you very much!
**just checked its not compressed but it basically just bundles everything together into a single file
oh so in theory itβs possible to find this flag with like strings command
what, no
electron bundle isnt minified
isnt the strings command only for binaries
the asar bundle isnt a binary
its just an archive of js files
oh
thats nice to know
but amyways you dont need strings here
ypu can just extract the bundle
theres also a gh repo that uploads the extracted bundles of the latest vlient
it isnt?
yes it isnt
every file can be represented as bytes and bytes can be represented as ascii symbols
okay buddy i know that much
we love our canadahonk
sorry 
yeah i checked got confused by the other shit i constantly add to random electron apps
its okay
spreading misinformation smh

holy fuck this app takes 50 secobds to load enoji suggestions
lmfao
well at least the app works for yall there cuz it might end up being banned here for me very soon lol

ahem i cant type there
vim spells
ai
ts - tabstop
tw - tabwidth (?)
now i know why it wrapped every line
lmao
tabstop is (usually) tabwidth
i recommend sts=0 sw=0 as well
im finally making lambdas
i will make it single scope capturing
which means it will copy, by value, everything in the last scope that the lambda was defined in
so if you define a lambda in an if statement, everything out of the if statement won't be captured
Oh, you're making a language?
lol yeah
ive been talking about it in #πΊ-regulars for a while but i think this channel is more appropriate
I don't usually look there, too much nonsense for me
fair enough
zed?
ya
Nice color scheme though
Might be worth looking into if I ever feel like switching themes
the real question
should i allow for variadic lambdas

ill skip that for now
probably
Do you have variadic regular functions?
yes
use std/io;
fn add(ElleMeta meta, ...) {
variadic args[meta.arity];
i32 res = 0;
for i32 i = 0; i < meta.arity; i += 1 {
res += args.yield(i32);
}
return res;
}
fn main() {
i32 sum = add(1, 2, 3, 4, 5);
io::dbg(sum);
}
Weird syntax but ok
lmao you mean the for loop syntax?
because the variadic args[] thing is like 1 line more than a typical js thing
The meta.arity and args.yield thing
that is all because in this language variadic arguments are lazy
unlike something like js which gets them all eagerly and puts them into an array
so you get given the number of arguments and then you iterate through them and yield them
So if you did variadic_function(print(98)) the print wouldn't happen until you iterate the args?
that would be lazy evaluation in general, in this case there may be infinite arguments and you dont want to get them all and store them in an array at the same time because that would be heavy on memory, so yielding the next one whenever you need it is the proposed solution
C does a similar thing
#include <stdio.h>
#include <stdarg.h>
int add(int argc, ...) {
va_list ptr;
va_start(ptr, argc);
int res = 0;
for (int i = 0; i < argc; ++i) {
res += va_arg(ptr, int);
}
return res;
}
int main() {
printf("%d\n", add(5, 1, 2, 3, 4, 5));
return 0;
}
``` although in C its a lot more painful because you need to pass the number of arguments as the caller
Infinite variadics? Usually variadics are of a statically known size at call sites
in this case yeah because you have the arity which is that size, however that size may be unknown if youre expanding an array into that function (which isnt a feature yet however it will be eventually lol)
and also having an array of arguments in a statically typed language forces all of your variadic arguments to be of 1 type
What happens if you .yield the wrong type? Runtime error?
yes if you try to use that variable for something
like if you yield(string) and then try to print it but the caller passed 0
Is that because of lazy eval, so it doesn't actually do the .yield until needed?
its because the compiler cant know the type of the expression at that index, so if you do
fn f(...) {
string a = args.yield(string);
io::println(a);
}
``` but the caller passed `f(0)` it wont fail at the `yield` part because technically `0` is a valid string its a null pointer
for stuff like this its known as nilable in the language but theres no syntax to denote that yet, it would be string? a
in any case if the function tries to yield a string but the pointer is invalid itll just fail at the runtime
theres a bunch of other quirks with the language because its still in quite early stages i guess
like it doesnt have switch cases or enums yet but has generics and methods attached to structs
lmao
It sounds a bit loosely typed
the typing is pretty loose for numbers but not loose for structs vs strings vs numbers
lol i meant like
it converts from f32 to i64 loosely
but doesnt for something like Array<int> to string
or whatever
but it CAN do this
or this
Not a fan of implicit conversions, but it's useful in some cases
fair enough yeah
thats why its limited to numbers only
making really fancy errors was really fun tho
this is all from scratch, the whole language only uses the levenshtein and regex crate
Pretty cool
:3
in this one it infers T from the arguments but cant infer U or V because theyre not in the arguments or passed explicitly
thats kinda fun
what the hell this is insane
type as a value but you can write a block and break out the type????
jeez
What language is that
zig
who needs typescript when you have this
Of course itβs zigβ¦.
Who the hell sees break :t Error![]align(Slice.alignment) Slice.child; and is like "yeah this is a language that makes sense and that I want to use"
yea idk
idk it makes sense to me
they do a lot of block breaking
No idea how it works but it works and that's what counts! π₯
Generating free pringles π
@fleet cedar are you swedish?
Looks very legal
I got in troubled last year with Trocadero π₯
Ingen kommentar
Do you want some codes
Don't think I've ever been to that store anyway
same
sour cream and star constellation, my favorite
Lol
lmao didn't even see that
I may or may not have gotten about $2000 worth of t-shirts and sweaters from them π
didn't use any of the codes tho
ok well this is a thing now (and its typed!)
syntax highlighting exploded but thats fine
now i have to figure out how to capture variables
the way i wanna do it, is to have some struct that holds the pointer to the function and the pointer to a structure that holds an environment, aka captured variables
so essentially when you write this
fn main() {
i32 a = 5;
fn *f = fn(i32 b) -> a + b;
f(2);
}
it would be the same as writing
fn __lambda.0(ElleEnv.__lambda.0 env, i32 b) {
return env.a + b;
}
fn main() {
i32 a = 5;
ElleEnv.__lambda.0 env = ElleEnv.__lambda.0 { a = a };
fn *f = ElleFunction { env = env, func = __lambda.0 };
f.func(f.env, 2);
}
I didn't understand until I realized that this was the return type
-
Click on the sound
-
The code downloads this sound
-
The code plays it through the microphone
?
Discord gives access to sounds without authorization
@valid jetty btw what languages are you drawing inspiration from
rust for sure but what else
These are the official standards for Epic Games C++ Code
Even to someone who is pretty lax about these things and does advocate for people to do whatever makes them happy... this is too much https://t.co/BmjsAYSOXk
i only drew inspiration from rust in terms of syntax because the language is made in rust so thatβs all i really look at
the actual internals are nothing like rust
everything else is just random things i see in other languages that i like and think βoh i can make thatβ
so good
no..
it has nothing to do with skin colour
and i highly doubt anyone actually cares about this shit
it's just stupid sjws who make everything political
what if i
fn thing() {
i32 foo = 123;
i32 bar = 0x3;
if foo == 123 {
// whattever lamda syntax is
}
}
can i not use bar in the lambda
right now you canβt use any variables at all in the lambda lol
at the time that i wrote that, yes, however ideally when/if i make capturing lambdas thatβs not gonna be the case, as in youll have access to everything in scope
originally i wanted to do it like that so that you donβt potentially capture a bajillion variables but i think it would actually be better to capture everything that is referenced from the whole scope rather than everything from the last local scope even if it isnβt referenced
you should determine what's used in the lambda and only capture those
or make the user explicitly capture variables
yeah thatβs what i want to do
like in cpp
in cpp you can capture everything you use too
you can do [=]() to capture everything you use by value and [&]() you capture everything you use by reference
ideally i wanna capture by value so that you donβt need to worry about lifetimes and stuff
Are you using gc/refcount or manual management?

Oh god what the fuck is that
guh
manual management however it will be gc eventually
however its slightly upgraded manual compared to C because if an object defines a method like this
then you can do this
which is why garbage collection is planned
google being not able to implement ai correctly into their products
the language is more of a scripting language than a systems language so it should be simple to use and prototype stuff
which means garbage collection because the memory alloc and dealloc is basically hidden from you
"Simple to use and prototype", in my mind, does not include "you need to include this every time you make a vec"
yeah lol thats because the gc does not exist yet
im currently messing around with stack allocating everything thats returned by value
so that you can do stuff like this Array::range(0, 5).map(fn(i32 x) -> x * 2).free(); (map takes an Array<T> *, Array::range returns just Array<T>)
idk what its doing tho
nope not even close
that entire document is complete nonsense
Yeah i kinda assumed as much
if you somehow associate any of those terms with race you have something wrong with your brain and should just stop

oh cool
what about just reference counting instead of GC
like in swift
or just reimplement Rc/Arc from rust
maybe with some better syntactic support to make it transparent to the user
better idea than GC imo
what version of chrome is that
Stable

close enough welcome to functional programming
idk ill see when i actually get to making that i guess
fellow zed user 
i wish it worked with console.error
they show it with console.warn in the docs

weird it doesn't work with console.error
Google moment
wouldn't surprise me, if that software feature gets killed soon
REAL (it will)
im dreaming up new syntax for a thingie
mechanism of purpose "main"() ->
promulgate unique designator named "a" to #<signed integer literal>1.
conjure "print"(<array of characters>"hello world", <signed floating point literal>1.0, <designator of purpose>$"a").
abscond <unsigned integer literal>0.
its intentions are to be as easy to use and simple as possible
so that you can prototype really really fast
That syntax looks very painful
it will be running on hope and tears instead of a traditional memory management model
You could just leak all memory, it'll be freed on program exit anyway
If it works for guided missiles, why couldn't it work for prototyping languages
Of course, those missiles use a somewhat liberal definition of "program exit"
π΅ let it leak, let it leaaaaak, let it leak, oh let it leaak, memory costs pennieeees, let it leeeeaaaaaaaak π΅
missing "the" on line 1242
bevildro
ok o'hare
wait @royal nymph r u transfem
i read this
oh
I'm silly
hi silly im :3
insane
i agree
@frosty obsidian i could do something like ```
InputContainer(File("guh.mp4"))
openInput(File("guh.mp4"))
Container.read("guh.mp4")
aaa
too many choices
FFmpeg.openInput("guh.mp4") {
}
i also struggle with api design
api design hard
i think openInput might be best
i kinda prefer factory methods for those kinds of things
Container.openInput
FFmpeg.openInput
openInput
i don't really have a frame of reference for what this does
like an mp4 file
this would be the complete representation of a media file
metadata and data
so this function creates a container with all the metadata and junk
ive been postponing containers cause of how much its gonna need
it has functions to read the properties and data
so by itself it doesn't keep track of the data?
constructor then
i don't think that works here tbh
actually can this also work with outputs
if not then you can just do like Container.fromFile
and also have stuff for streams
since i assume this just uses streams to read the file anyways
I think theyll need to be separate
in the end I wanna have muxing be less than like 30 lines
cause right now it's over 100 and I haven't got it to work
this stuff is kinda out of my area of expertise
you must learn
I might rename the library
ffmpeg calls these libraries libav
ffkt
eh
what on earth is .l
a language im making
oh 
.elle
.β
is elle a functional language
also what code editor is that on your screenshot
real
sorry for useless ping pookie
itβs zed
compiled and for scripting cannot really go in the same lane unfortunately, it's a turn-off for many
it can work as a systems language but the apis aren't really there yet
you only really have C apis which are, to say the least, hard to use
@valid jetty rewrite the Linux kernel in Elle
i know what im doing is wrong but at least give me the right reason
That error is a lie isn't it
yeah xd
you dont even need to do factorials here
its saying that 8bits cant fit in 32bits
which is like. obviously false
you can fit all unsigned 8 bit values into 8 bits. hope this helps!
@valid jetty .elle
evil
What is a NUT file? Learn about the file formats using this extension and how to open NUT files. Download a NUT opener. Learn from the File Experts at file.org.
does anybody know what HTML class i could use for an element to make it stick to the bottom of the page or not- i cant seem to find what im looking for
the first half of this would be nigh impossible for a saxophone player.... poor bastards cant tune their instruments they just gotta guess for it π
/hj
are you looking for css position fixed?
how would i even use that because whatever i try doesnt seem to actually do anything
nvm i figured out an admittedly shitty way to do it but i dont give 2 shits because my website needs a rework eventually at some point and i dont give a shit anymore
lmao i thought this was off topic
*hot topic
Html classes don't do shit y'know
Im not sure, where to ask this. But I have a plug-in that was abandoned, then purged off the face of Vencord. Is anyone allowed to fix the said plugin (because it is broken) then possibly submit it for #1256395889354997771 ?
nvm
what does realtime linux mean?
googling helps
well now what
@deep mulch im making essayscript
"Custom Add":
First, accept arguments named "a", "b".
Finally, add with "a", "b".
Summary:
First, set a variable named "result" to the value of "Custom Add" with 1, 2.
Then, print with "result".
Finally, do nothing.
i made formal grammar rules for it lol
<program> ::= <statement> | <statement> <program>
<statement> ::= <expression> | <function_definition>
<function_definition> ::= <function>':' <argument_definition> <expression_list>
<argument_definition> ::= 'First, accept arguments named ' <arg_list> '.'
<arg_list> ::= <arg> | <arg> ',' <arg_list>
<arg> ::= '"' <identifier> '"'
<expression_list> ::= <expression> | <expression> <expression_list>
<expression> ::= <line> | <return>
<line> ::= 'Then, ' <declare> | <retrieve> | <call> | <noop> '.'
<return> ::= 'Finally, ' <retrieve> | <call> | <noop> '.'
<declare> ::= 'set a variable named ' '"' <identifier> '"' 'to the value of' <call> | <number> | <retrieve>
<retrieve> ::= 'get a variable named ' '"' <identifier> '"'
<call> ::= <function> 'with' <param_list>
<noop> ::= 'do nothing'
<function> ::= '"' <identifier> '"' | <identifier>
<param_list> ::= <param> | <param> ',' <param_list>
<param> ::= <number> | <retrieve> | <call>
<identifier> ::= [a-zA-Z_][a-zA-Z0-9_]*
<number> ::= [0-9]+
First, do nothing.
Then, do nothing.
Then, do nothing.
Then, do nothing.
Then, do nothing.
Finally, do nothing.
@valid jetty make elle build script
yeah idk

elle build script NOW
do you like essayscript
π
evil
@frosty obsidian finally i can share compose scripts project with you
the fixed kotlin version is availabel
are you on pc
no im bed
ghuhh
like a normal sick person
doesn't work that way
i can heal you
@frosty obsidian if you get on pc you will run it
is there anything youd want me to try


how the fuck is this segfaulting
i dont understand
actually
i guess? why is the address just 1
i am an idiot
returning a slice to stack memory
very cool
Don't do that

When I am sick I usually sit on computer
Wing went out during hurricane and got sick @deep mulch
yop
wing almost got blown away by the wind
what would we do without wing
oh so wing oh so wong
we need our daily frogs to eat
@nimble bone

if im making an app, how much user information can i store? like can i store the age in my database and also make it public? i tried googling and cant find any info, i wanna make age mandatory for sign up and also public to other users by default (age cannot be made private, cant opt out to not be public). btw, this's not my decision, i just work for an idiot manager with an "innovative vision".
will the app get in any trouble with laws like EU or the US government?
if you have a proper privacy policy/tos/GDPR and tell the user clearly i think it would be ok (donβt quote me on any of this)
pretty sure gdpr requires you to allow the user to opt-out and the option to delete their data regardless
Oh
yeah
All he knows is how to draw UI designs, not even UX, i have to make that too, so yeah nop he's an idio
But I'm getting paid so you know, free money
gdpr isn't really about how much data you can store, it's about how you store the data
you need to clearly communicate to users what data exactly is being stored with a gdpr compliant privacy policy
and you need to have ways for people to opt out and have their data deleted (you can just offer to delete account and all data, you don't need to make info like age optional)
in any case if this is a commercial project then you should absolutely consult a privacy lawyer, especially for writing the policy
Ah I see, I reckon it's the same case for underage users right?
if they're under 13 it's even more restrictive what you can do with the data
guys is 100wpm good or bad
decent
for some reason i can type better on a macbook butterfly keyboard than on a mechanical keyboard
60% mx speed
nvm
its about the same now
what is 50 then π


