#programming

1 messages · Page 68 of 1

nocturne olive
#

That is indeed technically a valid domain

trim valve
#

god bless tailscale dns, I love being able to just http://ouppy and pull up random grafana dashboards on my laptop

desert plaza
nocturne olive
#

You know how most domain names have dots? Well, it works kinda like a folder tree, and com is the top directory of the com TLD

rigid snow
#

see this

sage crag
#

the concept of a valid domain is somewhat misguiding

#

since what is and isnt is dependant on your dns provider

rigid snow
#

punycode emoji

sage crag
#

if you want you could have

#

#

as your domain name

#

if you dns provider decided so

trim valve
#

I think we're talking about two different kinds of valid here no?

trim valve
sage crag
#

in terms of "valid" domains as in, what can you register, https://com/ could never be registered

rigid snow
#

i could have what glueless

trim valve
#

ah yeah, you couldn't register that but theoretically speaking a browser would be able to resolve that if someone added records onto com

sage crag
#

the com tld itself is managed by verisign, so perhaps they internally have the domain https://com/ or https://com.com/

#

but yeah

rigid snow
#

what you “internally” have does not matter, it depends on what the dns server says

noble zodiac
#

it's just like email adresses. Trying to validate them, really validate them against the specification is insanly tricky (and pointless)

#

foobar@[192.168.2.1] is a valid email adress

rigid snow
desert plaza
#

seems like the definition of "valid domain" is unclear in this conversation

#

who here has actually read rfc1035 or something

trim valve
#

i have it open

noble zodiac
#

sadly I have in the past

olive sable
#

Nope

#

Never heard of it

sage crag
#

que suerte

rough bloom
olive sable
#

Oh thats spanish

trim valve
#

so many langs have url objects that do dns lookups its annoying

olive sable
#

I was trying to translate it as french and was very confused

polar crane
#

I'm building a mini LM just cause I want a break from my large LLM and idk if 3.96M params is a lot cause I'm used to working with my large LLM (175.6B params)

#

num_layers: 16

num_heads: 16

embedding_dim: 128

vocab_size: 3152

nocturne olive
#

3.96M params is very tiny, that's not gonna be able to do much

lament igloo
#

are u guys talking ab domains?

polar crane
lament igloo
#

shit im late sadgewater

polar crane
stark needle
nocturne olive
polar crane
scarlet arch
#

end my suffering

stark needle
#

For just basic autocomplete

desert plaza
lament igloo
#

it is technically valid but cant be accessed

polar crane
desert plaza
#

does anyone know why gdb asm layout always displays a repeated add instruction thonk

stark needle
#

Chat i swear the chemical composition is insane of this

#

How is

#

Fluoride gel of 25 grams almost 20 bucks

desert plaza
opaque sigil
#

i do not (though admittedly i also don't use gdb usually, or at least not directly)

sage crag
#

sorry what is a "Domestic sludge"

rough bloom
desert plaza
scarlet arch
sage crag
scarlet arch
#

I know

#

the main price of these comes from their insane calibration

opaque wharf
#

The google play thing is one time fee Sam

#

Unlike Apple

scarlet arch
#

you can even buy standarized bars of chocolate

opaque wharf
#

Also, xyz domain is usually cheap

opaque sigil
desert plaza
#

asm tutorials having the same non-existent add instruction

#

gdb is silly

opaque sigil
#

what's the actual instruction (the whole thing)

desert plaza
#

add %al, (%eax)

#

%al = src

opaque sigil
#

there we go

#

that's 0

desert plaza
#

bruh 💀

#

why does gdb show me that

opaque wharf
#

Because gdb hates you specifically

opaque sigil
#

because executables have padding in them and gdb is dumb (i think they have a mode specifically for this problem)

#

there's disassemble <function> i guess

stark needle
#

Also

#

Anyone down for 80 hour work weeks

desert plaza
opaque sigil
#

maybe, who knows

sage crag
#

should have included DWARF in the binary

opaque wharf
desert plaza
opaque sigil
#

i'd hope so since it presumably gives gdb extra info so it knows when to stop neuroPogHD

desert plaza
#

idk even know what the debug SHTs are, there doesn't seem to be a debug section header type

#

i'll have to compile a program with debug sections and check their sh_type

#

i do have a program that doesn't have the fake adds in gdb, but i don't see any debug sections in the section header table

olive sable
opaque wharf
#

Apple not only fucking up customer but also developer

desert plaza
olive sable
#

I wonder who this is NeuroClueless

#

Anyways the website wont load well on this croatian wifi, how mush does the plush cost?

desert plaza
olive sable
#

Ah its 30 bucks

warped narwhal
#

daily reminder that javascript sucks

scarlet arch
#

mine for example was fairly okay at like a few bucks, came out to 38.83€. But people in Canada have insane shipping cost if I recall

olive sable
#

Apparently vedal . Shop is a scam site. niuh

#

It was cheaper there

scarlet arch
#

yeah, basically any site someone talks about on stream will be bought and used for shady shit. it sucks

olive sable
#

Ye its 39.32 for me with shipping

rigid snow
warped narwhal
#

Here is some totally normal c++ code that certainly doesn't include any warcrimes or scuffness whatsoever NeuroClueless

#include <utility>

namespace clas::clas
{
    class classs {} classs;
    template <typename cllass=decltype(classs)>
    class clas : public ::clas::clas::classs {friend class classs; public: enum class calss { clas, classs, clasclass }; union {class ::clas::clas::classs clas; enum class calss cals;} clas;};
    using clasclass = std::pair<class ::clas::clas::clas<class classs>, class ::clas::clas::clas<class classs>>;

    clasclass classclas;

    class ::clas::clas::clas<class classs> claas(class ::clas::clas::clas<class classs> clas)
    {
        auto classs = decltype(clas)::calss::clas;
        return classs == clas.clas.cals? ::clas::clas::clas{clas}:clas;
    }

    int main()
    {
        ::clas::clas::classclas = {::clas::clas::claas(::clas::clas::clas<class classs>()), ::clas::clas::clas<class classs>{}};
        return 0;
    }
}

int main() {return clas::clas::main();}
olive sable
#

Can you add the cpp thingt

#

This is unreadable for me rn

warped narwhal
#

it does, but mobile doesn't support it (if you're on mobile)

