#programming

1 messages · Page 102 of 1

olive sable
#

it seems like the way they implemetned gsync is really poor

nocturne olive
#

Both of my GPUs are under 30W while in fairly normal use, with two monitors connected to the main GPU, one of which is high res and refresh rate

olive sable
#

turnign on g-sync apparently forces the memory clock to over 9000mhz

#

im geussing they dont actually do any optemizations

#

if nothing changed you dont need to rerender anything GETHIM

nocturne olive
olive sable
#

according to toast it counts all the frequencies toghether of all the chips

opaque sigil
#

that was a lie

olive sable
#

ah

#

what was it you said?

opaque sigil
#

as far as i can tell it's mostly due to PAM4 allowing you to send multiple bits at a time + ddr

olive sable
#

wait i have 12 memory chips even

opaque sigil
#

gpu memory is complicated i don't quite know that much about how it actually works on a hardware level tbf, go ping quack if you want an actual answer neuroPogHD

#

as far as i'm concerned smart people managed to figure out how to make things go brr OK

olive sable
#

wait, i have variable refreshratew apparently

#

how do i turn that on in wondows?

opaque sigil
#

i think that's usually a setting on the monitor itself?

#

could be wrong

#

or it's tied to gsync idk

olive sable
#

it should be on in the monitor but it isnt set in widows i think

#

found it

#

this is new

#

from the looks of it that didnt actually save much performance

olive sable
#

clang gave me some type of ai autocomplete now

#

its pretty usefull sometimes

#

other times it fucks some stuff up

#

also some gl functions are blue now

#

Hmmge my texture broke

#

it gave up on that red square i guess?

amber fractal
#

I mean I don't think the red was intended and overflowed

olive sable
#

im using this perlin noise texture

#

and it looks like its using it 3x?

amber fractal
#

Yeah, looks like that red square is the error then nuked afterwards. Especially because noise textures are monochrome

#

At least when not combined with other textures

olive sable
#

the base texture is 128x128, and this frambuffer is also 128x128. so im wondering why its tiling the texture???

amber fractal
#

doubting any MSAA that hasn't been added yet, that'd be 2 or 4

olive sable
#

ohhh, its 8 bits per pixel

#

the actual image is monochrome

#

my code doesnt handle that

#

i only got a
GLint format = (bitsPerPixel == 32) ? GL_RGBA : GL_RGB;

#

lemme just pass it to the shader in the red channel

#

looks pretty ominous but its correct now

hoary lion
#

hmmm

#

actually don't know how should I convert text to phonemes

sage crag
olive sable
#

idk what you're refering to

wise pond
#

I have begun writing a custom frontend for my local Koboldcpp installation, I have even implemented almost realtime vision that gets submitted along with the user input.

desert plaza
wise pond
#

lol

olive sable
#

pure coincidence KEKW

desert plaza
olive sable
#

no

wise pond
olive sable
#

there was no sarcasm intended in that statement nor this one

desert plaza
#

damn that's crazy

#

anyways, improved file size neuroGlorp

#

-7 bytes 😎

amber fractal
#

Small file size and nix don't mix well

#

at least not as a general case

desert plaza
#

i just happen to be on nix

#

wdym nix don't like small file sizes

#

of executables?

amber fractal
#

Just thinking how some people don't slim down on files in /nix very much depends on the person

desert plaza
#

fat files smh my head

amber fractal
#

me with mutipule copys of my WM

desert plaza
#

i write machine code by hand so i can have the smallest executable in all the land neuroGlorp

amber fractal
#

I should consider slimming

olive sable
#

when floor() is more expensive then casting twice neurOMEGALUL

#

rn im consistently at 3200fps

nocturne olive
olive sable
#

i want to push more distance tho

#

lemme try some more things

opaque sigil
#

welp, 2 hours of working on my nix flake down the drain because i forgot to push and replaced the image with yday's cause i accidentally deleted ~/.local neuro7

#

Something somewhere was caching an old path to the oh-my-posh binary neuroCry

ornate patio
#

5 years ago, nobody would have guessed that scaling up LLMs would as successful as they are. This belief, in part, was due to the fact that all known statistical learning theory predicted that massively oversized models should overfit, and hence perform worse than smaller models. Yet the undeniable fact is that modern LLMs do possess models of ...

▶ Play video
tender river
olive sable
#

overdraw my beloved

amber fractal
opaque sigil
#

look, i meant to run l .local to see if there was anything cached i could yeet but for some reason i typed rm -rf .local
didn't help that every time i sent anything zsh threw 2 errors at me i guess

amber fractal
#

o7

hoary lion
sage crag
#

propeller hat

olive sable
#

thanks chatgpt

amber fractal
#

wha?

olive sable
#

the context is performance, i think it meant to use the idiom of squeezing every last drop or something

opaque sigil
#

time to gc again and have it break neuroPogHD

