#πŸͺ…-progaming

1 messages Β· Page 128 of 1

pseudo sierra
#

astro fixes this or smth idek

royal nymph
#

I use astro + react + tanstack router + zustand

#

kind of peak

jade stone
#

It's so annoying

royal nymph
#

had to manually make Zustand support hmr

#

idk why they don't add that natively

#

like persist state after hmr

jade stone
royal nymph
#

well it simply doesn't persist its state

jade stone
#

Are you defining the store in the same file as your components

royal nymph
#

no

jade stone
#

Oh

#

That's really weird

#

I don't have that issue with vite

royal nymph
#

I found a script on github that adds support

#

works well

jade stone
jade stone
fierce pendant
royal nymph
#

my Astro is just <Layout><ReactApp client:only />

fierce pendant
jade stone
royal nymph
#

I still use astro features

#

I use astro actions and api routes

#

actions are amazing

#

automatic rpc via api calls

#

by just calling typesafe functions

jade stone
royal nymph
#

what else would I use

#

next is dogshit

#

pure vite react is too limited

fierce pendant
#

uhhhh

pseudo sierra
#

vue trolley

royal nymph
#

Astro is perfect

fierce pendant
#

create-react-app

royal nymph
#

someone huskbomb this user

fierce pendant
royal nymph
#

I wanted to use react this time

jade stone
pseudo sierra
royal nymph
pseudo sierra
jade stone
#

When tanstack router fixes this I think I'll move to it for my site

#

I'm just using react router client side rn

royal nymph
#

and tanstack integrated super nicely with astro

#

it was really easy to get going

#

just had to add their vite plugin to my astro config and that's basically it

#

can even import the generated tree in your astro file and export it with getStaticPaths

pseudo sierra
#

integrating basically anything with astro is really nice cuz all you need to do is pnpm astro add thing and ur done blobcatcozy

fierce pendant
fierce pendant
#

pnpm astro remove depression

royal nymph
#

I had an issue where I always called fetchUser on mount

#

even if already fetched

#

might have been the reason

fierce pendant
#

astro with bun hmr when

royal nymph
#

you can login via discord oauth and manage your badges

#

then it puts it into approval queue

#

it will have features like adding to other users / transferring (with confirmation of the other user)

jade stone
#

Neat

pseudo sierra
#

veev cooking

royal nymph
#

Astro backend with sqlite

#

actually so nice

jade stone
#

I was considering using vite react server actions

#

But I might just use Astro for the server actions if vite doesn't work out

royal nymph
#

I know vite supports ssr but isn't it very rudamentary

royal nymph
#

I really don't like the way they have taken react

#

especially next

jade stone
#

Fun fact! It's an error to have css modules with non-"pure" rules

#

There Is no way to disable that

#

You have to add something like :not(.unused-class)

royal nymph
#
import { actions } from 'astro:actions';
import { withState } from '@astrojs/react/actions';
import { useActionState } from "react";

export function Like({ postId }: { postId: string }) {
  const [state, action, pending] = useActionState(
    withState(actions.like),
    { data: 0, error: undefined }, // initial likes and errors
  );

  return (
    <form action={action}>
      <input type="hidden" name="postId" value={postId} />
      <button disabled={pending}>{state.data} ❀️</button>
    </form>
  );
}
#

this is kind of crazy

#

(copy paste from docs)

#

you can then access that state on the server

ornate quiver
#

astro4shell soon

clear thunder
#

no more vr 10 five times a day

ocean hatch
spark tiger
#

A game made entirely in V has been released on Steam!

It weights 3MB and runs on Linux and Windows natively.

Taking computer redstone to the next level with 24bit color screens, keyboard inputs, powerful tools like copy pasting, saving blueprints.
https://store.steampowered.com/app/4146690/Not_Gates/

#

cool i guess

spark tiger
jade stone
#

Oh wait

#

Wrong channel

fleet cedar
#

Just rename to #progaming-and-sandwiches and we're all set

jade stone
fleet cedar
#

In my worldview, bread with stuff on is a sandwich

jade stone
fleet cedar
#

But that's probably at least in part language barrier

jade stone
#

That's like the whole meaning of sandwiched

fleet cedar
#

True

#

What do you call it when there's only one bread

fierce pendant
fleet cedar
#

Looks very nice

fierce pendant
#

its my friends website and not mine

glossy pilot
#

ngrok exists for a reason!!

royal nymph
#

@jade stone how hard do you think it would be to add hmr to venbot with vite

#

automatically reload commands etc

#

Also how do you even avoid memory leaks with hmr lmao, not like it really matters but still

#

does it just memory leak by design

stoic tundra
#

Am I allowed to fork vencord?

#

I want to try making my own client and there appears to be a GitHub for vencord

fleet cedar
#

There's a license file

stoic tundra
#

I’m not gonna lie ion wanna read all that

#

Oh I see I can modify it and redistribute it I just can’t make it closed source or add restrictions to it and provide credit

pseudo sierra
#

pretty much

royal nymph
#

it was just that bug in my hook

jade stone
royal nymph
#

i was missing this (i didnt have user in dependency so I thought i wouldnt need it but forgot if component remounts it calls again)

ornate quiver
#

Vlang is such a joke

royal nymph
#

be nice

fierce pendant
ornate quiver
#

yeah one with birth defects

shrewd canopy
stoic tundra
#