olive sable
#

Ah

#

That makes sense

warped narwhal
#

return classs == clas.clas.cals? ::clas::clas::clas{clas}:clas; is definitely my favourite line

olive sable
#

Its all class? Always has been

nocturne olive
#

WHuh

#

That looks so silly

stark needle
olive sable
#

He wouldnt mind being pinged would he?

opaque wharf
scarlet arch
#

finished my 286 commit rebase. fml

#

I hope you guys are having a better day :D

#

cause I started that one uh... 5 hours ago

cobalt shard
#

Hi there

#

Anyone here?

opaque wharf
#

No, we only come out once every blue moon

cobalt shard
#

R u being lockdown😭

olive sable
#

Its just a slow evening ig

cobalt shard
#

Kinda sick 💀

#

In 2 way

#

🐧

olive sable
#

In a dream, you're telling the story.. to yourself.
Yet you still fall for all the plottwists???

desert plaza
#

what

olive sable
#

Yes

#

🙂‍↕️

desert plaza
olive sable
#

I have reached actual vertices

#

At page 87

opaque wharf
#

Ahh yes, the ultimate enemy of CodeParade. The traditional rendering pipeline

olive sable
#

Ye this pipeline is the exact same as in opengl

#

Besides that you have more dontrol

opaque wharf
#

Where he tried to use that same rendering pipeline for non euclidean game and 4D-5D game

opaque sigil
#

isn't the pipeline in opengl dynamic

#

as in you can change the shaders

#

whereas in vulkan the entire pipeline is static

olive sable
#

Kinda, you have to enable an exstension

opaque wharf
#

So no compute shader?

olive sable
#

If you enable that one exstension you can use a vertex shader with multiple different fragment shaders

opaque sigil
#

no i meant you can't just swap out the shader freely, you have to redefine the entire pipeline

#

i could be lying

rough bloom
opaque wharf
#

Ohh, got it

rough bloom
#

if you want another shader you just use another pipeline

olive sable
#

Btw, new acerola video

#

Tried to copy the link, copied the discord message

#

Uhhh

#

E

opaque wharf
#

Also, I have decided that cross-platform mobile development is a nightmare anyways. So I decided to ditch that

rough bloom
#

good choice

olive sable
#

So true

#

I will still do it tho

sage crag
opaque wharf
#

I can only wish you good luck in that endeavor

sage crag
#

truly

olive sable
#

Mobile can do c++ compiled shit right???

#

With sdl

hard raptor
#

Yes

olive sable
#

Sdl will solve everything Prayge Prayge Prayge

#

In sdl we believe

hard raptor
#

Sdl - smoll pp layer

#

But then the other word for pp

sage crag
hard raptor
opaque wharf
hard raptor
#

Real chads implement it themselves

opaque wharf
#

You know what? Ironically I think doing a game engine will be easier than making a GUI app for some data

hoary lion
olive sable
hard raptor
#

I have no motivation so i keep just finding the most roundabout way of doing simple things

hard raptor
opaque wharf
#

@wary rover you may be interested in this mechanism https://www.youtube.com/watch?v=-QTkPfq7w1A

How an unlikely physics paradox controls these counterintuitive structures. Use code veritasium at https://incogni.com/veritasium to get an exclusive 60% off.

If you’re looking for a molecular modeling kit, try Snatoms, a kit I invented where the atoms snap together magnetically - https://ve42.co/SnatomsV

▀▀▀
A huge thank you to Paul D...

▶ Play video
rigid snow
#

neuroLookUp my neck hurts

stark needle
#

there's no way

#

how is the 5050 still worse than the 2060

#

Bros did 0 upgrades

rigid snow
#

wtf neuroSob

stark needle
#

I find it funny how

#

Nvidia had to discontinue the good 3050

#

To sell a shitty 3050

#

With 6gb

opaque wharf
#

Meanwhile chinese hardware modder are pulling all of those VRAM to make some unholy GPU frankenstein

stark needle
#

Waste of sand

#

😭😭

rigid snow
#

and solder it onto a custom board

rigid snow
opaque wharf
rigid snow
#

it wouldn't make sense otherwise becaue like where are they getting the other half of the vram from

opaque wharf
#

It is one thing with yesterday cursed mathematical curve, it is another thing entirely when said curve is actual physical / empirical phenomenon

rigid snow
opaque wharf
rigid snow
#

i'm saying they 100% do source it themselves

opaque wharf
#

I mean their homebrew x86 CPU is now around 5-3 years behind

rigid snow
#

oh you mean domestic production

opaque wharf
#

Yes