desert plaza
sage crag
opaque sigil
#
_omp_preexec:5: no such file or directory: /nix/store/n0hjhmf90j2ksaw7kmwimr2h8j433wpw-oh-my-
_omp_get_prompt:3: no such file or directory: /nix/store/n0hjhmf90j2ksaw7kmwimr2h8j433wpw-oh-my-posh-26.8.0/bin/oh-my-posh

it's back neuroPogHD

#

i wonder why it's even complaining, oh-my-posh didn't change at all

#

it's till at the same place it was at before

olive sable
#

my main goal is to beat draw order into submission now GETHIM

desert plaza
#

i did this to your elf file, nicely formatted with comments explaining the instruction encodings neuroGlorp

sage crag
olive sable
#

would it be possible to sort a list of 16384 vec2's based on their distance to the camera every single frame???Hmmge
doesnt seem quite possible does it?

desert plaza
sage crag
#
_start:
    sub rsp, 0x08
    lea rsi, [0x0000000000000007]
    mov rdx, 0x0D
    mov rax, 0x01
    mov rdi, 0x01
    syscall
    mov rax, 0x3C
    xor rdi, rdi
    syscall
olive sable
#

its about the same

desert plaza
olive sable
#

[0x0000000000000007] instead of 0x23

desert plaza
#

it says 7, but the displacement value says 0x23

olive sable
#

16384 times

#

ye i dont think thats gonna happen each frame

opaque sigil
#

i have a working prompt again neuroHypers

#

turns out it was oh-my-posh's own cache all along ReallyMad

#

this happens every time it updates but that's so infrequent i always forget how to resolve it neuroCry

olive sable
#

toast you're a smart dude, could you sort a list of 16k vec2's based on distance in less than a ms?

opaque sigil
#

no

olive sable
#

aight

#

imma need to find a smarter aproach

tender river
#

prompt: you are powershell with oh-my-posh

hoary lion
#

oh shit

#

espeak G2P is weird

sage crag
olive sable
#

motherfucker i just want -1 or 1, not 0

hoary lion
#

??

#

is that gpt response or something

olive sable
#

glsl function

#

no

#

im looking at the glsl docs

hoary lion
#

I accidentally read sign as sigh and thought what in the tsundere language is this

sage crag
#

z

olive sable
#

z as in you're going to bed?

sage crag
#

no

#

z as in z

olive sable
hoary lion
#

real sherlock behavior

olive sable
#

you're 97 konii, you shouldnt be up this late

#

the elderly need to go to bed early

hoary lion
#

not even unc at this point

#

fossil

olive sable
#

basicly in the procces of composting already

sage crag
olive sable
#

i wish glsl had that

sage crag
olive sable
#

doesnt exist as far as i can tell

#

you just get sign()

#

which returns 0 if the input is 0 for some reason

hoary lion
#

can't you just make it

olive sable
#

i thought we agreed that signed 0's were a thing?

hoary lion
#

or is it not possible

trim valve
#

sign(x) | 1 Tutel

olive sable
olive sable
trim valve
#

if it returns an int

#

if it's a float good luck

olive sable
#

nah its a float...

#

sign(x) | 1.0???

trim valve
#

unlikely to work

olive sable
#

this is bitwise ye?

trim valve
#

yeah

olive sable
#

lemme thonk

trim valve
#

what do you even need it for

olive sable
#

i want to see if the camera's forward vector is positive or negative so i can flip the instance grid so the draworder is front to back so i can save 2000fps on overdraw

trim valve
#

what's stopping you from doing ((x >= 0) * 2) - 1

olive sable
#

nothing

#

i think it should owrk at least

trim valve
#

crazy

sage crag
olive sable
#

besides the fact it will need to be cast to a float

tender river
#

hblang lsp update it "works" now (it does nothing but it technically is an lsp now i think)

trim valve
#

sorry I'm used to shaders implicitly casting everything into floats to piss me off

sage crag
#

poghd

#

when did it become 4am

#

i was reading

olive sable
trim valve
#

idk

sage crag
#

soil

olive sable
#

those aint the type im writing thats for sure

trim valve
#

the last one I wrote was ages ago

olive sable
#

like how this autocomplete spits out absolute nonsense. this ai needs to cook for some more epochs

sage crag
#

why do you use it

olive sable
#

it wasnt on purpose

#

it was suddendly there when i changed to clang and i dont know how to turn it off

tender river
#

soil is weak

sage crag
#

but there is a lot of it

#

at least 10 tonnes

olive sable
#

are we talkign about dirt?

tender river
#

you are stronger neuroPogHD

sage crag
#

soil is heavy

#

i am not heavy

#

i would lose in a sumo match

tender river
#

this is true

#

you dont have to fight fairly though

sage crag
#

how to fight soil unfairly

olive sable
hoary lion
#

Dig them out

tender river
#

shovel

olive sable
#

dont fight soil

