#πŸͺ…-progaming

1 messages Β· Page 20 of 1

dawn ledge
#

gn

supple whale
#

I'm on vacation in JP right now

dawn ledge
#

ace is onto you

supple whale
#

going to universal park tmrw

#

need to wake up in 7h

supple whale
dawn ledge
#

ace

autumn sigil
#

if you decode erl gateway with small_big integer actually being a bigint you get bigint ids

supple whale
dawn ledge
#

as it should be

dawn ledge
#

not only does it use more memory but you'll have to do casts chenever you want to extract information from the snowflake

autumn sigil
#

yeah but their reference erlpack implementation is just lazy then, they turn big integers into strings if > 32 bits

dawn ledge
#

😭

autumn sigil
#

now i cant decide

#

do i "properly" decode into actual bigints or do i keep to the reference?

formal belfry
#

is it possible to make a embed maker as a / command without needing a 3rd party website ot bot?

calm wigeon
#

no

dim cave
#

how would i make a jiggly button using css

surreal condor
#

matrix transforms

#

or skew()

#

iirc

dim cave
#

hkmm

#

well

#

not likt

#

jiggly

zenith trout
#

i just activate a plug i didnt wanted and i feel lost

frosty obsidian
#

?

zenith trout
#

hi

zenith trout
autumn sigil
#

chat is this guy retarded

lavish frigate
#

you do not have to instantly call people that

solar spindle
#

fr

autumn sigil
lavish frigate
autumn sigil
#

its not getting in my skull no

frosty obsidian
#

you didn't need to be rude

autumn sigil
#

felt like it

ornate quiver
hushed pebble
#

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

hushed pebble
cerulean plover
frosty obsidian
#

4

#

forgot ides

cerulean plover
#

true

elder scaffold
dawn ledge
#

holding back from dropping hard r

lavish frigate
dawn ledge
#

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

ionic lake
dawn ledge
#

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?

elder scaffold
#

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?

dawn ledge
cerulean plover
ornate quiver
#

ive used vsc for converting line endings

ionic lake
#

I've used Microsoft word for programming

fleet cedar
#

Was it good?

lavish frigate
viscid grove
#

lame
it isn't ran in powerpoint

dawn ledge
#

is it worth transpiling down to es6?

#

is should i just keep it at like ES2020

fleet cedar
#

Depends on what your target platform is

dawn ledge
#

web

cerulean plover
ionic lake
#

if someone needs down-compilation they can do it themselves

ionic lake
crimson sparrow
past ice
#

i swear to god there was a gateway logging option somewhere. am i misremembering

#

oh right i need the experiments plugin

torn basin
#

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.

torn basin
#

Or just excluding it

dawn ledge
#

this is a discord skill issue

torn basin
#

Yea like tf

dawn ledge
#

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

#

πŸ‘

torn basin
#

Yea ik i did that

#

you can either put a valid id or remove the key

runic sundial
#

@dawn ledge@lavish frigatehey is there a good Rust to C source compiler?

fleet cedar
#

Rustc + ghidra

runic sundial
#

I know

#

I want it for a toolchain

#

Rust Lib -> C/C++ -> Zig

dawn ledge
#

what do you want

#

transpiling

#

or linking

runic sundial
#

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

fleet cedar
#

It is literally impossible to compile anything into C source code

#

Because if it's compiled from something else, it's not source

runic sundial
#

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

royal nymph
ornate quiver
#

V is a pretty big scam

hushed pebble
hushed pebble
hushed pebble
frosty obsidian
#

ive never heard the term plain text editor

hushed pebble
#

What would be a plain text editor that isn't a code editor? I can think of Notepad and TextEdit but nothing else

hushed pebble
frosty obsidian
#

i would classify notepad as a text editor

hushed pebble
#

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

jade stone
#

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);
    });
}
jade stone
#

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>;
elder scaffold
ornate quiver
#

did you read the error

#

it's very simple

cerulean plover
#

😭

#

i was dmed about this

#

like an hour ago

#

i just figured it out

#

@jade stone have you tried Promise<Definitions>

royal nymph
#

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

marsh heath
#

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?

Gist

GitHub Gist: instantly share code, notes, and snippets.