Does anyone know where I could go to put together a solid team of devs? I don’t want to start a project alone bc it would take me ages longer and I will never use Fiverr or similar. Is there like a community yall make some friends at or find some help?

stoic tundra
spark tiger
stoic tundra
valid jetty
royal nymph
#

just make an open source project and if it becomes popular people will naturally come contribute

valid jetty
#

oh i was late

fierce pendant
ornate quiver
#

its not

shrewd canopy
valid jetty
#

it's more of a gimmick than a useful tool since it compiles into C primarily

#

instead of llvm or whatever

fierce pendant
valid jetty
#

yeah but its v's only gimmick

#

like thats kinda what its known for

fierce pendant
#

haxe is used by every major company ever

#

and its known for friday night funkin

jade stone
ornate quiver
# shrewd canopy Why

at most its a personal hobby language

  • a bunch of unfinished, incomplete, and broken features
  • a bunch of unfullfilled promises
  • extremely toxic developer & community when faced with criticism (immediate ban)
    they seem to spend more time trying to use vlang in example projects than actually working on the language
    hence their attempt at making an os, browser, ui libraries, etc. in vlang (all of which are obviously incomplete)
#

overhyped and underdelivered

royal nymph
#

these are all really old

#

a lot has changed since

ornate quiver
#

when you burn all the goodwill people had for your project before it even reached a stable release i cant imagine it's improved that much since then

#

to me it will always be a joke

shrewd canopy
#

half of that was fixed

royal nymph
#

it's alpha grade software without even a v1 release

#

if you expect alpha software to deliver all features then it was never possible to satisfy you in the first place

#

like yes, naturally it's unfinished or else it would already have a stable release fluentblobevil

ornate quiver
#

the developer deflected any and all critisism of how unfinished and incomplete it is

hexed surge
#

Do you remember how to download the entire Discord CSS?
Because I don't understand the nameclass update via the website.

ornate quiver
#

iirc many of the issues early-on stemmed from the developer making bad language design decisions and not really knowing how to make a language in the first place

#

only some of them have been fixed since

shrewd canopy
royal nymph
ornate quiver
#

oh here it is

There have also been claims of Alex unjustly banning people from the V community.7071 I can't say I'm particularly interested in looking into each of these cases and evaluating whether the banhammer was deserved. As for my contributions to the V issue tracker, I'd like to think that any outside observer would recognize them as made in good faith, and I hope to avoid the banhammer myself.

Edited on 2024-09-27: About 9 hours after publishing this article and posting it on r/programming, I was "temporarily muted" from V's subreddit. To my knowledge, I have never interacted in the subreddit, nor was I planning on promoting this article in any community spaces of the V project.
https://justinas.org/the-bizarre-world-of-v#the-author

#

this article is great
and recent too, just from last year

royal nymph
#

these are all just hearsay

#

i'm not going to trust it if there isn't any actual evidence

royal nymph
#

insane

ornate quiver
royal nymph
#

what backstory FR

#

no way someone made a google presentation abouyt this drama 😭

ornate quiver
#

of building hype to garner donations and then underdelivering

royal nymph
royal nymph
#

i mean, read his post on HN

#

V literally delivered all of these features

#

and his language is overly aggressive

ornate quiver
#

it was just lies to build hype and get donations

pseudo sierra
ornate quiver
#

whether they were implemented years down the road is irrelevant if you ruin the trust immediately upon launch

royal nymph
#

how dare you claim to be dependency free while depending on libc

fierce pendant
#

why use any language other than haxe when you could just use haxe

jade stone
#

This is fucking insane

fierce pendant
royal nymph
#

i really dont get the complaints here

#

okay, he missed the deadline by 2 days, fair. I don't think that's a big deal though

#

when you click the star is has this disclaimer

#

he could have communicated it better and more clearly but calling him a "complete fraud" is very over the top

#

well this was complete bs lmao

#

like

#

all of these complaints are true but at the same time if you mind them just dion't use it :p

i agree that's why I don't use it for anything relevant and only used it for advent of code, but at the same time its just the nature of WIP

#

they don't make the language inherently bad, just not mature enough to use it in production

ornate quiver
#

of course nobody is using this for production

#

the whole point of this discussion is that vlang incorrectly advertises(ed) itself as this amazing magical and completely novel thing from day 1 that it never has been

#

while farming donations this entire time and silencing criticism

fierce pendant
#

v seems really interesting actually

royal nymph
valid jetty
#

the only cool part about v is that he compiles himself to C

fierce pendant
#

i will compile haxe to c++ to v to c to wasm and use that wasm in haxe

jade stone
#

least bloated cef tarball

#

it's 800mb compressed

jade stone
#

just given how complex c++ can get

#

i doubt v has the features to be able to do it

deep mulch
#

so expensive

timber tusk
#

would it be possible to make a plugin where you can set some users as a priority so you still get notifications from them even on do not disturb?

glossy pilot
#

and the message ofc

runic sundial
#

@royal nymph thoughts on doing a DMCA on this new "V" language?

#

Pretty sure that's infringement

royal nymph
ornate quiver
#

truee

dense sand
#

Has anyone recently verified to a gh student pack with isic?

fierce pendant
frozen steppe
#

java

fierce pendant
fierce pendant
#

that would be cool

dense sand
fierce pendant
#

hmm

#

i dont know

dense sand
#

It seems like they are kinda complicating the process

frozen steppe
#

what do u wanna make

deep mulch
#