hoary lion
#

Literally

olive sable
#

fighting soil is a losing batle

sage crag
desert plaza
#

soil ur pants

trim valve
#

cursed shader my beloved

tender river
sage crag
#

soil

tender river
#

you can just walk away i don't think the soil is gonna be able to do anything to you then

olive sable
#

you can shovel as much soil as you want, you're just moving the opponent to another spot.
then you relaize that you're standing on soil, and you cant escape the soil

#

you can only flee to mars or wherever there isnt soil

tender river
#

if soil is outside the sumo ring does that mean you win

olive sable
#

hmmm

opaque sigil
olive sable
#

i have no clue

opaque sigil
#

clangd definitely doesn't ship this so

#

copilot is free too now

olive sable
#

huh, i guess i somehow activated it while doing the clang stuff

opaque sigil
#

there you go

olive sable
#

i just hope they dont expect me to pay for this shit

amber fractal
#

Allowance resets

opaque sigil
#

they probably try to upsell when/if you run out

amber fractal
#

Yep

#

Been a bit since I've configured a new window manager. I've been happy with hyprland.

sage crag
#

cling clang

#

its unfair i was born as a tv because it means i cant be a magical girl

tender river
#

i happen to know a cat that can help with that

sage crag
#

not a chance

#

nope nope

midnight sigil
#

I Canon EF28-105mm f3.5-4.5 II USM eliv

#

patent stealing 101

olive sable
tender river
sage crag
midnight sigil
#

konii konii what's your specs as a tv

tender river
#

1hz

#

480p

midnight sigil
#

not even vector display smh

olive sable
amber fractal
#

mhm

sage crag
#

response time 130ms

midnight sigil
#

konii how do you play osu

sage crag
midnight sigil
#

that what the filters do neuroNOWAYING

amber fractal
midnight sigil
#

reported

sage crag
#

oh no

olive sable
#

when we watched konii play osu she claimed it was in 144p cuz of internet issues. in reality she was just hiding her wall hacks

#

"wall hacks" ye idk what osu hacks are i autocompleted to wallhacks for some reason

tender river
#

osu! cheats that let you see through a wall

amber fractal
#

That osu! stream was one for this history books for the wrong reasons

sage crag
#

im tempted to play right now actually

#

i shouldnt its 4am

olive sable
#

i found it funny how everyone started muted, then all we eventually started using mics besides konii

sage crag
#

tv cant speak

olive sable
#

mine can

amber fractal
sage crag
#

concerning

sage crag
olive sable
sage crag
#

at least my internet isnt as bad as chayleaf's

olive sable
#

konii you live in london

tender river
#

its fine but i wasnt at home neuroCry

amber fractal
#

10mb speeds mhm

sage crag
olive sable
#

i would be impressed if the internet speed in london was slower than a random girl in the middle of nowhere russia

#

iirc saint petersburg or sometihng idk

tender river
#

no

#

(thats not middle of nowhere though its almost the capital)

midnight sigil
#

NeuroClueless time to dox

tender river
#

its easy to dox me

olive sable
#

or you had a job aplication there i think, and you said it wasnt too far

tender river
#

um yeah not too far just on the other side of the country

#

i live in siberia

olive sable
#

hyh

#

welp my memory is bad then

tender river
#

i dont really hide my address i just dont mention it for no reason either

olive sable
#

no suprises there honestly

#

ye you really shouldnt

#

i wanst asking you to

#

it wasn't my intention to collect addresses from the #programming people to begin with but i have like 6 of them already

#

these aint the infinity stones

amber fractal
#

I honestly shouldn't be as open, but I got a bit of leway in terms of identifying myself even if I'm down to town.

sage crag
#

mr enigma

olive sable
#

i know where you live

amber fractal
olive sable
#

if i dont get shot

amber fractal
#

There hasn't been police here in awhile

olive sable
#

i wasnt talking about the police

amber fractal
#

That rental sometimes gets questionable people

amber fractal
#

doubt any people nearby would care

olive sable
#

aight im getting somewhat decent fps out of it now

desert plaza
olive sable
#

that should be easily fixed by making the cpu side cleaner

#

rn this is split into 3 drawcalls

#

i just need to make it 1

#

do yall ever just have your headphones on but you paused the youtube video you were listening to 3 hours ago cuz you're in the zone?

gritty dust
#

next video when lol

gritty dust
olive sable
#

im fixing my gras more

#

i need that 4000+ fps

gritty dust
mighty thorn
olive sable
mighty thorn
#

I am more than willing to give you it

olive sable
#

AquaCry why must everyone send their adresses to me

gritty dust
olive sable
#

this is like vedal with the stream keys

gritty dust
mighty thorn
#

I have sent my full home address in a public channel before, I really don’t care

gritty dust
olive sable
#

except that im actually capable of doxing everyone now

stray dragon
#

hi craftercheese