rigid snow
#

i don't think they're banned from buying vram modules

opaque wharf
#

But I don't think they're readily available either

sage crag
#

self awareness

opaque wharf
hard raptor
olive sable
#

Glasses?

hard raptor
#

Glasses

#

If you watch the video you will eventually see what im talking about

olive sable
#

👓

opaque wharf
#

It is there but it's subtle. Otherwise if the hinge is free-rotating it wouldn't feel comfortable when you put it on. If it doesn't lock, then either the hinge is broken or it is a design decision (which I can't fathom why)

hard raptor
opaque wharf
#

Yeah, stiff hinge could also be an option than locking one

tender river
#

GNUgold 1.16

opaque wharf
#

Cat to Cat

#

Not so simple cat

tender river
#

cat symlinks to coreutils which are like 1.5mb

#

in my case at least

hard raptor
#

The other 2 are sunglasses

sage crag
#

hm

#

i can save bytes

#

nvm i already strip it on release builds

#

specifically ReleaseFast it appears

#

i do not strip it on ReleaseSafe

tender river
#

safety GETHIM

sage crag
sage crag
#

safety

opaque wharf
sage crag
#

it just may have unintended effects that i havent tested

#

also prevents you from objdumping the binary

tender river
#

that made it fit on the screenshot neuroPogHD

sage crag
#
user@linux ~/c/lily-0.2.0 (0.2.0)> objdump -d out/x86_64-linux/main

out/x86_64-linux/main:     file format elf64-x86-64

what a great disasm

sage crag
#

perf stat it perhaps

tender river
opaque wharf
hard raptor
#

Wait

tender river
hard raptor
#

I found my very first frames

#

Those do snap!

sage crag
#

i also dont know what specs your pc has

tender river
#

50x less branches and 20x less cycles would do that

sage crag
#

it would yeah

#

its a really smart program, take a look

tender river
#

i saw it

sage crag
#
main := fn(): u8 loop {
    chr: u8 = 0
    out := arch.sys.read(arch.sys.fd_stdin, &chr, 1)
    if out == 1 {
        _ = arch.sys.write(arch.sys.fd_stdout, &chr, 1)
    } else if out == -1 die else if out == 0 return out
}

read a single char unbuffered

#

so fast

tender river
#

i have many talents

sage crag
#

it makes sense that async reading 1 file is slower than sync reading it anyway

tender river
#

when you have to hit a note 2 seconds after you see it, you learn to see the future

sage crag
#

right

#

39136 /usr/bin/tee
i dont see why tee is so large glueless

#

after all mine only 261 bytes

tender river
tender river
tender river
#

silencing man the first step towards liberation

#

posix whneurOMEGALUL

sage crag
#

surprising that tee actually seems slower at reading files than this

#

its totally the overhead from starting the binary

tender river
#

try larger files

sage crag
#

enub that's cheating

tender river
#

dd if=/dev/random of=/dev/stdout bs=1M count=1024

sage crag
#

i dont know what you mean glueless

opaque wharf
sage crag
#

chat why is my tee impl slower than gnu's glueless

#

smaller binary means faster right

tender river
#

you can remember it by the easy acronym dconvert dcopy

sage crag
#

dd stands for no one, it is a command

tender river
sage crag
#

i can do this one

opaque wharf
#

Why

tender river
#

its useful

sage crag
#
main := fn(): never loop {
    _ = arch.sys.write(arch.sys.fd_stdout, "y\n".ptr, 2)
}

how do i measure y's per second

#

i should use io_uring to write y's concurrently

tender river
#

each file is still sequential

#

for bigger writes use bigger buffers

sage crag
#

ok so gnu yes does 501M y/s on my machine

#

oh

#

o h

sage crag
tender river
sage crag
tender river
#

write more of them at once

sage crag
#

that's cheating neuroSad2

tender river
#

set ioctls

#

(maybe)

sage crag
#

im gonna make an 8kb buffer and spam those

#

ok now im also at 500M

#
$buf_size := 4 * 1024
main := fn(): never loop {
    buf := target.alloc(buf_size).?
    target.memfill(buf, "y\n".ptr, buf_size >> 1, 2)
    _ = arch.sys.write(arch.sys.fd_stdout, buf, buf_size)
}

there you go

#

ignore the memory leak

#

the kernel wants to give me 8KiB of memory 500 million times a second

tender river
#

erm why not just move it before the loop

sage crag
tender river
#

at some point you gotta learn to cheat deliv

sage crag
#

also wait a minute im not allocating the buffer 500 million times a second

#

otherwise my pc would explode

tender river
#

you're doing it 128k times a second or something

sage crag
#

1 gig per second memory leak

#

poghd

#

seems like it

olive sable
sage crag
#

dangerous yes function

olive sable
#

1 gig/s is like 10x as bad as me

#

No wait, i only lost 100mb per reload, not per se

tender river
olive sable
#

Thats a lot worse than me

sage crag
#

but then its no fun

sage crag
#

i am the oom killer

tender river
#

konii thats a big responsibility

sage crag
#

konii-oomd

tender river
#

oom killer, with oom pronounced as uum

rigid snow
sage crag
tender river
#

i have zero electrons neuroPogHD

sage crag
#

oh

#

rip

rigid snow
sage crag
tender river
#

(and psdoom)

sage crag
#

oops wrong kubernetes pod

tender river
sage crag
#

by the way, hblang-yes is certified to be 549 bytes