insanee

#

@calm ruin you will do

calm ruin
#

upvote (lived 1 month, died before release)

sleek orbit
#

.

deep mulch
#

finish opencord @calm ruin

frozen steppe
#

I am big java fan

#

windmill even

pseudo sierra
frozen steppe
spark tiger
#

@frozen steppe wait r u that one april who been here b4

spark tiger
#

ohh

frozen steppe
spark tiger
frozen steppe
ornate quiver
#

Starting March 1, 2026, GitHub will introduce a new $0.002 per minute fee for self-hosted runner usage.

#

they want to charge for your own compute

#

fucking insane

fallen nebula
#

likely for the networking needs or smth

shrewd canopy
#

sourcehut literally requires paying if you want to use CI at all
plus the price github needs is very cheap, and you are probably not using self-hosted runners

ornate quiver
#

the audacity

fierce pendant
spark tiger
#

Runner usage in public repositories will remain free
ykyk as long as for public repos its free who cares

deep mulch
supple whale
#

new URL('./worker.js', import.meta.url)

#

gotta love vite not supporting basic features correctly

#

ah LMAO

#

having that in a ts file breaks it

#

but not in a TS file is fine!

jade stone
#

Also read the docs

deep mulch
#

@valid jetty make an sdr program using elle

fallen nebula
#

V wouldn't like me then

#

I always disable HDR

#

Because there's just no good HDR

#

And i'd rather get good SDR

#

Also no if i play inside with everything shut, it's not to look at the sun on my screen smh

ornate quiver
stoic tundra
frozen steppe
#

what do you wanna make / work on that you need developers so desperately and you're willing to pay so much

stoic depot
#

did discord change stuff about css class names that are like created automatically or something

#

i have .pill_e5445c but now they seem to be .e5445cbd3ad226f2-pill

fierce pendant
#

when shadcn/create for astro bwaaa

#

like shadcn/create seems so cool

#

but why no astro

royal nymph
#

slop

fierce pendant
valid jetty
fierce pendant
valid jetty
#

i'm not saying it's easy i'm saying it's a blatant copy lol

tired vigil
#

that's like the most basic theme to exist
no border radii, faint outline, some accent color, monospace text

#

uhh did u know square buttons were invented by minecraft
so it's clearly a copy

valid jetty
#

whatever i don't wanna argue it just looks very similar lol

#

@nimble bone

#

Any cheaper alternative to Cursor?? $1400 in a month is absolute madness, no matter the amount of code πŸ’€

royal nymph
#

he doesn't know that he can get antigravity for 20$ or 140$/month depending on needs

deep mulch
#

@valid jetty make Elle memory safe

fierce pendant
#

-# /j if you couldnt tell

royal nymph
fierce pendant
#

uhh

#

yeah ik i need to be killed for my sins

#

AUR is down i cant install it rightnow anyways

#

ok it isnt down anymore

tired vigil
jade stone
royal nymph
fierce pendant
tired vigil
#

google loves releasing competing products and then killing the weaker ones

fierce pendant
#

but idx cant be used like it was before iirc

fallen nebula
#

i don't like SQL

#define GET_CONSULTATIONS_SQL_COMMAND "SELECT Consultations.* FROM Consultations JOIN Doctors ON Consultations.doctor_id = Doctors.id WHERE Consultations.patient_id IS NULL AND Consultations.consultation_date BETWEEN ? AND ? AND Doctors.specialty_id = IFNULL(NULLIF(?, 0), Doctors.specialty_id) AND Consultations.doctor_id = IFNULL(NULLIF(?, 0), Consultations.doctor_id)"
winged mantle
fallen nebula
deep mulch
#

@frosty obsidian uses antigravity

fallen nebula
#

We’ve read your posts and heard your feedback.
οΈ€οΈ€
οΈ€οΈ€1. We’re postponing the announced billing change for self-hosted GitHub Actions to take time to re-evaluate our approach.
οΈ€οΈ€
οΈ€οΈ€2. We are continuing to reduce hosted-runners prices by up to 39% on January 1, 2026.
οΈ€οΈ€
οΈ€οΈ€We have real costs in running the Actions control plane. We are also making investments into self-hosted runners so they work at scale in customer environments, particularly for complex enterprise scenarios. While this context matters, we missed the mark with this change by not including more of you in our planning.
οΈ€οΈ€
οΈ€οΈ€We need to improve GitHub Actions. We’re taking more time to meet and listen closely to developers, customers, and partners to start. We’ve also opened a discussion to collect more direct feedback and will use that feedback to inform the GitHub Actions roadmap. We’re working hard to earn your trust through consistent delivery across GitHub Acti…

royal nymph
#

wtf typescript 5.2 has using support

#

but it's kind of pointless because nodejs classes dont support it

solid gazelle
royal nymph
#

you have to make your own wrapper

#
function openWithCleanUp(...args) {
    const fd = openSync(...args);
    
    return {
        fd,
        [Symbol.dispose]: () => closeSync(fd)
    }
}

using file = openWithCleanUp("filepath", "w");
writeSync(file.fd, "balls")
solid gazelle
#