gritty dust
olive sable
#

i could make a list probably

mighty thorn
olive sable
#
cheese
igly
shadow
superbox

and i think 1 more

gritty dust
#

lol

mighty thorn
#

That’s honestly a list I’d be happy to be on

olive sable
mighty thorn
#

Wait

#

Why the hell do you have iggly’s address

olive sable
#

he thought it was a good idea to show what his neighbourhood looks like to give me an idea of how to 3D model the world for the game

#

the house 3D model is based directly of his house

mighty thorn
#

That’s cray cray

#

Anywho

#

Im gonna dm you my address now

olive sable
#

please dont

amber fractal
#

These are not the infinity stones of power evilDeadge

olive sable
#

do i just have that please dox yourself aura?

amber fractal
#

I am not helping at all in this case

olive sable
#

i was hoping for an aura that atracts woman or whatever, not whatever this is

sage crag
#

erf

mighty thorn
#

Listen

#

If you have the aura that gets people’s addresses

#

The only thing stopping you from turning that into female interaction

#

Is your willpower

olive sable
#

oh wait im not friended to kaine corneko so you cant dm me neurOMEGALUL

sage crag
mighty thorn
amber fractal
olive sable
#

damn

#

even im not that agressive toward konii

amber fractal
#

The insults are strong with this one

olive sable
#

and i bully her daily

amber fractal
olive sable
hoary lion
mighty thorn
olive sable
#

its not even on purpose

#

i just keep getting adresses flung towards me

amber fractal
olive sable
#

this is like unspoken rizz dox

amber fractal
#

I thought you were another common member ngl

hoary lion
mighty thorn
#

Come get me

olive sable
#

brother

hoary lion
mighty thorn
olive sable
#

oh

#

thank god

mighty thorn
#

(And I stopped living there a few days ago)

hoary lion
#

Aint norway bro believed that

amber fractal
mighty thorn
olive sable
hoary lion
#

am sorry 😭

hoary lion
#

but I immediately dropped at Washington tbh

olive sable
#

like i can just drop in chat

#

Pl. de l'Atomium 1, 1020 Bruxelles

#

like do yall know where that is

#

cuz i do

mighty thorn
#

GUYS

#

ITS SAM ADDRESS

hoary lion
#

probably the captial

mighty thorn
#

OMG

amber fractal
#

doxxing moment neuroMonkaOMEGA

hoary lion
#

and where whatever your president or something lives

olive sable
amber fractal
#

The world may never know neuroTroll

hoary lion
#

what in the abomination

#

tf is that supposed to do

sage crag
hoary lion
#

assert dominance over other EU countries of whatever something

mighty thorn
amber fractal
olive sable
desert plaza
olive sable
split osprey
#

i was able to get SOME mouse input from the fact that the cursor jiggles a little when moving the camera, but its still super noisey and spikey compared to true mouse movement

hoary lion
#

cool 4d shit that we shouldn't be able to see

#

but math does math stuff

#

so it is dragged down to 2d

sage crag
amber fractal
#

we love 2 of the same gif

olive sable
mighty thorn
#

Sam

olive sable
#
The Atomium in Brussels is shaped like a unit cell of an iron crystal, magnified 165 billion times. It consists of nine interconnected stainless steel spheres, representing iron atoms, arranged in a body-centered cubic structure. The structure is 102 meters tall and was designed for the 1958 Brussels World's Fair. 

Huh, interesting

mighty thorn
#

I’m rusty on the rules here, can I periodically mention catgirls in my usual fashion

olive sable
#

not really

#

keep it pg

hoary lion
#

don't share your huzz list

amber fractal
#

13+ don't do that

mighty thorn
#

Dad what’s a huzz list

hoary lion
#

unc

mighty thorn
#

Am I getting too old for this shit

olive sable
#

you're only 20 so i dont think so

mighty thorn
#

Nursing home at 19 will be crazy

#

HEY

amber fractal
mighty thorn
#

IM NOT TWENTY

olive sable
#

you arent?

#

well damn

mighty thorn
#

I’m actually not even 19 for another month

hoary lion
#

still unc

olive sable
#

wait so you're 18 then

hoary lion
#

older than me

mighty thorn
#

This is like

#

Not a secret

olive sable
#

you're the same age as me for a month neuroNOWAYING

amber fractal
hoary lion
#

nahh #programming became open doxxing space of revealing personal secrets™

#

Time to turn it back

hoary lion
#

petition to add transparent background images/gifs in discord

olive sable
#

they are

#

ye seems transparent enough

hoary lion
#

oh shi

mighty thorn
hoary lion
mighty thorn
#

I’m old

amber fractal
#

discord apperatnly is doing webp. godsend the discord intern

mighty thorn
#

Cause I don’t know what that means

hoary lion
mighty thorn
hoary lion
#

this gif was super necessary

amber fractal
# amber fractal discord apperatnly is doing webp. godsend the discord intern