dawn ledge
elder scaffold
cerulean plover
#

How to import it?

#

Tbf this doesn't explain how to make your own components in JSX

elder scaffold
cerulean plover
#

Which does NOT how explain to import it

fleet cedar
#

That guide is for making vencord plugins, if you want a tutorial on react components, consider finding one

cerulean plover
#

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

marsh heath
elder scaffold
fleet cedar
#

Find it so you can patch it or so you can use it?

amber steeple
#

pro gayming

marsh heath
elder scaffold
#

and you didnt answer kyuu either

marsh heath
marsh heath
elder scaffold
#

"Yes" to a X or Y question

marsh heath
#

Ohh bruh

#

I meant patch

#

Didn't read the last part

elder scaffold
#

well the guide tells you how to do it

marsh heath
#

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
                })
            }
            ;
fleet cedar
#

Define "get" and "do it"

#

Because those terms are very ambiguous here

marsh heath
fleet cedar
#

Also define what the problem is

#

You were looking for a component, you found a component

marsh heath
#

I can't see what the guide says

fleet cedar
#

Why? Someone pranked you with a filter: blur(4px) on that paragraph?

marsh heath
fleet cedar
#

Why can you not see what the guide says

#

It's text, should be readable on any device

marsh heath
#

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 */ })]
})
fleet cedar
#

So you mean you found a different component

#

Might be worth saying that then

marsh heath
#

I searched for the same...

marsh heath
fleet cedar
#

You're not searching for that exact text, are you?

#

Because the variable names change a few times a week

deep mulch
#

@royal nymph

#

its driving me insane

royal nymph
#

no issues

#

maybe try switching to that

#

oh the one you sent also has full suggestions

royal nymph
deep mulch
#

yop

#

i think its supposed to cache one time

#

or osmething

royal nymph
#

find a native alternative

#

that's written in C or smth

#

and is async

deep mulch
#

i dont think there are any

royal nymph
#

guh

fleet cedar
#

Write one

deep mulch
olive ember
#

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?

royal nymph
olive ember
dawn ledge
#

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

potent cloud
#

I think he wants to use the windows .asar for linux

dawn ledge
#

i dont recommend doing that

potent cloud
#

oh

#

he left the server

dawn ledge
#

lmao

royal nymph
distant cobalt
#

Nushell my beloved

dawn ledge
#

i would like to try nu

#

i've heard its good

distant cobalt
#

It's really nice for processing data and writing scripts

#

It makes posix sh/bash look like cobol

final night
#

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

royal nymph
#

.replace(/^/gm, "\t")

#

but the split is fine too

final night
#

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

final night
fleet cedar
#

Exactly what it says

#

{type: ... } is not a react element

royal nymph
#

the error explains exactly what is wrong

#

look at other plugins to understand how to do it properly

rustic turret
#

@formal belfry ok i made it

#

hello

#

i am lost

#

i need someone to walk me down to #πŸ€–-bot-commands

formal belfry
#

Take my hand

rustic turret
#

alr

formal belfry
#

We’ll walk there

rustic turret
#

lets go

formal belfry
#

vns #πŸ€–-bot-commands

elder yarrowBOT
rustic turret
#

i cant jump sorry

#

i need to go one at a time

formal belfry
#

okay sure

#

come with

autumn sigil
#

awful

fleet cedar
#

It's mixing doubles and bigints based on whether it's lossy? Yeah, disgusting

autumn sigil
#

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

dawn ledge
autumn sigil
#

thats what it is xd zig and napi

round crater
#

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)

jade stone
#

am i being stupid here?

fleet cedar
#

Yes, parent is spelled with one r

jade stone
jade stone
round crater
round crater
#

oh

serene elk
#

when you use the filter function typescript loses information about the if behind

hushed pebble
#

i know string.dedent does

#

wait nvm dedent is just a proposal

#

stage 2

royal nymph
#

neither exist

hushed pebble
nimble bone
#

love

cerulean plover
hushed pebble
#

I think it's being considered

cerulean plover
#

i did look

#

and it seems like everything moves slowly husk

hushed pebble
#

idk

hushed pebble
#

Pipes and do-expressions? Not here yet

frosty obsidian
#

trimIndent is right there