when you writeSync(file isn't file an object with the keys fd and symbol.dispose

#

so it'd be like writeSync(file.fd idk

royal nymph
#

yeah

solid gazelle
#

yay

royal nymph
#

idk if you can do ```js
using { fd } = openWithCleanUp()

#

abomination

solid gazelle
#
let _openSync = openSync;
openSync = (...args) => {
  let r = _openSync(...args);
  r[Symbol.dispose] = () => closeSync(r);
  return r;
}
#

worky or not idk

solid gazelle
royal nymph
solid gazelle
#

yop

frozen steppe
#

this might be

#

the ugliest piece of software

#

EVER

ornate quiver
#

Rust programmers re-wrote a portion of the Linux kernel (Android's Binder) in Rust. (Because, it would seem, re-writing working code in Rust is a religious obligation for many.)

That code was published with the Linux kernel update a few weeks back.

Yesterday, it was revealed that there was a vulnerability in that code.

That vulnerability (which could take down an entire system) is due to memory corruption in the "memory safe" Rust code.

If you investigate the specific, offending Rust code, you'll find that the code is marked "unsafe". Which is a common word you will find throughout all Rust code within the Linux Kernel.

#

can someone explode their twitter account

gilded surge
#

the only reason these people even care is cause it's in rust

#

nobody talks about the dozens of memory corruption bugs that are discovered in kernel c code

pseudo sierra
#

"due to memory corruption in the "memory safe" Rust code"
unsafe block
bros retarded
wires

#

also that's the first rust related cve in the 5 years since rust was introduced trolley

ornate quiver
#

it is the lundake journal so pretty much anything he posts is fucking idiotic

gilded surge
#

also according someone who actually works on the kernel this just causes binder to crash

#

no memory corruption vuln

#

"Note to the other 159 kernel CVEs issued today for fixes in the C portion of the codebase"

clear thunder
#

dude he looks like mr robot

#

if you look hard enough

pseudo sierra
gilded surge
#

but yeah this doesn't even cause memory corruption vuln cause as soon as binder tries to do anything after this race occurs it'll deref a null/invalid ptr and shit itself

pseudo sierra
#

yop

#

if this wasn't kerneldev this wouldn't even get a cve trolley

gilded surge
#

yeah everything kernel is a cve cause for example if you could cause a kernel crash that could be vaguely construed as a dos or something idfk

#

you don't want random programs crashing your shit (they could do that anyways so who even cares)

frosty obsidian
frozen steppe
royal nymph
royal nymph
#

you should make the hitbox for links full width

#

make this clickable too

frozen steppe
#

okay will do

deep mulch
#

@frozen steppe hi

frozen steppe
#

SALUTATIONS

deep mulch
#

@royal nymph

#

@frozen steppe teach me everything about jvm internals blobcatcozy

frozen steppe
royal nymph
#

teach zt java

#

he forgot how to use it from all the kotlin

deep mulch
#

yop

#

I forgor

frozen steppe
#

its also i can forgive kotlin users

deep mulch
#

I'm eepy

frozen steppe
frozen steppe
deep mulch
#

hii

frozen steppe
royal nymph
#

insane

royal nymph
frozen steppe
deep mulch
#

insane

frozen steppe
#

explaining the classloader in

#

extreme depth

deep mulch
#

yop

frozen steppe
#

the best documentation is openjdk src itself

deep mulch
#

okay iwll

#

nini

frozen steppe
#

gn

ornate quiver
#

wait didn't you write a blog on jit a few months ago

#

or was that someone else

#

wait nvm that was on JNI

#

im dumb

lavish cloud
fleet cedar
#

Because jump opcodes like goto and if_acmpne have u16 for the target address

lavish cloud
#

Pain

#

Now I need to rewrite my compiler to handle these situations

winged mantle
#

C# confuses me

#

instead of directly putting functions in namespaces, you have to put them in classes

#

and C# has the partial and static keywords to make classes behave more like namespaces

#

static means that an instance can't be created and partial allows you to define the functions across files

#

even with the class being static all of the methods still need to be annotated with static

#

what do namespaces even allow that classes don't

fierce pendant
#

hi im a c# dev and what the fuck is a namespace

winged mantle
#

namespaces in C#: groups together declarations which can then be referenced with the namespace as prefix or brought into the global scope with using. can't have instances created.
static class in C#: groups together declarations which can then be referenced with the class as prefix or brought into the global scope with using static. can't have instances created.

#

seems like redundancy if you ask me

frozen steppe
#

I want to write another blog

winged mantle
#

my C# code when i was probably 9 or something

#

so very good

gilded surge
#

i <3 nvidia drivers on linux

gilded surge
#

deep fried mha

ornate quiver
#

good

deep mulch
spark tiger
frozen steppe
#

I added comments to my blog

#

using at proto

royal nymph
#

FUCK FIREFOXXXXXXXXX WHYYYYY

deep mulch
royal nymph
#

chromium (supports) vs firefox (doesnt support)

#

native popovers

#

so neat

frozen steppe
gilded surge
#

oh yeah but firefox is actively working on implementation so

frosty obsidian
#

issue is some people upgrade like once a year

gilded surge
#

true

fleet cedar
#

With how they prostituting themselves to shady investors

#

Whereas chrome is backed by a pretty major corporation

shrewd canopy
jade stone
#

i am going to go insane

jade stone
#

this function has some fucking side effect

#

when i call it

#

it makes everything break

#

but if i hardcode the return

#

everything works

deep mulch
#

love

#

I know why its broke @jade stone

ornate quiver
jade stone
#

idk

jade stone
#

I fixed it by using another API to pre-compute them

deep mulch
#

@jade stone @jade stone @jade stone

#

sadan.rar

jade stone
deep mulch
pseudo sierra
fierce pendant
nimble bone
#

firefox users can kys or something

#

they don't deserve badges

solid gazelle
#

good browser users

#

nina uses perplexity

granite moat
#

Does any of ya'll use vim?

#

I wanna get started with vim/nvim but I have no idea where to start

pseudo sierra
#

nvim +Tutor is a pretty good place to start

winged mantle
#

I feel like C# is actually quite a bit worse than C++ in terms of overlapping features

winged mantle
# pseudo sierra `nvim +Tutor` is a pretty good place to start

also after using it for a bit myself essential plugins IMO are:

  • nvim-cmp (or another auto completion plugin)
  • nvim-lspconfig
  • nvim-treesitter
  • neotree (way more user friendly than nvim-tree)
  • telescope
  • neoformat (tbh there's probably a better alternative, just something to be able to run a code formatter)
winged mantle
# winged mantle I feel like C# is actually quite a bit worse than C++ in terms of overlapping fe...
// has immutable fields and reference semantics
// can be initialised with or without named parameters - new(0, 0) or new(x: 0, y: 0)
record Point(int X, int Y);

// has mutable fields and struct semantics
// can be initialised with or without named parameters - new(0, 0) or new(x: 0, y: 0)
record struct Point(int X, int Y);

// has mutable fields and reference semantics
// can only be initialised with positional parameters - new(0, 0)
// unlike the using statement in C++ must be at the top level and cannot be exported for other files to use 
using Point = (int X, int Y);

// turns out C# does have global using which can be used in other files but it can't be inside a namespace
global using Point = (int X, int Y);
#

just trying to keep track of some data I already have several options to think about xD

tired vigil
#

the latter two (record struct, Point alias) can also be initialized using object initialization syntax, just to make it more confusing
the first one doesn't have a default constructor

winged mantle
#

I didn't even mention manually creating a struct or class with a constructor, but I don't really want to keep doing that

#

you can even do this for a mutable record

record Point(int X, int Y) {
    public int X = X;
    public int Y = Y;
}
#

but you have to write everything twice

tired vigil
#

why does it even call return() on regular ass objects

#

is this related to generators or something

#

javerscript my beloved

solid gazelle
#

whatt

#

lowkey they should now add like

#

Symbol.sum Symbol.sub Symbol.mul yk

winged mantle
#

also you can initialise tuples with the names it turns out

#

you just omit new

#

this feels way more confusing than c++ xD

tired vigil
#

also love the way there's like 5 different ways to create delegates and arrays and whatever in c#
like how they deprecated the stackalloc and delegate keyword in favor of simpler syntax, but kept it in for backwards compatibility

winged mantle
#

I guess the main advantage is probably DX?

#

C# probably still has better DX than C++

#

one of the worst things in C++ is that the better way to do things often looks worse or is at least less concise

#

I guess at least C# introduces multiple ways that the syntax natively supports?

#

though ig having delegate and Func is similar to how C++ has function pointers and std::functions

night sphinx
jade stone
#

this won't work

#

Return is a keyword

royal nymph
jade stone
#

Insane

royal nymph
#

it's an iterator thing

#

that's why he uses arrays

#

ve ```js
const obj = {
Symbol.iterator {
return {
next() {
let i = 0;
while (++i) return { done: false, value: i };
},
"return"() {
console.log("Closing Iterator");
return { done: true };
}
}
}
}

const [_] = obj;

elder yarrowBOT
royal nymph
#

funny

shrewd canopy
royal nymph
winged mantle
#

THERE'S MORE C# SYNTAX WHY

#

C# is insane

#

invevitably you will learn the old way of doing many things

#

though i do prefer this new syntax

royal nymph
#

why would they do that

winged mantle
#

yeah

royal nymph
#
StringUtils.IsAllUpper("aaaa")

is way better

winged mantle
#

I think

royal nymph
#

i hate extension methods

#

evil

winged mantle
#

i'm not a big fan either

#

just trying out C# features

#

extension methods probably exist so more people download visual studio as it's hard to work out where the declaration is from without an ide

jade stone
#

extension methods so good

royal nymph
#

nope

deep mulch
#

@sadan.zip

deep mulch
royal nymph
#

they are confusing and have potential to conflict with future methods the language wants to add

deep mulch
#

smooshgate

jade stone
spark tiger
winged mantle
#

C# feels like a language which is being actively developed

#

I only just started C# though but it feels like stuff is constantly getting added which is quite different to most other langauges i've used

#

is there no point where a language can be considered feature complete

#

why does go ever add features it's already perfect

tired vigil
#

Once csharp adds discriminated unions it's over for rust /jk

shrewd canopy
winged mantle
#

aa ping sory

#

rust enums are the best feature

#

ik i defended raw enums but i was insane

#

it's pretty elegant to have discriminated unions which can also be enums by just not having data

#

neat

deep mulch
#

@winged mantle

winged mantle
#

the reason i pinged was i was using discord in my web browser despite already having app open (no noreplyping)

chilly halo
#

how would i start trying to learn how to make plugins

#

what videos or smth idk

clear thunder
chilly halo
#

thank you

glossy pilot
#

rip cs2 discord and other stuff

fallen nebula
glossy pilot
#

Should’ve used early returns

#
if (string.IsNullOrWhiteSpace(filePath))
    return;

if (File.Exists(filePath))
{
    File.Delete(filePath);
    status.Text = "file deleted";
    return;
}

if (Directory.Exists(filePath))
{
    Directory.Delete(filePath, true);
    status.Text = "dir deleted";
    return;
}
jade stone
#

i hate the c# brace style so much it makes me not want to learn it

#

1tbs >>>>>>

still jolt
frosty obsidian
#

thats very idealistic

#

i probably write more braces in kotlin than anywhere else

fallen nebula
#

I used to be an Allman fan, it was better than nothing
And then i discovered the beauty of K&R

night sphinx
#

I'll start using horstmann for all my projects now thanks

fierce pendant
#

horstman isnt that bad

#

but haskell fear

#

tbh im gonna switch from k&r to lisp /jjjjjj

pseudo sierra
#

lisp inaccurate it doesn't have 200 ((((((((()))))))))

fierce pendant
pseudo sierra
#

idek have you tried not using typescript

fallen nebula
#

I propose JSDoc

#

It saves your build time

fierce pendant
#

hmm?

#

typescript is very fast

#

and i dont build

#

i use bun

shrewd canopy
fierce pendant
#

no?

#

have you ever used bun

paper scroll
#

i love bun

shrewd canopy
fallen nebula
supple whale
#

Doesn't run in the browser

#

the amt of missbehavior bun has for any nodejs apis, shit even some w3c apis is nuts

#

and god forbid your dependencies use typescript, you're in a world of hell

fierce pendant
winged mantle
glossy pilot
deep mulch
#

how

#

kotler is K&R

glossy pilot
glossy pilot
deep mulch
#

id say java is more similar to C# than kotlin

trail nimbus
fierce pendant
glossy pilot
frosty obsidian
#

applying it to normal languages is insane

deep mulch
#

wing uses Haskell style in everything

valid jetty
royal nymph
#

spent like a minute figuring out why this doesnt work

#

I saw the hsl(from syntax somewhere and havent stopped using it since

#

so fucking useful

deep mulch
#

h s l

tired vigil
#

css so goated
I once impressed my web dev teacher by showing him this syntax

supple whale
#

damn those interactions usually end with "dont bother coming to these classes" for me

ornate quiver
deep mulch
#

i dont get it

supple whale
#

I used ai to write something

#

and i feel disgusted

#

that said htere was a lot of calling it incompetent involved

royal nymph
# deep mulch i dont get it

it creates a new hsl (hue saturation lightness) colour from an existing colour and sets its alpha value to 0.5

jade stone
deep mulch
#

A zero-crossing is a point where the sign of a mathematical function changes (e.g. from positive to negative), represented by an intercept of the axis (zero value) in the graph of the function. It is a commonly used term in electronics, mathematics, acoustics, and image processing.

#

yes

#

The Hann function is named after the Austrian meteorologist Julius von Hann. It is a window function used to perform Hann smoothing or hanning. The function, with length

    L
  

{\displaystyle L}

and amplitude

    1
    
      /
    
    L
    ,

…

deep mulch
#

i wish i was a nerd like rosie i could understand how this sstv code works

frosty obsidian
#

i know how it works

#

I won't tell you

elder yarrowBOT
#
Rule 13\. We only support official builds

We only provide support for official Vencord builds downloaded from https://vencord.dev. Do not ask for help with unofficial versions (e.g. Equicord) or user plugins. Also do not ask us for help with getting any of these unofficial versions.

ornate quiver
#

@royal nymph ban

fierce pendant
nimble bone
#

v+ no programming

fierce pendant
#

why give ai the minfified bundle when you could give the ai the unminified bundle instead Clueless

warm oar
#

gg pin

fierce pendant
#

im currently watching heartstopper in ghostty

fleet cedar
#

And it's the minified that patches apply to anyway

night sphinx
#

actually we do

#

just tell the ai to unminify it yk

supple whale
#

ayyyyy r2s on my own library

#

crazy how node --disallow-code-generation-from-strings --disable-proto=throw --frozen-intrinsics just fixes it

nimble bone
#

vsb 1 malware

elder yarrowBOT
twin matrix
twin matrix
jade stone
twin matrix
jade stone
#

oh neat

supple whale
#

@jade stone did u ever use hasOwn?

#

or hasOwnProperty?

#

[same thing ik]

jade stone
#

are you referring to that function i made a while back

supple whale
#

nope?

jade stone
#

or the js builtin

supple whale
#

im referring to "idk how this shit works and i'd like to ask some1 that knows"

#

TLDR my IPC has the same vuln as react2shell

#

so i want to fix it with hasOwn

#

but idk when hasOwn returns false

#

cuz

#

returns true if the specified object has the indicated property as its own property.

#

shouldnt this be false...?

jade stone
#

is x an instance of B

supple whale
#

yes sorry

#

x = new B()

jade stone
#

i remeber having to make this to resolve inherited property decriptors

supple whale
#

sinec its not its own property

#

but a property of the parent descriptor?

twin matrix
#

and not just hsl btw, you can use rgb, oklab, anything that is a color function has relative color support

#

pretty dang cool ngl

supple whale
#

you should exclusively use oklab tbf

#

it handles color spaces > sRGB

#

way better

#

than HLS or RGB

jade stone
supple whale
jade stone
#

(good practice imo when dealing with user keys)

supple whale
#

but i want to understand why this works

#

and what it would break for other developers

jade stone
#

guh????

supple whale
#

YEAH THATS WHAT I FUCKING MEAN!!!

#

but it didnt do that?!

jade stone
#

is it some weird thing with test = "abc" vs define(this, "test", "abc")

#

that's the only thing i can think of

#

some weird edge case with es6 classes

supple whale
#
class A {
    test = 42
}
class B extends A {
    test2 = 'abc'
}
const x = new B()
console.log(Object.hasOwn(x, 'test'))
supple whale
#

skill issue

#

idk i'll just trust hasOwn and hope it doesnt break shit for developers

jade stone
fallen nebula
#

people are crazy

rough sky
#

anyone know why discord streaming turns off instant replay from teh nvidia app

fallen nebula
#

discord is saving you from bad apps smh

#

it's telling you to install OBS πŸ™‚

fierce pendant
fallen nebula
#

it's indeed not codespace but "local"

jade stone
#

thanks clangd, the header mutex definitely has the symbol shared_mutex

#

(it should be telling me to include shared_mutex

rough sky
#

cause ive been using it for years

#

why should i change

fallen nebula
#

because OBS is the way

fierce pendant
#

let mre try that

tired vigil
# supple whale

you're defining two properties on the very same this object, what do you expect to happen

supple whale
#

which is why im asking for help

tired vigil
#

can you show an example of the vulnerable input ur dealing with

supple whale
cedar sluice
supple whale
#

yes

#

you check only the first child level

#

not all children

viscid grove
supple whale
#

yes because discord is dogshit

#

and it re-mounts nodes few times a second

#

each time u hover over anything, an animation starts/ends etc

#

which causes stylesheet recalculations

#

which lags

#

its generic React stuff

cedar sluice
#

lol

#

aight then, good to know about the trick, but also that it's still bad

#

I've noticed that one css I use (remove VR titlebar) still uses 10 of :hass but I can't notice my client being laggy. I guess that's just thanks to the sheer power of the pc keeping it together?

supple whale
#

basic security features? electron would never.

glossy pilot
#

I hate writing xaml

fierce pendant
#

you need to write xaml???

glossy pilot
#

it's wpf

fierce pendant
#

use electron SunglassesFluent

glossy pilot
fierce pendant
glossy pilot
#

I needed something to interact with windows

#

so c# was kinda the obvious

shrewd canopy
#

Electron sucks

#

Win32 better honestly

fierce pendant
shrewd canopy
#

Web tech is banned

fierce pendant
supple whale
#

fuck tauri doe

#

but electron bae

fierce pendant
#

she b on my a till i e

fierce pendant
#

guess what this server is about

pseudo sierra
fierce pendant
#

but hating swc more

#

si generally hating rust

#

this is a rust hating server

deep mulch
#

@pseudo sierra i used to be a rust hater

pseudo sierra
deep mulch
#

yes

fallen nebula
#

native is the way

lofty iris
#

sdl or raylib

#

if you dont like doing wpf

#

theres always other options

worldly sigil
#

react native in the browser in an electron desktop wrapper trolley

lofty iris
#

nah

#

just use java swing

#

frrrrrr

fierce pendant
#

time to watch fireships video on how to overengineer a tech stack again

cedar sluice
glossy pilot
cedar sluice
#

otherwise xaml isn't that bad imo, certainly better than positioning the elements in code in winforms

lofty iris
#

how

#

also wxwidgets isnt that good nowadays

lofty iris
fierce pendant
#

xtensible applicarion markup language

lofty iris
#

xaml

#

goofy name

#

missing the e is weird

#

shoulda been eaml

#

oh

#

its eXtensible Application Markup Language

spark tiger
#

microsoft finally make .sln files readable

#

by introducing .slnx

#

lowkey why did it take them so long

#

when .csproj already had good structure

shrewd canopy
fierce pendant
#

why are you using .net

shrewd canopy
fierce pendant
#

oh

#

why are you using sln's for cpp projects?

shrewd canopy
#

Windows only projects

fierce pendant
#

qhar

#

anyways everything is gonna be made in typescript in a few years anyways /j

shrewd canopy
#

Rust*

spark tiger
spark tiger
#

This shift will shock some people, but it’s exactly the future I’ve described, where Microsoft uses AI to refactor (rewrite) the NT/Windows kernel and its other most important codebases using Rust

#

i’m criine

shrewd canopy
#

Or even fake

shrewd canopy
pseudo sierra
# shrewd canopy Or even fake

Update:
It appears my post generated far more attention than I intended... with a lot of speculative reading between the lines.

Just to clarify...Β Windows is NOT being rewritten in Rust with AI.

My team’s project is a research project. We are building tech to make migration from language to language possible. The intent of my post was t...

shrewd canopy
#

Yeah ok

#

It was bait then

pseudo sierra
#

almost

#

the original post literally said

My goal is to eliminate every line of C and C++ from Microsoft by 2030. Our strategy is to combine AI and Algorithms to rewrite Microsoft’s largest codebases. Our North Star is β€œ1 engineer, 1 month, 1 million lines of code”.

#

so like are you rewriting this shit or not

#

the update makes no sense in context of the post 😭

solid gazelle
#

hey copilot please rewrite this in rust

clear thunder
shrewd canopy
#

The same bugs were happening before ai exploded

clear thunder
#

microsoft absolutely have the resources to stop such serious bugs, it's the result of their neglect

nimble bone
#

worf vibe codes all windows bugs

#

ykyk

clear thunder
#

Mac*

#

nvm Mac is bug free

dense sand
solid gazelle
shrewd canopy
#

The ssd bug isnt even related to Windows at all either
It was sloppy SSD firmware

granite geyser
#

AIs are terrible with coding

#

Actually wait

#

Yes do rewrite it with Ai

#

I want my critical bug bounty

bold violet
#

hi, does anyone in here know what css the clientheme plugin modifies? so i can use quickcss in another client mod im testing

granite geyser
#

Die

bold violet
#

thanx

supple whale
#

i like how a single line of code

#

makes multithreading in wasm completly fucking useless

#

HEAPU8.subarray(pointer, pointer + reassigned.w * reassigned.h * 4)

#

because with threading u need to do:

#

HEAPU8.slice(pointer, pointer + reassigned.w * reassigned.h * 4)

#

that alone negates all the speed-up i get from threading

#

multi vs single

#

so what i save 40ms in the wasm, when i loose 60ms on extracting the data from wasm

#

:))))))))))