From another server:
this college student that interns at discord whenever he isnt busy with school makes all the good changes, every time he has to leave for college nothing of worth happens :skull_sob: https://x.com/advaithj1/status/1947485639366349119

I've updated the GIF picker on desktop and mobile to load GIFs faster, using newer formats! we now prefer WebP over raw GIF and WebM over MP4. we've seen dramatic improvements to loading speeds and bandwidth usage from this change!

hoary lion
#

fire

amber fractal
#

I would check what other things they've done if I had an account

hoary lion
#

make them the CTO or whatever

#

i dont know the correct role name but you get it

mighty thorn
hoary lion
#

™ is free

mighty thorn
#

Not on a phone keyboard it ain’t

amber fractal
olive sable
#

where does one find tm?

#

amber fractal
#

:tm:

olive sable
#

huh

hoary lion
#

mighty thorn
#

olive sable
#

mighty thorn
#

Huh

#

hoary lion
#

and google

#

mighty thorn
#

desert plaza
#

hoary lion
#

but they are pretty much the exact same

#

olive sable
#

#

i cant tell the difrence

hoary lion
mighty thorn
#

hoary lion
#

or the other way

olive sable
#

do you need o copyright a game's assets when you release it btw? cuz that seems like a lot of work

amber fractal
mighty thorn
#

But

#

You could probably do it all with some generic license in mass

mighty thorn
#

You COULD not

#

But you run the risk

hoary lion
#

I actually need latex in discord

mighty thorn
#

Of someone else copyrighting your assets then suing you over them

olive sable
#

i meant to type latex into google

#

i ended up typing it into the gif picker

mighty thorn
amber fractal
olive sable
amber fractal
hoary lion
hoary lion
#

time to directly provide paper reviews on discord

#

instead of screenshotting equations

olive sable
#

mods can we please get latex bot?

amber fractal
mighty thorn
#

Can we talk about

#

How with the server tags

#

They made it from a predefined set of icons

#

Instead of server emotes

#

Can we discuss that

olive sable
#

i think that was the best aproach

mighty thorn
#

I don’t

olive sable
#

as badges

mighty thorn
#

We also

#

In this grand age

#

Have such a thing

#

As AI content filtering

hoary lion
#

who gonna pay the bills

amber fractal
#

I'd say it is better not to leave it to chance

mighty thorn
#

THEY HAVE A DISCORD??????

hoary lion
#

they have discord??

olive sable
#

oh god

mighty thorn
#

WHAT

#

WGATTTTTT

olive sable
#

fuck

hoary lion
#

this shit was not expected

olive sable
#

i should not have mentioned that

#

oh no

amber fractal
#

DO not be stupid

mighty thorn
#

Doctors without firewalls

hoary lion
#

heck, this shit was the most unexpected thing in this year

hoary lion
#

lmfao

olive sable
#

you better not

amber fractal
#

saved

safe path
#

what

olive sable
#

i personally dont have a problem with egirls as long as they dont want my creditcard info

mighty thorn
#

We were talking

amber fractal
#

hi mods

mighty thorn
#

About

#

Journalism

olive sable
#

hi mods

mighty thorn
#

And its effects on the global economy

safe path
#

no you are not

#

move on from the topic

olive sable
amber fractal
#

👍

olive sable
#

so uh what were we talking about again?

mighty thorn
#

Tags

#

Oh hey

#

A tag

#

On my name

olive sable
#

no no nop

#

before that

mighty thorn
#

Uhhhh

#

Programming

amber fractal
#

It is now programming mhm

mighty thorn
#

So guys

#

You ever reverse a string?

olive sable
#

no?

#

never needed to

mighty thorn
#

N-

#

Never?

olive sable
#

not that i remember

amber fractal
#

I have done so when I needed to

olive sable
#

i imagine you just do some list slicing in python, and for c++ i have nmo fucking clue

amber fractal
#

vedalapologyvideoby="your name"; revsersedaname=vedalapologyvideoby[::-1]
IIRC this is python

hoary lion
#

I love shiny roles

mighty thorn
#

I got to be honest

#

I thought I was just going crazy

#

For like a week

#

Until I saw proof that it is indeed now a feature

amber fractal
#

I have not seen them yet besides screenshots

#

hmm

hoary lion
olive sable
#

you can use them, you just dont need to iirc

prime ridge
#

It's an exciting day. New neuro project just dropped. I feel pretty good about this one I made #1397799372191825993

amber fractal
#

personal experince

hoary lion
#

peak content

amber fractal
#

I'd be excited to see if this actually happens thanks to this

desert plaza
#

someone tell me how i embed source code

olive sable
#

wdym?

#

embed where?

desert plaza
#

y'know

olive sable
#

on discord?

desert plaza
#

yes

olive sable
#

```

//code goes here

```

#

fuck

desert plaza
olive sable
#