tender river
#

wont even fit in one disc sector.....

sage crag
#

oh wait i can inline one function

#

brb

#

499 bytes

tender river
#

yippie

sage crag
#

not yippie

#

it should be smaller

#

why is there a memcpy in here

#

oh its my programming

#

nevermind carry on

#

if anyone is interested in the asm for whatever reason

#

ever since i started handling alignment in memcpy it's gotten a bit larger

tender river
# sage crag <:evilBwaa:1263974044022079578>

also forgot to mention but if you use separate home and / subvolumes i recommend setting the compression on / to zstd:15 and on /home to regular zstd, since / is written to relatively rarely

sage crag
#

maybe your / is rarely written to

tender river
#

if you have /var you can create a separate subvolume for that too

sage crag
#

bwa

tender river
#

either way personally i just use zstd:15 even at /home (or, well, did, before i switched to bcachefs)

silk moon
#

Im working on some things in python

#

And i will propably publish them

#

But i have to lvl up first

#

Becouse I can't add picks or files

bitter coral
#

Why...neuroSad2 I was just getting started on the undo-redo solution that I thought of, only to find out that once again it has already been done for me.NeuroRage time to figure out how to use this properly I guess.

amber fractal
tiny mango
#

Attempting to add voice cracks to tts (plugin) as a fun little side project and like 80% of the time it just makes a "hhhhhhhhh" sound instead of what it needs to do

#

womp womp !

rigid snow
#

this is borderline criminal

#

like excuse me

opaque wharf
#

It is native tho. Browser is native application NeuroClueless

#

*inb4 someone made browser web app

rigid snow
#

not what i'm referring to

#

why is tauri backend "node.js" but wails is go

opaque wharf
#

Oh that, yeah

rigid snow
#

you can use node as a backend for tauri iirc

opaque wharf
#

Yes but also rust

#

I suppose most webdev will choose nodejs

rigid snow
#

the whole point of tauri is swapping node for rust

opaque wharf
#

No better than what python does IIRC. They also have a framework that ships a (watered down/portable) python interpreter intallation

rigid snow
#

electron ships chromium and node, tauri doesn't ship anything

#

you get a native executable

#

that renders the os webview

opaque wharf
#

I wonder what is the best way to handle native GUI app. HTML and CSS prevalence I think partly can be attributed to the ease of learning on how a GUI could be designed

rigid snow
#

for web devs i would say react native if it supported linux

opaque wharf
#

No, like, have you seen QML? A DSL to make QT GUI

rigid snow
#

i have unfortunately

opaque sigil
#

That sounds horrendous

opaque wharf
#

Yeah, I am wondering how would an optimal GUI DSL looks like. Does separating markup, styling, and function really is the way to go or is there a better ways to do it

rigid snow
opaque wharf
#

Because HTML+CSS+JS fits exactly that pattern so maybe I am biased because of it

sage crag
#

asking for an optimal gui dsl is like asking for an optimal programming language

#

its dependant on usecase

opaque wharf
sage crag
#

fake words

rigid snow
opaque sigil
tender river
#

as a compromise everyone should just use lisp

opaque wharf
sage crag
rigid snow
tender river
sage crag
#

hblang as gui dsl

tender river
sage crag
opaque sigil
#

One of the best or worst parts about scala depending on who you ask is how easily you can make DSLs with it neuroPogHD

#

Wtf I can't English

sage crag
#

rewrite gnu coretils in hblang

tender river
#

no. posix bad

opaque wharf
rigid snow
tender river
sage crag
tender river
sage crag
opaque sigil
rigid snow
sage crag
#
Seq := fn($A: type, $B: type): type return struct {
    Res := ParseResult(SeqRes(ParseRes(A).Out, ParseRes(B).Out))
    parse := fn(allocator: @Any(), data: []u8): Res {
        res := json.parse(A, allocator, data)
        if !res.inner.is_ok {
            return Res.err(res.inner.expect_err("error in Seq"))
        }
        left := res.inner.unwrap()
        res2 := json.parse(B, allocator, left.data)
        if !res2.inner.is_ok {
            return Res.err(res2.inner.expect_err("error in Seq [2]"))
        }
        right := res2.inner.unwrap()
        return Res.ok(right.data, .(left.res, right.res))
    }
}

no wonder the compiler is having a heart attack

#

i dont blame it

tender river
#

i do

sage crag
rigid snow
#

compiler is always wrong

sage crag
rigid snow
#

the customer is always right

sage crag
#

imagine if compilers were just tiny people who translated your code to asm

tender river
sage crag
#

first async monads in json parser, then lisp vm

opaque sigil
tender river
#

they arent async in json parser neuroPogHD

rigid snow
sage crag
#

figures

rigid snow
#

mhm

sage crag
#

hi does anyone want me to send them a copy of yes for linux x86_64

tender river
sage crag
#

dubious 1.41 MB file

tender river
#

its yes

sage crag
#

i believe you

rigid snow
sage crag
trim valve
sage crag
#

how big is it

trim valve
#

I dunno

#

I cant be bothered to get out of bed

#

or switch my pc on

sage crag
#

in bed at midnight

#

how could you

rigid snow
#

fake programmer

trim valve
#

I had a long day

tender river
trim valve
opaque wharf
#

My cat only weight 39K

tender river
#

its yes

opaque wharf
#

Oh right

#

Yes only 35K

rigid snow
#

that's still; a very heavy cat

#

are you sure you're not overfeeding it