#

god wasm is fucking useless

#

i spent 14 hours on this btw

#

its 9am

#

i still havent slept

#

i fucking hate C/C++

jade stone
pulsar marten
deep mulch
supple whale
#

and i had to use a bunch of experimental shit

#

such as toFixedLengthBuffer

#

and patch emscripten itself for lower memory overhead

#

still didnt help doe

#

the wasm deserialization is simply too expensive

dense sand
#

is anyone here familiar with any more free Sentry-like monitoring tools? Specifically for Next projects

supple whale
#

us any1 here familiar with webgpu?

fierce pendant
supple whale
#

@dawn ledge do you know any webGPU shit? do you know about drawing shit from shared array buffers with it?

frozen steppe
#

@runic sundial Remember when you asked me to do the fastmath deobf thingy

#

I got bored so I started working on it again

frozen steppe
#

yes

runic sundial
#

epico

frozen steppe
#

string decryption was actually kinda easy

#

mainly because im just doing it at runtime with an agent

#

fastcraft.B.b(string) takes a encrypted string and returns the decrypted one lol

runic sundial
#

String-wise all you're gonna get is where it lands ASM injections as far as I understand

#

And we can already detect that by just dumping the classes post-load and diffing with/without FC

supple whale
supple whale
#

i reduced the JS compute by 90% using webGPU black magic