hushed pebble
#

how is that a better name

frosty obsidian
#

its more descriptive

hushed pebble
#

especially when trimLeft and trimRight exist (deprecated aliases to trimStart and trimEnd)

hushed pebble
#

dedent is the opposite of indent

#

It clearly removes the indentation of something

#

Any further clarification is the job of IntelliSense and MDN

frosty obsidian
#

i have never heard that word before in my life

hushed pebble
#

You...haven't?

frosty obsidian
#

no

hushed pebble
#

Regardless, the name doesn't matter that much

frosty obsidian
#

dedent is a made up word primarily used by python

hushed pebble
#

That's probably good enough though

frosty obsidian
#

not everyone uses python

hushed pebble
#

and they can always change the name if it's a major issue

hushed pebble
frosty obsidian
#

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

frosty obsidian
#

yes

hushed pebble
#

If you say so

#

There is one other thing

frosty obsidian
#

or at the very least they'll type "indent" and intellisense will show it

hushed pebble
jade stone
#

ive never heard the word dedent before in my life

hushed pebble
hushed pebble
#

I wonder why I'm the only guy who's heard it

jade stone
#

when i first saw it, i thought it said detent

hushed pebble
#

that's not a word either...is it?

#

isn't the word detente

#

oh

#

the slot thingy

#

detent

jade stone
#

yea

frosty obsidian
#

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

hushed pebble
#

to be fair, "stripMargin" would be weirder

jade stone
frosty obsidian
#

idk

frosty obsidian
hushed pebble
hushed pebble
jade stone
frosty obsidian
#

some variant of trimIndent would be better in my opinion

hushed pebble
#

like uh

frosty obsidian
#

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??????

hushed pebble
# hushed pebble like uh
String.dedent`
    import {x, z} from "y"
    x((a, b) => {
        let [u, v, w] = z(b, 123)
        if (u) w?.(v + a)
    })
`
hushed pebble
#

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)

frosty obsidian
#

i still think its odd

hushed pebble
#

It's odder than a builtin syntax for sure

#

but I'm sure TC39 is averse to that

frosty obsidian
#

im honestly surprised this functionality didn't exist before tbh

hushed pebble
#

Why would it?

#

JS became a truly modern language after 2015

frosty obsidian
#

its something thats present in most stdlibs

hushed pebble
#

well, now we have it

frosty obsidian
#

if not outright a language feature

hushed pebble
#

Things like, uh

#

What was that thing

#

Object.fromEntries is new I think?

#

comparatively?

#

groupBy is really new

frosty obsidian
#

oh this proposal is like 4 years old

dawn ledge
#

ig you get the extra ms from the transfer overhead

ionic lake
dawn ledge
#

when its a large project adding things is a slow process

autumn sigil
#

im comparing apples to apples

dawn ledge
#

im gonna compare you to rocks ;-;

autumn sigil
#

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

dawn ledge
#

dont do error handling :^)

#

if it fails it fails :^)

sullen tapir
#

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

ionic lake
#

there's choice if that's what you want

sullen tapir
#

I just ended up making 4 seperate optionals lol

ionic lake
#

oh nevermind you said multiselect

#

yeah idk that works

hushed pebble
autumn sigil
#

didnt seem to make any difference

formal belfry
#

I don't like zsh

lavish frigate
#

SO TRUE

#

fish on top

#

<>

formal belfry
#

<>

dawn ledge
#

turbofish

#

most sane syntax

still jolt
#

I use bash

dawn ledge
#

basic

still jolt
#

if it ain't broke don't fix it

dawn ledge
#

true

still jolt
#

why would I switch to fish/zsh if bash just works

dawn ledge
#

the only upside of zsh over fish is zsh is posix compliant

#

but i like fish

#

it has nicer syntax

still jolt
#