opaque sigil
opaque wharf
tender river
#

wrong ping

tender river
opaque wharf
#

How long until we reach the GB mark

rigid snow
trim valve
rigid snow
sage crag
#

thats what im getting from hblang-yes

trim valve
sage crag
tender river
#

how are you benching it

sage crag
tender river
trim valve
#

smh konii that's what happens when you miss your computer payments

tender river
#

its ok you can killt hme

sage crag
#

it was like yes | pv -l >/dev/null

tender river
#

they wont take your money if they're dead

sage crag
#

but they do spook me

#

ive placed some blue lights outside to draw them away but its having a bad effect on the local bug life

#

oh thamks you spider web

tender river
#

yes.py confirmed faster than gnu yes

sage crag
#

this is not the same output

opaque wharf
#

Now pv is something I've never heard about and it didn't exists on my system

#

Unlike yes

sage crag
#

oops i destroyed a mosquito with the power of the sun

tender river
sage crag
#

idiot bug flew into the radiator

#

do not ask why i have a radiator on in this weather

opaque wharf
#

Why do you have a radiator on in this weather?

tender river
#

for frying mosquitos

sage crag
#

3 down 2 to go

opaque wharf
sage crag
#

i will employ ballistics

tender river
#

you wont get much protein from just a couple mosquitos

sage crag
#

why is it spinning

#

its evading me

opaque sigil
#

imagine having to deal with mosquitoes

tender river
sage crag
opaque wharf
sage crag
#

ive misplaced a mosquito

tender river
#

i live in siberia

sage crag
#

this is deeply unsettling

tender river
#

and i do have to deal with mosquitoes

opaque wharf
#

Antartic mfker

tender river
#

but also in the city they wont bother you nearly as much as if you go into the fields

sage crag
#

londom also has no mosqutioes

tender river
#

when i was in vietnam in december i wasnt bothered by a single mosquito which i found weird

sage crag
#

i thought i relocated mosquito 5 but it fled

tender river
#

fugitive mosquito

sage crag
#

moth

#

henlo moth

tender river
#

do you have your windows open

sage crag
#

guarded too well

#

i found hit and lost the fugitive mosquito

tender river
#

good luck

trim valve
#

if I leave my window open on the wrong day I get a dark haze on my ceiling due to bugs

sage crag
sage crag
sage crag
#

this is what i was doing

trim valve
#

but that would solve the problem

#

and I'm British

#

so we just complain instead

opaque sigil
sage crag
rigid snow
#

i have a screen on one of the windows but i never open that one, for some reason mosquitoes do not like me

sage crag
tender river
#

i saw it

#

when i hit ^C python prints the exception and hides the numbers

sage crag
sage crag
#

python wtf.py 2>/dev/null | pv -l > /dev/null

#

i guess

opaque wharf
#

The window on my room goes directly to the kitchen stove

tender river
#

this is all the proof i needed that python is faster than C

sage crag
#

the 6 second bench

sage crag
#

it fits in a disk sector

jagged turtle
#

me when my code I knew should work doesn't work

#

how bro

rigid snow
#

what am i looking at

tender river
sage crag
#

what

#

why

jagged turtle
tender river
jagged turtle
#

I used to write something much simpler and it worked

#

and then when I added another option it didn't

sage crag
opaque wharf
tender river
sage crag
#

hi stupid

dry charm
tender river
#

hi neuroPogHD

sage crag
tender river
#

anyway steam-run doesnt affect performance

jagged turtle
#

I thought I chose dark mode not light mode

opaque sigil
sage crag
jagged turtle
tender river
rigid snow
opaque wharf
sage crag
tender river
rigid snow
opaque sigil
#

ostree neuroPogHD

rigid snow
#

we don't need ostree when we have glorious docker

opaque sigil
#

one giant docker compose for the whole system pogs

jagged turtle
#

why

opaque wharf
#

Sam is gone for a day and look what happened

opaque sigil
#

now i'm actually curious

#

how many containers can you throw into a compose file

rigid snow
opaque wharf
opaque sigil
#

looks like that is indeed the answer

opaque sigil
jagged turtle
#

I guess I have an excuse to run harmful files online now neuroDespair

sage crag
#

outplayed

jagged turtle
#

snek

#

(yes I only just realised they had this tag)

tender river
#

i wonder what i should do

#

guess i'll start another language

#

(i have a bunch of stuff to do at home but im not at home atm)

sage crag
tender river
#

ok smart konii give me another idea

sage crag
#

something something hblang

tender river
#

how am i supposed to implement an lsp without string constants smh

sage crag
#

you have string constants enub

tender river
#
lily.{log} = @use("lily")
X := "a"
main := fn(): uint {
    log.print(X)
    return 0
}

if only this worked....

sage crag
#

erm

#

ping mlokis

tender river
#

already did

#

its wip

sage crag
#

rip

#

maybe soon

tender river
#

mhm

#

any other ideas? cupsama

sage crag
#

orm

tender river
#

(also you should push lily at some point)

sage crag
#

it exists

#

but im sitting on changes yeah

tender river
#

should i send prs to 0.2.0 or trunk

sage crag
#

0.2.0 has no features yet

#

so trunk i guess

#

i really should have moved trunk to 0.1.0 and started working on trunk

tender river
#

i'll just keep the extra functions in my tree until you're done

sage crag
#

oops

tender river
#

not too late for that

opaque wharf
tender river
#