#

welll. "I" is a strong word

#

i had major assistance

#

i still dont understand webGPU fully

#

so i was guiding it like crazy

ornate quiver
#

yeah what are you doing

supple whale
supple whale
fierce pendant
supple whale
#

indeed

fierce pendant
supple whale
#

i want to end myself

#

i almost didnt sleep 2 days in a row

supple whale
#

realised it wont work

#

then realised "wait what if i webgpu"

#

then spent another 10 hours coding

#

if not more

#

then finally went to sleep

#

and now im back at it

#

END ME HOLY FUCK

fierce pendant
#

sleep is important

#

i dont think that running ass on webgpu should cause that

supple whale
#

haha

#

you're clueless

#

and therer's still the entire "actually using webgpu" thing

#

and i still need to do color space conversion

fierce pendant
supple whale
#

not before i finish this shit

#

maybe after

fierce pendant
#

no please just generally dont

royal nymph
#

literally same reason I dropped Firefox support of vencord

#

When even one of the most popular add-ons has to fight wrong reviews you know there's something wrong

#

once mozilla flagged a vencord build as breaking their rules and the offending code was electron code that isn't even bundled on web (and anyone with even a tiny sliver of experience would know is impossible to even run on web lmao)

pseudo sierra
#

😭

royal nymph
#