i was hoping to put the fake ` in the thingy but i guess disocrd wasnt having it

desert plaza
#

mhm

olive sable
#
print("mhm")
#

add py or cpp or whaever you want for syntax highlighting stuf to the first ``

desert plaza
#

wdym add to, on the left or right

olive sable
#

right

desert plaza
#

ok, string reversal code in c ```c
#include<stdio.h>

unsigned int get_count(char* argv) {
unsigned int i = 0;
while(argv[i]) i++;
return i;
}

int main(int argc, char** argv) {
const unsigned int argsize = get_count(argv[1]);
char buffer[4096] = {0};
for (unsigned int i = 0; i < argsize; i++) buffer[i] = argv[1][argsize-i-1];
printf("%s\n", buffer);
return 0;
}

#

bro

olive sable
#

put the ` on newlines

#

both the top and bottom should be seperate, besides the c

#

so

{
code
}
`\```
#

fuck

midnight sigil
#

that lens abberation

#

holy

desert plaza
#

how the fuk do i make new lines

olive sable
#

press enter

midnight sigil
#

\r\n

#

👍

olive sable
#

screenshot wll probably be simplet to underrstand

#

the code you sent before has a space

#

no spaces behind there

desert plaza
#

wtf ok

olive sable
desert plaza
#

the culprit was an invisible character

sage crag
olive sable
sage crag
#

forgot c doesnt use slices

desert plaza
#

wtf are slices neuroGlorp

sage crag
#
reverse := fn(slice: []u8): []u8 {
    if slice.len == 0 return slice
    j := slice.len - 1
    i := 0
    temp: u8 = 0
    loop if i < j {
        temp = slice[i]
        slice[i] = slice[j]
        slice[j] = temp
        i += 1
        j -= 1
    } else return slice
}

hblang string reversal

amber fractal
#

manual reversal neuroMonkaOMEGA

desert plaza
#

lasrever gnirts gnalbh

olive sable
#

huh, well im confused

#

why tf did it not crash like this

sage crag
olive sable
#

wdym?

tender river
sage crag
#

new

#

for loop

#

who is loop

olive sable
#

me

#

Sam Loop Van Maele

sage crag
#

sam van van van van van van ...

olive sable
#

reading my name in english is so cursed

tender river
sage crag
#

motor vehicle

olive sable
#

sam is supposed to be with the a like in awa

sage crag
#

i dont know why

tender river
#

also i ran into a small handgun where i forgot to remove i += 1 and it compiled neurOMEGALUL

#

footgun

#

not handgun

sage crag
#

handgun

#

footgun

olive sable
#

what is a footgun if not a handgun for your feet?

tender river
#

no not comptim

#

e

sage crag
#

sidetracked day

tender river
#
// iterate in steps of 2
for i := 0..bwaa {
    i += 1
}
sage crag
tender river
worldly plank
#

So if I got this right:

void main() {
0
}
tender river
#

mhm

olive sable
#

`c

#

mhm

#