its $3.5 do i look like a millionaire to you

opaque wharf
#

And demolish Shiro while you're at it

opaque wharf
tender river
#

i like how openai made chatgpt prompt the user

opaque wharf
real sierra
#

I just got home

#

what's new

real sierra
tender river
#

im so silly i cant believe the kind of ideas i have

midnight sigil
#

logic gate game

#

cool

opaque wharf
real sierra
#

time to see how my screeps are doing comfi

opaque wharf
#

You've failed them as their overlord

real sierra
#

they built all the roads and extensions needed

tender river
#

such a funny paragraph

opaque wharf
tender river
#

my opinion is that im tired and wanna sleep cupsama

amber fractal
#

My opinion is Awa

real sierra
real sierra
hoary lion
#

awawa

tender geode
sage crag
#

sorry this language is written in typescript

tender river
#

mrr

sage crag
#

p mrp meow

hoary lion
#

i have been seeing too much bayesian theory recently

#

my head hurts

#

everything seems to be some kind of intractable distribution

real sierra
tiny mango
#

celebrate shiro day

sage crag
#

no neuroTsun

real sierra
#

i cant afford any more national holidays named after myself

sage crag
#

please donate

unkempt citrus
#

It's also everyday so it's very expensive

gritty dust
#

guys it happened

unkempt citrus
gritty dust
#

right now more people are more active in programming than general

#

yooo

opaque wharf
#

I didn't intend to write THE, but that works out fine too lol

amber fractal
#

Yeah seems about right that as soon as he leaves this place becomes lively

opaque wharf
#

But also increasingly cursed

amber fractal
#

No need to dumb down how cursed we are being

opaque wharf
#

Although to be fair, he did post cursed c++ too

amber fractal
#

I did my fair share of cursed today, but it is outside the field of programming for the moment

opaque wharf
amber fractal
#

Since I decided to mash theoretical physics, magic, and extra dimensional horrors into one project.

#

Oh yeah, eventually I'm making this into a game engine

opaque wharf
#

Ahh, fighting the traditional rendering pipeline too I see

#

4D engine can also be used for NDimension btw

amber fractal
#

I'm not trying to expose the extra dimensionality of it much. What I am using it for is some convenient values and a very very fun way to bang my head against the wall.

#

We love walls of text

opaque wharf
#

"Convenient value" and "higher dimension" shouldn't belong in the same sentence catdespair

amber fractal
#

Yeah, I'm so fricked

tiny mango
#

not celebrate shiro day ?

amber fractal
#

That's normally done in the general chat whenever a wild Shiro~ spawns

tiny mango
#