If their reviewers are this incompetent, how can one expect them to correctly identify security issues / malware in extensions

lavish cloud
#

Speaking of malware in extensions

#

What's with all of the normal extensions changing to be evil recently

#

One extension turned my PC into a botnet to leech chatgpt free tokens per IP

#

Another started opening random AI tool websites

royal nymph
#

What kind of extensions are u using 😭

lavish cloud
#

I think that was Stylus(?) and ModHeaders

royal nymph
#

stylus???? no way

shrewd canopy
#

I swear i have stylus just to remove unused marketing stuff from deepl

royal nymph
#

I think stylus is fine

#

you'd see news if it was compromised

#

i also use stylus catstare

#

maybe Stylish

#

but Stylish has always been a big avoid

lavish cloud
#

Wasn't stylish for sure

deep mulch
#

@valid jetty hiii

dawn ledge
clear thunder
pseudo sierra
#

istg they just put interns to do the reviews and never actually supervise them on it

worldly sigil
supple whale
#

I FUCKING DID IT

#

WOOOOOOOOOO

#

webgpu just flats out let u use sharedmemory

#

this compares my old [x2-x4 faster than alternatives] lib, vs my new lib

#

which is pretty much x4 or x5 of that

#

XD

#

@royal nymph you'll love this

#

so many bitmaps were sacrificed to get here

languid trellis
#

never had that happen to me

#

and have a good amount of extensions enabled

#

noscript ublock origin canvasblocker localcdn umatrix and a user agent switcher

ionic lake
#

just don't install sketchy extensions that will definitely get sold overnight

dense sand
#

can you write OS in typst

supple whale
#

1300 LOC less

#

and >x5 faster

fierce pendant
supple whale
#

gonna publish the code in a few minutes

#

so gawkers can enjoy