me when I ```bash
sudo dd if=/dev/urandom of="$(which fish)" bs=4M

#

what are you gonna do then

cerulean plover
formal belfry
cerulean plover
#

not null bytes

#

that's /dev/zero

formal belfry
#

oh

#

yeah

#

my bad

cerulean plover
formal belfry
dusty moth
still jolt
dusty moth
#

it looks nice

still jolt
#

if I needed it, that means I'd be making something bigger and so would write it in a text editor

fleet cedar
#

Zsh has highlighting too, but it's really slow on sshfs

dusty moth
fleet cedar
#

True

dusty moth
#

not gonna hold that against it

verbal palm
#

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

verbal palm
#

also why do you have a role naimed brainrot

royal nymph
#

"doing my own research is boring instead I want all the information spoonfed to me"

verbal palm
#

anyways ima go outside ||aka chatting on discord|| so bye

dawn ledge
#

you arent building a client mod with that attitude

cerulean plover
dawn ledge
#

they wont stay for that long

#

because its boring

cerulean plover
#

The Secret behind to Contributing to Vencordℒ️

#

anyone know a way to graph what times git commits were made?

dawn ledge
#

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

cerulean plover
#

the ???? experience

fleet cedar
#

Huh, mine is strangely daytime-heavy

#

It doesn't see commits to private repos, right?

cerulean plover
#

It shouldn't

fleet cedar
#

Would probably be more biased to daytime if it could see what I do at work

fleet cedar
#

Confirmed, Nucky does not sleep

serene elk
#

u can see how unstable my routine is

#

but also how it's more tied to night

serene elk
dawn ledge
#

nucky is busy keeping up with discord bundler changes

royal nymph
royal nymph
fallen nebula
#

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

ornate quiver
serene elk
#

changes each month

balmy lintel
#

i should fix my sleeping schedule somewhen\ℒ️

fleet cedar
#

Fat chance of that happening

cerulean plover
#

I mean

#

You commit code?

#

You commit stuff to a git repository?

rigid geyser
elder yarrowBOT
rigid geyser
#

sorry

fallen nebula
fallen nebula
#

So that basically other students can learn from my mistakes

#

Or yoink the good things

cerulean plover
#

your classmates will use ChatGPT instead

fallen nebula
#

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

GitHub

Well you can read the name of the repo lol. Contribute to Julienraptor01/School-courses development by creating an account on GitHub.

GitHub

Source code of the 2023-2024 C++ school project. Contribute to Julienraptor01/ImageEditionTool-Cpp-Linux development by creating an account on GitHub.

ornate quiver
fallen nebula
#

If anyone is on PC, you can confirm the embeds are not too big so that i remove them if they are pls ?

cerulean plover
#

it's fine blobcatcozy

fallen nebula
#

imo those should show the start of the readme instead of a big white picture

cerulean plover
#

yop

#

you can technically upload your own image

#

idk if anyone does though

fallen nebula
#

Eeeeh ig

#

It's bit pain tho

#

You have to make the pic works with diff sizes

cerulean plover
#

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

cerulean plover
#

github explore slop part 1 (recommended topic with 1 repo??, AI image for their blog article)

fallen nebula
#

Bruh

cerulean plover
#

github slop (for real)

fallen nebula
cerulean plover
#

dont worry it uses kali under the hood afaik

#

or arch

fallen nebula
#

That person wants to be a north Korean General or what lmao

#

Why do they have so much badges

dawn ledge
#

this is like moderate

fallen nebula
#

Esp for stuff that are litterally written above

dawn ledge
#

there are repos with million fucking badges

cerulean plover
cerulean plover
dawn ledge
fallen nebula
dawn ledge
fallen nebula
#

Kali is imo the best WSL distro

#

Because of KeX

dawn ledge
#

the best wsl is no wsl, hop on real linux blobcatcozy

fallen nebula
#

Also Kali is legit nice when you're learning security

fallen nebula
#

I sometimes need to run both Linux and Windows at time

dawn ledge
#

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

fallen nebula
#

I started by just adding packages on top of Ubuntu

#

But Kali being an AIO is nice

cerulean plover
#

is it stupid to think of kali as "tested version of debian testing designed for hackers"

fallen nebula
#

Kali is just a Debian with lots of tools pre-installed

autumn sigil
fallen nebula
#

And also support for WSL that other distro don't provide

jade stone
#

Hop on nix-wsl

fallen nebula
#

also it can't do this

balmy lintel
fallen nebula
# balmy lintel 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

cursive obsidian
#

bro is getting airstriked

flat helm
#

a

#

does anyone here know how to get the navId of a specific context menu?

viscid grove
#

wtf?

#

wtf are the line numbers??

worldly sigil
#

relative line numbers, i think vim and emacs normally use them instead of absolute

fleet cedar
#

They're not default in vim, but some people like them

elder yarrowBOT
spark tiger
#

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?

still jolt
#

that flag is public knowledge, just google it

spark tiger
still jolt
spark tiger
#

yeah so what I’m asking is how was this originally discovered if anybody knows

dawn ledge
#

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

spark tiger
still jolt
#

I'd guess app.asar but not entirely sure

lavish frigate
spark tiger
lavish frigate
#

Yep

spark tiger
#

sorry not really familiar with js ts electron and all that webdev stuff

spark tiger
#

thanks

lavish frigate
spark tiger
#

is the .asar file like encrypted or are the strings obfuscated? like would I be able to find stuff with strings in the file

lavish frigate
#

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

spark tiger
#

I mean in its original state without using that asar cli tool

lavish frigate
#

It’s an archive, it’s compressed

spark tiger
lavish frigate
#

Just like zip, rar, 7z etc

#

Just for a different use

lavish frigate
#
spark tiger
dawn ledge
#

electron bundle isnt minified

dawn ledge
#

the asar bundle isnt a binary

#

its just an archive of js files

fleet cedar
#

strings finds ascii strings in a file

#

It doesn't care what the file is

dawn ledge
#

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

lavish frigate
dawn ledge
#

yes it isnt

spark tiger
dawn ledge
#

okay buddy i know that much

dawn ledge
#

we love our canadahonk

spark tiger
lavish frigate
dawn ledge
dawn ledge
#

holy fuck this app takes 50 secobds to load enoji suggestions

lavish frigate
#

lmfao

spark tiger
lavish frigate
spark tiger
#

yippee, found it

#

not sure why I wanted to find this in the first place lol

austere idol
#

vim spells

balmy lintel
#

ai

dusty moth
#

tw should be like 79ish

austere idol
dusty moth
#

aka hard wrap

austere idol
#

now i know why it wrapped every line

dusty moth
#

tabstop is (usually) tabwidth

#

i recommend sts=0 sw=0 as well

valid jetty
#

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

fleet cedar
#

Oh, you're making a language?

valid jetty
#

lol yeah

#

ive been talking about it in #🌺-regulars for a while but i think this channel is more appropriate

fleet cedar
#

I don't usually look there, too much nonsense for me

valid jetty
#

fair enough

potent cloud
valid jetty
#

ya

fleet cedar
#

Nice color scheme though

valid jetty
#

:3

#

its a custom version of catpuccin mocha lol

fleet cedar
#

Might be worth looking into if I ever feel like switching themes

valid jetty
#

the real question

#

should i allow for variadic lambdas

#

ill skip that for now

#

probably

fleet cedar
#

Do you have variadic regular functions?

valid jetty
#

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);
}
fleet cedar
#

Weird syntax but ok

valid jetty
#

lmao you mean the for loop syntax?

#

because the variadic args[] thing is like 1 line more than a typical js thing

fleet cedar
#

The meta.arity and args.yield thing

valid jetty
#

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

fleet cedar
#

So if you did variadic_function(print(98)) the print wouldn't happen until you iterate the args?

valid jetty
#

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
fleet cedar
#

Infinite variadics? Usually variadics are of a statically known size at call sites

valid jetty
#

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

fleet cedar
#

What happens if you .yield the wrong type? Runtime error?

valid jetty
#

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

fleet cedar
#

Is that because of lazy eval, so it doesn't actually do the .yield until needed?

valid jetty
#

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

fleet cedar
#

It sounds a bit loosely typed

valid jetty
#

the typing is pretty loose for numbers but not loose for structs vs strings vs numbers

fleet cedar
#

Loose for numbers but not for numbers

#

Gotcha

valid jetty
#

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

fleet cedar
#

Not a fan of implicit conversions, but it's useful in some cases

valid jetty
#

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

fleet cedar
#

Pretty cool

valid jetty
#

in this one it infers T from the arguments but cant infer U or V because theyre not in the arguments or passed explicitly

autumn sigil
#

what the hell this is insane

#

type as a value but you can write a block and break out the type????

#

jeez

fleet cedar
#

What language is that

autumn sigil
#

zig

autumn sigil
lavish frigate
#

Of course it’s zig….

fleet cedar
#

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"

lavish frigate
#

yea idk

autumn sigil
#

they do a lot of block breaking

unique steeple
#

No idea how it works but it works and that's what counts! πŸ”₯

#

Generating free pringles πŸ˜‹

#

@fleet cedar are you swedish?

fleet cedar
#

Looks very legal

unique steeple
#

I got in troubled last year with Trocadero πŸ”₯

fleet cedar
unique steeple
fleet cedar
#

Don't think I've ever been to that store anyway

unique steeple
#

same

lament bay
#

sour cream and star constellation, my favorite

fleet cedar
#

Lol

unique steeple
#

lmao didn't even see that

unique steeple
#

didn't use any of the codes tho

valid jetty
#

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);
}
hushed pebble
midnight crescent
#

Discord gives access to sounds without authorization

ornate quiver
#

@valid jetty btw what languages are you drawing inspiration from
rust for sure but what else

ornate quiver
quick crow
#

IS THAT ACTUALLY THE ORIGIN

valid jetty
#

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”

royal nymph
#

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

dawn ledge
valid jetty
#

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

royal nymph
#

you should determine what's used in the lambda and only capture those

#

or make the user explicitly capture variables

valid jetty
royal nymph
#

like in cpp

valid jetty
#

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

fleet cedar
#

Are you using gc/refcount or manual management?

potent cloud
quick crow
mild yoke
valid jetty
#

however its slightly upgraded manual compared to C because if an object defines a method like this

#

then you can do this

fleet cedar
#

So manual RAII?

#

Sounds kinda unergonomic

valid jetty
#

which is why garbage collection is planned

potent cloud
valid jetty
#

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

fleet cedar
#

"Simple to use and prototype", in my mind, does not include "you need to include this every time you make a vec"

valid jetty
#

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

potent cloud
ornate quiver
#

that entire document is complete nonsense

quick crow
#

Yeah i kinda assumed as much

ornate quiver
#

if you somehow associate any of those terms with race you have something wrong with your brain and should just stop

quick crow
ornate quiver
#

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

jade stone
potent cloud
jade stone
valid jetty
#

close enough welcome to functional programming

valid jetty
grim flare
cerulean plover
potent cloud
cerulean plover
potent cloud
#

weird it doesn't work with console.error

#

Google moment

#

wouldn't surprise me, if that software feature gets killed soon

cerulean plover
valid jetty
#

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

fleet cedar
#

That syntax looks very painful

valid jetty
#

it will be running on hope and tears instead of a traditional memory management model

fleet cedar
#

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"

valid jetty
magic shale
cerulean plover
#

bevildro

hushed pebble
#

wait @royal nymph r u transfem

royal nymph
#

why'd u think about that out of nowhere lmao

hushed pebble
royal nymph
#

oh

hushed pebble
#

but i always assumed you were

#

idek if you're female

royal nymph
#

I'm silly

hushed pebble
ionic lake
frosty obsidian
#

insane

deep mulch
#

@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") {

}

frosty obsidian
#

i also struggle with api design

deep mulch
#

api design hard

frosty obsidian
#

i think openInput might be best

#

i kinda prefer factory methods for those kinds of things

deep mulch
#

Container.openInput
FFmpeg.openInput
openInput

frosty obsidian
#

i don't really have a frame of reference for what this does

deep mulch
#

like an mp4 file

#

this would be the complete representation of a media file

#

metadata and data

frosty obsidian
#

so this function creates a container with all the metadata and junk

deep mulch
#

ive been postponing containers cause of how much its gonna need

#

it has functions to read the properties and data

frosty obsidian
#

so by itself it doesn't keep track of the data?

deep mulch
#

nop

#

at least not now

frosty obsidian
#

constructor then

deep mulch
#

i try tomorrow

#

a dsl approach might be funny

#

like ktor httpclient requests

frosty obsidian
#

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

deep mulch
#

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

frosty obsidian
#

this stuff is kinda out of my area of expertise

deep mulch
#

I might rename the library

#

ffmpeg calls these libraries libav

frosty obsidian
#

ffkt

deep mulch
#

perhaps

#

KAV

frosty obsidian
#

eh

spark tiger
valid jetty
#

a language im making

spark tiger
#

oh spearblink

royal nymph
fleet cedar
#

.β„“

ionic lake
#

is elle a functional language

valid jetty
#

no its procedural

#

compiled

#

for scripting

#

made in rust

spark tiger
#

also what code editor is that on your screenshot

royal nymph
#

sorry for useless ping pookie

valid jetty
spark tiger
#

oh nice

#

sadly it doesn’t work on windows well

ionic lake
valid jetty
#

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

nimble bone
#

@valid jetty rewrite the Linux kernel in Elle

autumn sigil
#

i know what im doing is wrong but at least give me the right reason

fleet cedar
#

That error is a lie isn't it

royal nymph
#

yeah xd

valid jetty
#

isn’t that just !255 (255+254+253…)???

#

that easily fits into 2.147 billion

glacial mirage
#

you dont even need to do factorials here

#

its saying that 8bits cant fit in 32bits

#

which is like. obviously false

valid jetty
#

no it says all unsigned 8 bit values

#

oh i see

glacial mirage
#

you can fit all unsigned 8 bit values into 8 bits. hope this helps!

fleet cedar
#

But not simultaneously

#

You'd need 2048 bits for that

dusty moth
#

yep*

#

i'm blind

#

and can't spell

deep mulch
#

@valid jetty .elle

deep mulch
ionic lake
old arrow
#

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

old arrow
# valid jetty

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

autumn sigil
old arrow
#

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

grim flare
#

lmao i thought this was off topic

hushed pebble
#

*hot topic

fleet cedar
void leaf
#

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 ?

#

nvmblobztcozy

ionic lake
hidden swift
#

what does realtime linux mean?

autumn sigil
#

googling helps

autumn sigil
#

well now what

valid jetty
#

@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]+
dawn ledge
#

bnf

valid jetty
# dawn ledge bnf
First, do nothing.
Then, do nothing.
Then, do nothing.
Then, do nothing.
Then, do nothing.
Finally, do nothing.
deep mulch
#

@valid jetty make elle build script

valid jetty
#

..?

#

what does that even mean

dawn ledge
#

or make files

valid jetty
#

yeah idk

dawn ledge
valid jetty
#

actually tbf the clean rule is completely wrong now

#

oh well

deep mulch
#

elle build script NOW

valid jetty
#

do you like essayscript

deep mulch
#

😭

#

evil

#

@frosty obsidian finally i can share compose scripts project with you

#

the fixed kotlin version is availabel

frosty obsidian
#

you caught me on a bad day

#

im sick

deep mulch
#

are you on pc

frosty obsidian
#

no im bed

deep mulch
#

ghuhh

frosty obsidian
#

like a normal sick person

deep mulch
#

unsick

#

now

frosty obsidian
#

doesn't work that way

deep mulch
#

i can heal you

#

is there anything youd want me to try

frosty obsidian
deep mulch
autumn sigil
#

how the fuck is this segfaulting

#

i dont understand

#

actually scratchhead i guess? why is the address just 1

#

i am an idiot

#

returning a slice to stack memory

#

very cool

fleet cedar
#

Don't do that

dim sand
calm ruin
#

Wing went out during hurricane and got sick @deep mulch

deep mulch
#

wing almost got blown away by the wind

#

what would we do without wing

nimble bone
#

we need our daily frogs to eat

deep mulch
#

@nimble bone

nimble bone
lavish cloak
#

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?

magic shale
#

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)

balmy lintel
lavish cloak
#

Oh

ornate quiver
#

yeah

#

i suggest you tell your manager to consult with a privacy and gdpr lawyers

lavish cloak
#

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

royal nymph
#

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

lavish cloak
#

Ah I see, I reckon it's the same case for underage users right?

ornate quiver
#

if they're under 13 it's even more restrictive what you can do with the data

thorny prism
#

guys is 100wpm good or bad

royal nymph
#

decent

thorny prism
#

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

dawn ledge
thorny prism
#

50 should be alr cuz normally ion type 100wpm

#

i think i type with around 70wpm on discord but not sure