`

sage crag
#

prime c

#

derivative of what

tender river
#

either derivatives (bad) or haskell (good)

sage crag
#

derivatives (good) or haskell (witch)

tender river
#

i'm not a witch i need ?never for production code

#

not for evil

desert plaza
olive sable
sage crag
tender river
#

not a witch i don't have a pointy hat

olive sable
#

yet

worldly plank
#

Thanks for the help!

olive sable
#

np

desert plaza
olive sable
#

skiill isue

sage crag
#

when will you use union { .a: never, .b: void } in your types

desert plaza
sage crag
olive sable
desert plaza
sage crag
#
why := enum(never) {
  .stop;
}
olive sable
#

brother stop correcting my spelling im bad at typing

tender river
#

results are the only unions i have used so far, will probably also use unions for this at some point

desert plaza
sage crag
#

onion

sage crag
tender river
desert plaza
tender river
sage crag
#

javascript simulator

#

im too busy sleeping to program

tender river
#

sleep well vedalBedge

sage crag
tender river
#

your sleep schedule plan did not work out neuroCry

sage crag
#

enum works on basis of variants, and the number of variants of structs is likely uncomputed

tender river
#

i dont use enums that much because they dont work out well for deserialization

#

or i guess i could support them anyway

#

m

sage crag
#

enums are cool but no typed unions

#

sadgi

sage crag
#

cant spell

tender river
#

we have tagged unions at home

#

struct { tag, union }

sage crag
#

despicable

#

what happens if you make a function ptr that returns type

tender river
#

undefined behavior

sage crag
#
why := fn(): type return u8

main := fn(): void {
    x: ^fn(): type = &why
    leaked := x()
}
#

cursed

#

not like

#

same with never

#

so much UB with function ptrs

amber fractal
#

Classic browser behavior

tender river
olive sable
#

dot(grid, vec2(1.0)) is slightly cheaper than adding grid.x + grid.y
thats weird, you'd think addition was faster

tender river
#

but the formatter just removes the parentheses every time neurOMEGALUL

sage crag
#
bad := fn(x: ^fn(@Any()): void): void {
  return x(x)
}
sage crag
amber fractal
sage crag
sage crag
#

compiler probably crashes when it sees this

tender river
#

not gonna report this one

sage crag
#

what about bitcasting the return value of why to a u32 and then returning that

olive sable
sage crag
tender river
#

wait no

#

it does not i didnt actually run the program

#

it returns 5 for u32, 4 for u16, 3 for u8

#

10 for i32

#

finally runtime reflection real

sage crag
#

same behaviour as if you dont use fnptr though

tender river
sage crag
#

isnt it just @bit_cast(5)

tender river
#

its a size mismatch then

#

since types are 4 bytes

sage crag
#

since fn: <type>

tender river
#

but 5 is 8 bytes

sage crag
#

ah

tender river
#

yes

sage crag
#

cursed

#

try a random number

tender river
#

type value of this expression is corrupted

#

also 0 is never

olive sable
#

hmmm, i have discovered bit operations are cool and fast.

ivec2 base = ivec2(id % rows, id / rows) - halfrow;
is now
ivec2 base = ivec2(id & (rows - 1), id >> 7) - halfrow;

sage crag
tender river
#

16 is the max number that works

#

(it causes a compiler crash)

sage crag
#

perhaps its the bottom type

tender river
#

its either struct or tuple

sage crag
#

weird

tender river
#

wait no its the any type

sage crag
#

double weird

tender river
#

new crash

main := fn(): @Any() return 0
sage crag
#

this never worked

#

@Any() type would inferred from where main is called

#

main is only called in _start

sage crag
tender river
#

bwa

sage crag
#
why := enum(type) {}
#
why2 := enum(@Any()) {}
tender river
#

how do you set enum variant values again

sage crag
tender river
dull hare
#

my life for the last 3y+ 🤣 (with various browsers 🤣 🤣 )

tender river
#

1984

sage crag
sage crag
tender river
#

it works

#
A := enum(@TypeOf(A)){.x}
main := fn(): u32 return A.x
sage crag
#

gross

#

what is size of A

tender river
#

erm

#

4

#

idk how that even works neuroBwaa

sage crag
#

internal repr u32

#

what if you remove .x

#

its strange, enum is supposed to size to the smallest int capable of holding all variants

tender river
#

new crash

A := enum([]u8){.x := 0}
main := fn(): A return A.x
sage crag
#

what

sage crag
#

well, it will not work since global function ptrs dont exist yet

olive sable
#

i have reached the point of optimizations that chatgpt goes against what it said earlier

sage crag
#

chatgpt sucks at optimising

tender river
#
A := enum([]u8){.x}
x := fn(): struct{.x: u64; .y: u64} return @bit_cast(A.x)
main := fn(): u32 return @int_cast(x().x)
olive sable
#

yep

tender river
#

works

#

but if you add one more variant

#

new crash

olive sable
#

thats not the fuckign same

tender river
#

no perf change

#

slightly neater

#

sage crag
#

they are true

olive sable
#

chatgpt are you acting stupid or are you stupid?

sage crag
olive sable
#

no its not

sage crag
#

just not what you wanted

#

it is

  • the same performance
  • neater
olive sable
#

the change it made is acttivly worse

sage crag
#

it made no promise about the code working

olive sable
#

grid is supposed to go into 1 and 3, not 1 and 2

tender river
#

smh caring about semantics instead of code length

sage crag
tender river
#

you just have to find another correctness bug and its fix will reduce the disasm

#

trust

sage crag
#

performance lottery

olive sable
#

the grass is literaly underground cuz it swapped y and z

sage crag
#

nice code block

olive sable
tender river
#
A := enum(never){.x}
main := fn(): void return @as(void, @bit_cast(A.x))
tender river
#

same as before, crashes if you add one more variant

sage crag
tender river
#

awa

olive sable
#

awa

sage crag
#

awa

olive sable
sage crag
#

my wake up alarm just went off

olive sable
sage crag
#

guess its time to stop sleeping

tender river
#

wake up

olive sable
#

time for teletubies, time for teletubies

tender river
#

good morning

sage crag
#

is it

olive sable
#

konii is the purple teletubie

sage crag
#

what is time anyway

tender river
#
A := enum(never){.x}
main := fn(): never return @bit_cast(A.x)

this crashes
but if i remove the bit cast it complains that A is not never

olive sable
#

or a float

#

depends on the shader

sage crag
olive sable
#

konii, how is it to be a teletubie?

sage crag
#

you live in a 2d hologram plane and time is the motion of the edge

olive sable
#

konii is ignoring the teletubie allegations SMH

amber fractal
#

she already has enough allegations smh

tender river
#
A := enum(@Any()){.x}
main := fn(): u32 return A.x

works

sage crag
tender river
#

enums are secretly the most cursed feature of hblang

sage crag
#

does it just let you return anything

#

wtf

#

what is the disasm of that

#

no seriously

#

can you .x := a

tender river
#

if i add another variant it crashes as always

#

if i do .x := 5 it still returns 0

sage crag
tender river
#

actually

sage crag
#

what if you change the return type

tender river
#

it still returns 0 if i do it with u32 a well

sage crag
#

did you compile it properly

tender river
#

i hope

sage crag
#
A := enum(@Any()){.x}
main := fn(): never return A.x

what happens here

tender river
sage crag
#

xor rdi, rdi

#

ret 0

tender river
#

it doesnt compile with never since it doesnt return never

sage crag
#

ohh wait it might be my entrypoint code doing this

#

yes it is

#

read it, i left it as a placeholder

tender river
#

@Any() has the size 0

#

so whatever you set its still 0 bytes so it just truncates

opaque wharf
#

Well, that was fun backread

sage crag
#

you might want to write a custom entrypoint

sage crag
desert plaza
tender river
sage crag
tender river
tender river
sage crag
#

er

#

my fault

#

im not using puter today, need to touch grass

tender river
#

its fine cupsama lily is so stable lately i havent seen a single interfae breakage

sage crag
#

its stably broken

#

no new breaks no new fixes

idle iron
#

made my first gui based app in rust you can set the background and set events and the current day is highlighted with a red outline this took hours of my life i will never get back

sage crag
#

neurocalendar

opaque wharf
desert plaza
#

the program runs just fine without it neuroGlorp

#

without that instruction i mean

idle iron
#

i use the system date and time

#

im just so glad its over

desert plaza
opaque wharf
#

No I was just referencing my failure to read calendar. I thought today is Friday hence why I didn't sleep

opaque wharf
#

Turns out, it is not in fact, Friday

sage crag
sage crag
#

dont know why the compiler want to put it there

idle iron
#

anyway did i do good or am i shit with ui?

sage crag
opaque wharf
sage crag
#

nice calendar though

idle iron
#

awesome

#

i might put it on github if anyone is interested id have to clean up the code first

desert plaza
idle iron
#

noooooooooo i just noticed the 2 buttons on the top left are wonky

#

screw it its a feature not a bug

olive sable
#

this is the absolute fastest im probably gonna get

#
#version 300 es
precision highp float;

layout (std140) uniform PROJ {mat4 projection;};
layout (std140) uniform VIEW {mat4 view;};
layout (std140) uniform cam  {vec3 campos;};

uniform sampler2D noisemap;
uniform ivec2 forward;
uniform float time;
uniform float density;

out float dis;
out float height;

const int rows = 128;
const int halfrow = rows / 2;
const vec3 vertices[5] = vec3[5]
(
    vec3(-0.1, 0, 0),
    vec3(0.1, 0, 0),
    vec3(-0.075, 0.25, 0),
    vec3(0.075, 0.25, 0),
    vec3(0, 0.5, 0)
);

void main()
{
    int id = gl_InstanceID;
    ivec2 base = ivec2(id & (rows - 1), id >> 7) - halfrow;
    base *= sign(forward) | ivec2(1);
    base += forward;

    vec2 grid = vec2(base) * density;
    dis = dot(grid, grid) * 0.0001;

    grid += floor(campos.xz);
    vec2 rnd = texture(noisemap, grid * 0.01).xy;
    grid += rnd;

    vec3 vpos = vertices[gl_VertexID];
    vpos.y *= rnd.x + 1.0;
    height = vpos.y * 2.0;

    grid.x += height * sin(time + grid.x + grid.y) * 0.2;

    vec4 worldpos = view * vec4(grid.x, 0.0, grid.y, 1.0) + vec4(vpos, 0);
    gl_Position = projection * worldpos;
}
#

its beautiful

#

😍

#

now i just gotta optemise the cpu side

opaque wharf
#

I just come back from another server. Dude is asking what is causing the logged error message. After some explaining from the library author, the dude fixed it by removing the error logging evilWheeze

olive sable
#

the error is there for a reason no?

opaque wharf
#

To be fair, the library author at least tell that it is indeed error on dev env only

#

Because of some react shenanigans

olive sable
#

glMultiDrawArraysIndirect() doesnt work in web apparently, im gonna be doing more cursed shenanigans

olive sable
#

ive seen that already, i was the one who originally posted it

opaque wharf
opaque wharf
#

So, if that tesseract is doubly rotating, it can be seen as the "outer" cube is rotating too

olive sable
#

then why keep posting it?

desert plaza
#

i apologize

#

i will stop posting it, sir

olive sable
#

thanks

desert plaza
#

ur welcome, my lord

opaque wharf
#

So it has been decided @amber fractal . We are a monarchies with Sam being ruling lord