:(

#

why are you doing virtualized atomic reduction in 4D?

#

sorry, 4D at minimu

#

-m

amber fractal
#

My usual dose of insanity

tiny mango
#

very millennial of you

#

hashtag we're all mad here

tender river
amber fractal
#

I'm in gen Z smh

tiny mango
#

you can be millennial-core without being millennial

#

hashtag quirky, y'know?

amber fractal
#

I'll take it

real sierra
#

dejj endless bug bashing in my screeps ai

#

builder ai was pretty buggy but thats a given since its the most complex

#

added some more statistics to track our energy expenditure too, not just gain

#

oh oh i have a fun programming problem

#

given a room with some impassable terrain and a few fixed exits along the extremities, it begs the question of where the best place might be to construct fortifications

#

there are probably chokepoints which would be more strategic and resource effective

#

in the past, my algorithm was to lean on pathfinding for this task

#

denote that a successful path ends within 4 tiles of any room exit tile

#

and then attempt to find such a path starting from the room controller

#

if it can be found, then place a wall on the end tile

#

otherwise we have all the required walls Ok

#

this builds nice rectangular boxes around the map exits at a certain distance but its not super efficient

opaque wharf
real sierra
#

the answer is, it's complicated

opaque wharf
#

Indeed neuroDespair

real sierra
#

walls can technically be built "instantly"

#

but at 1hp

#

they must be repaired up to whatever health you desire

#

and then maintained, as they slowly lose hp over time naturally

opaque wharf
#

What is a good heuristic to determine the importance of passable terrain I wonder

real sierra
#

all good questions

#

actually

#

i just had a genius idea

#

holy crap

#

brain blast

#

here's the idea

unkempt citrus
#

Is it graphs

real sierra
#

nono

#

its very devious but im trying to figure out the details before i yap

unkempt citrus
real sierra
#

heres my room for example

#

the idea is

#

find a thin segment of the impassable terrain

#

adjacent the area you want to close off

#

define a start node and end node nearly adjacent each other

#

then set up pathfinding costs such that the tiles between the end and start are impassable

#

normally passable tiles are extremely high cost

#

and normally impassable tiles are relatively low cost

#

then pathfind from start to end

opaque wharf
#

So basically rather than checking out every advantageous combination, you pick one and then protect it

real sierra
#

iterate over all nodes in the path found, and any that are in normally passable squares need walls put in them

#

in my room, that path might look like this

#

where it is happy to cover long distances over the impassable terrain to get to small gaps in the passable terrain

unkempt citrus
#

So invert path finding

real sierra
#

yeah basically

#

would allow you to generate such a wall plan with a single pathfinding call

unkempt citrus
#

Then use an evaluating function or something to balance ratio of building to space protected?

real sierra
#

thats a good question

#

every room has a room controller, so i would probably just search for the nearest wall to that

#

and then start my pathfinding from there

#

its a central important structure

#

seems reasonable enough to ensure it's inside the wall

#

if roads are constructed to the other important locations before the wall is generated, you can put ramparts (doors) over existing/planned roads to effect egress

#

actually thats a tricky question, how to know where to put doors to avoid cutting off exits from yourself

#

the doors are much more costly so you want to minimize them for sure

unkempt citrus
#

Designated target areas that must be possible to path find to

#

And if the proposed walls violate that its invalid and a door is required

real sierra
#

minimal pathfinding calls would be ideal

#

pathfinding is pricy and im on a tight cpu budget

unkempt citrus
#

If you can map each stretch of wall, you could force one door in each stretch somewhere

real sierra
#

true

#

thats a valid option

opaque wharf
#

Oh, I got the algorithm now. You should also define a max span/length since it will break apart in an open field

#

Or not if you do want to block the entry/exit as closely as possible

real sierra
opaque wharf
real sierra
#

there are holes in the sides of rooms, these are how you navigate between rooms

#

im not sure if there are size constraints on them

opaque wharf
#

Yeah, that's what I meant earlier by open field. Basically no terrain wall. But I doubt it will happen

real sierra
#

i have found a small flaw in my plan

#

the end and start nodes are only separated by like 3 empty tiles max

#

so that'll be the shortest path most of the time

opaque wharf
#

Then specify the minimum length required

#

You could also do a little trolling by considering the tile near start/end a very high value

real sierra
#

true, maybe i can increase the price of empty tiles near the start/end

unkempt citrus
#

And set a minimum

real sierra
#

finally got an implementation working mhm

#

forgive my debug vis

real sierra
#

it only offers facilities for specifying max size

#

maybe i should just set all structures as impassable

tender river
# real sierra there are probably chokepoints which would be more strategic and resource effect...

In graph theory, a flow network (also known as a transportation network) is a directed graph where each edge has a capacity and each edge receives a flow. The amount of flow on an edge cannot exceed the capacity of the edge. Often in operations research, a directed graph is called a network, the vertices are called nodes and the edges are called...

real sierra
#

neuroCross graph theory

#

turning this discrete map into a graph sounds like hell

tender river
#

its already a graph

#

no turning required

real sierra
#

that's not terrible

real sierra
#
    encloseAreaPath: function(room, startX, startY, innerDirection) {
        const costs = new PathFinder.CostMatrix;
        let terrain = room.getTerrain();
        for (let x = 0; x < 49; x++) {
            const xdif = Math.abs(x - startX);
            for (let y = 0; y < 49; y++) {
                if (terrain.get(x, y) & TERRAIN_MASK_WALL > 0
                    || _.filter(
                        room.lookForAt(LOOK_STRUCTURES, x, y),
                        (struct) => struct.structureType == STRUCTURE_RAMPART
                            || struct.structureType == STRUCTURE_WALL
                    ).length > 0) {
                    
                    costs.set(x, y, 1);
                } else {
                    const ydif = Math.abs(y - startY);
                    //room.createFlag(x, y, null, COLOR_YELLOW);
                    costs.set(x, y, Math.max(20, 255 - 40 * (xdif + ydif)));
                }
            }
        }
        for (const struct of room.find(FIND_MY_STRUCTURES).concat(
            room.find(FIND_STRUCTURES, {
                filter: (s) => s.structureType == STRUCTURE_ROAD
            })
            )) {
            costs.set(struct.pos.x, struct.pos.y, 255);
            costs.set(struct.pos.x, struct.pos.y+1, 255);
        }
        let x0 = startX;
        let x1 = startX;
        let y0 = startY;
        let y1 = startY;
        switch (innerDirection) {
            case 'left':
                for (let dx = 0; dx + startX < 50; dx++) {
                    //room.createFlag(dx+startX, startY, null, COLOR_RED);
                    costs.set(dx+startX, startY, 255);
                }
                y0 = startY + 1;
                y1 = startY - 1;
                break;
            case 'right':
                for (let dx = 0; dx + startX >= 0; dx--) {
                    //room.createFlag(dx+startX, startY, null, COLOR_RED);
                    costs.set(dx+startX, startY, 255);
                }
                y0 = startY - 1;
                y1 = startY + 1;
                break;
            case 'up':
                for (let dy = 0; dy + startY < 50; dy++) {
                    //room.createFlag(startX, dy+startY, null, COLOR_RED);
                    costs.set(startX, dy+startY, 255);
                }
                x0 = startX + 1;
                x1 = startX - 1;
                break;
            case 'down':
                for (let dy = 0; dy + startY >= 0; dy--) {
                    //room.createFlag(startX, dy+startY, null, COLOR_RED);
                    costs.set(startX, dy+startY, 255);
                }
                x0 = startX - 1;
                x1 = startX + 1;
                break;
        }
        const path = PathFinder.search(new RoomPosition(x0, y0, room.name), {pos: new RoomPosition(x1, y1, room.name), range: 0}, {
            roomCallback: (roomName) => costs,
            maxRooms: 1
        });
        return path.path;
unkempt citrus
#

All pathfinding is graph theory

#

What's changing

slim marsh
#

anyone majoring/working in data science ?

#

I have to get research papers and analyse them for my college project and Idk where to start

#

So if y'all know where to get new research papers and maybe some recommended topics to work on/analyse that would help me a ton

#

thank you, please dm me if you'd like to help !

opaque wharf
#

Also Kaggle and Huggingface

real sierra
#

the burst clock mechanism of screeps is really interesting

#

opens a lot of doors

unkempt citrus
opaque wharf
real sierra
#

nah

#

its a huge enabler

#

it means i can run periodic expensive operations

#

even if they exceed my 30 CPU per-tick limit

stark needle
#

good morning

real sierra
#

gmgm

stark needle
#

neuroWaveA how are u shiro

real sierra
#

not too bad happie

#

confusing myself with the Algorithms

#

turns out pathfinding for creating walls is kinda awkward

#

units can walk along diagonals

#

and since two diagonals can cross without intersecting

#

filling a diagonal with walls does not prevent a unit from walking through said wall

#

need to modify the wall placement code to address this

#

that way it fills all the gaps

real sierra
#

ok

#

they're making walls and stuff

#

thats enough screeps for tonight

#

brain off

opaque wharf
olive sable
#

Goodmorning neuroWaveA

slim marsh
#

can i self promote

#

i want stars 😭 on my repo

#

small project i made for fun im just starting out 😭

olive sable
#

So...
Officialy according tonthe rules you cant

#

And rule 12 is no loopholes

#

But there is a loophole that people have use accidentaly

#

If you just talk about the topic of your repo, then posting your repo wont seem weird afterwards

#

The thing is, this ussualy wont give you stars

opaque wharf
olive sable
#

You're free to do so

#

I will just deny all pr's that i dont like

slim marsh
#

its just aesthetically pleasing i mean its nothing

#

it just prints a quote in your terminal

olive sable
slim marsh
#

yeh

#

theres a bug it works with vs code

#

so i call it a feature

#

ccuz its a termminal in the end so

unkempt citrus
#

well hopefully anyway

opaque wharf
#

I should make a github actions that automate the whole process of terrorizing Sam repo hehe

olive sable
#

You do you

#

I will just ignore the pr's

dry charm
#

it'll be a nightmare

true hemlock
#

5950x - $276
7900 - $342
which one? what'd ya think?
already have AM4 mobos though. planning to get 2x32gb.

stark needle
unkempt citrus
#

Only with sufficient prior data

#

but based on your behaviour, it is very low, though with a very wide 95% CI

stark needle
#

Can't wait to touch grass some day

tender river
slim marsh
tender river
#

who????

ruby timber
#

What do stars even do

#

references your repo better?

tender river
#

its like likes but on github

#

it pushes you in the recommendations algorithm and maybe search

#

thats it

#

for most people they wont get enough stars for it to matter

#

it will just be on their profile like "wow look this person has 5 stars on their project isnt that crazy" nobody cares

#

maybe employers do

#

(i dont think most employers care about github stars but maybe it can be a small bonus, not at the scale of 10 stars though)

distant blaze
#

if you are, then you need to be pushed away from the wall

dawn garnet
#

was getting real close to completing implementation of auto-saving for forms even when incomplete so they can be returned to and completed later

#

then docker just decided that it doesn't FEEL like keeping my containers running

#

Time to restart ma PC

maiden geyser
#

"ts pmo"💔

#

i have no idea where that dlmon4k react is

#

and it just sends me to random channels

trim valve
#

discord has a flawless mobile app with no bugs whatsoever

dawn garnet
#

Simple fact of life

hallow aspen
#

Simple fact of life

maiden geyser
#

Simple fact of life

tender river
#

bwa

jagged turtle
#

like social media apps

olive sable
#

I have decided yall need to see the black mountain

opaque sigil
#

Idk doesn't seem very black to me

#

Pretty though neuroPogHD

olive sable
#

Its indeed not black

#

Very pwetty NeuroBounce NeuroBounce NeuroBounce

ruby timber
ruby timber
olive sable
stark needle
#

what if

#

Was a metaphorical piece of expressive art for all victims of the titanic that drowned and floated at the surface

olive sable
stark needle
#

And the artist wants to bring awareness to the cause by utilizing a well known online character

olive sable
#

Theres no wifi in the mountains so ill be going dark again neuro7

opaque wharf
maiden geyser
#

i'm afking in vc rn

opaque wharf
#

Ahh, I only hangout in awawaland so maybe that's why I never see you

ruby timber
opaque wharf
ruby timber
#

I'm in

#

TO THE NIUH

dusky jackal
opaque wharf
#

Or competitive geoguesser I guess

dusky jackal
dusky jackal
rigid snow
#

living next to the sea/ocean must be really cool neuroSad2

opaque wharf
#

In fact it has very high humidity

rigid snow
#

i mean i have lived in those conditions for some amounts of time

#

it’s not bad

opaque wharf
#

Hmmm, maybe because I live in the equator too

rigid snow
#

no the humidity part is valid

#

totally

opaque wharf
#

Yeah but like, here it's all year long

rigid snow
opaque wharf
#

Either the humidity is high in sunny season or high af in rainy season

rigid snow
#

trust me it’s better to have high humidity when it’s hot than to have high humidity when it’s -15 celcius outside

dusky jackal
rigid snow
#

if not worse

dusky jackal
rigid snow
#

you don’t have -15 celsius outside in most places tbh

dusky jackal
rigid snow
dusky jackal
#

It’s usually around like 70ish degrees where I’m at and it doesn’t change much from seasons.

opaque wharf
#

Mhmm, here we experience 30°C daily (around 90F?)

rigid snow
#

i mean it’s 1300 km to the closest sea from where i’m at so i wouldn’t know