#programming

1 messages · Page 40 of 1

ivory light
#

I tried coding Lua for a week and it sucks btw, I don't get how the Balatro developer could handle the worst intellisense any IDE has ever seen

trim valve
#

glueless what's saying that isn't already what happens here

#

clearly hblang was hallucinated by an llm and doesn't really exist NeuroClueless

cosmic sphinx
#

and in the end, they'll all agree that binary machine code is the most efficient

cosmic sphinx
#

who the hell needs compilers and interpreters when you can write everything in binary glueless

midnight sigil
#

BROOO HOW DO I EVEN IMPLEMENT THIS IN BLENDER

ivory light
midnight sigil
uneven pulsar
#

me enjoying my text based ultrakill game on a java terminal

opaque wharf
olive sable
#

I am neuroHypers

quick flame
#

I have to remake this question
I had a LLM security assessment and I had tons of issues related to prompting bypass and I was asked to solve them..... those anyone deal with that in the past ?

sour harness
#

There's prompt guard from Meta. I think it's part of the Llama4 release?

#

Never tried it though.

nocturne olive
#

Hopefully you're prepared with a lot of GPUs

sour harness
#

Before using the prompt use another LLM and ask it if the prompt is malicious. Only if you get a go from that LLM, use the prompt for your actual LLM.

silent mason
pastel nymph
#

Who wants to gamba with me?

opaque wharf
#

So guardrails is basically old school NLP of sentience analysis but more specialized toward "is this prompt probably malicious for my LLM?"

#

Sentiment

#

ESL moment

sage crag
#

gl

midnight sigil
#

tbh everything like that will be a constant since n is determined

#

NeuroNerd and aktually it's n // 2

pastel nymph
#

Doesn't it depend on a language?

#

Most of the languages I know / on ints is already a floor division

olive sable
#

Why is it 30C today? NeuroDead

trim valve
olive sable
quick flame
olive sable
trim valve
#

its 20c here

#

it was hotter yesterday though

olive sable
#

Fuuuck, i want that

#

Im guessing southwind

midnight sigil
trim valve
midnight sigil
#

so we use // to avoid confusion sometimes

pastel nymph
#

Will python convert the result to float if you do /? I don't remember mewmoteHmm

midnight sigil
trim valve
#
>>> 1 / 2
0.5
midnight sigil
#

you do n / 1 and you'll get n.0 as well iirc

trim valve
#

oh yeah 1/1 gets 1.0 back

midnight sigil
gritty dust
#

HOLY my god I finished my physics RST and I feel like I'm cooked holy fuckkk

pastel nymph
#

Thats why I like statically typed languages more mhm

trim valve
midnight sigil
trim valve
#

also unless I'm stupid 0.5 is actually trivially representable with a float

tender river
#

it indeed is

#

since its a negative power of two

opaque sigil
#

0.1 glueless

tender river
#

0.1 isnt a power of two

tender river
midnight sigil
#

yea it's 0.1

opaque sigil
#

0.1 as in binary

midnight sigil
#

ik ik smh

tender river
#

true

#

fun fact go uses ratios instead of ieee floats for evaluating constants

opaque sigil
#

seems reasonable

trim valve
#

I heard about that and I hate it

opaque wharf
#

While python have Fraction

tender river
#

has nothing to do with constants

opaque wharf
tender river
#

because compile time computation results dont match runtime computation results

trim valve
#

yeah that

midnight sigil
#

huh?

opaque wharf
midnight sigil
#

that's, not cool

opaque wharf
tender river
#

because go doesnt use ieee floats at compile time, as i stated above

opaque wharf
#

Oh yeah I get it now

#

I forgot that go can be "run" and "compiled"

trim valve
#

I don't think that's what chayleaf is referring to

opaque wharf
#

What, then how will that result in different computation?

midnight sigil
#

I'm guessing different interpretation of floats for two stages?

tender river
#

if you have a float 0.1 and you add 0.1 to it at runtime you get something like 0.200000000000001 because 0.1 doesnt actually exist

#

bad example

#

lets say one of them is 0.15

#

still you get something like 0.2500000000000001

#

but if you write (0.1 + 0.15) in your go code, it will get compiled as precisely 0.25

opaque wharf
#

Hmmm, alright. I think I get the gist of it. I think I should just be thankful that I've never encountered that behaviour in the wild

#

Partly because I don't use go maybe

tender river
#

ieee floats are used in every language

#

so if you're referring to being thankful about that part, you're mistaken

#

but if you're referring to mismatched compile and runtime computation results, then yeah

trim valve
#

imo I like the idea of compile time fractions existing but don't like that its implicitly used instead of floats

opaque wharf
#

Yeah, fraction have its use but non standard real number representation by default is not cool

midnight sigil
opaque wharf
opaque sigil
#

go and types? we don't do that around here

trim valve
#

evilShrug idk enough about how go works but a type that can be compile time cast to float would be neat

opaque wharf
#

Since IEEE math don't have properties of real math

#

Well, "real" as in standard ZFC math

midnight sigil
opaque sigil
#

it's less about the community and more about the fact that they like to market themselves as a "c for the 21st century", it's hard to explain but as an example it took them a decade to add generics to the language

tender river
#

wdym you dont like if err != nil

opaque sigil
#

i don't mind that

#

will take it over exceptions any day of the week

tender river
#

fair but the part of exceptions i like is stack traces

noble zodiac
#

god I hate exception style error handling

midnight sigil
#

whaat?? what was it like before generics were added

#

basically like py but worse?

opaque sigil
#

have you ever used c

#

like that

tender river
opaque wharf
rough bloom
tender river
#

but also unlike C there was no macros

pastel nymph
tender river
#

i think some people resorted to code generators

pastel nymph
#

I think they just added any as an alias way later

opaque sigil
#

that's like calling void* generics

sage crag
#

hblang will never have this problem

trim valve
opaque wharf
opaque sigil
#

but yeah

#

any / Interface {} was always a thing

midnight sigil
olive sable
#

having to go through this thing every time is very annoying

opaque sigil
#

use clang

trim valve
#

use wsl

olive sable
#

what is a clang?

trim valve
sage crag
#

use msys2

olive sable
#

no we're not using linux today

opaque wharf
olive sable
#

what is msys2?

opaque wharf
#

Or literally install clang?

midnight sigil
#

clang has its own win variation no?

opaque sigil
midnight sigil
#

yea

rough bloom
opaque sigil
#

there's gcc via msys2 too but eh that's annoying

sage crag
olive sable
#

there is no 3rd option

rough bloom
opaque wharf
#

You can use rust, and set you rustfmt too then ignore #programming

midnight sigil
midnight sigil
olive sable
#

int main()
{

#

newline

opaque wharf
trim valve
olive sable
#

last time they complained about it so i just switched to C++

opaque wharf
#

That was a fun time

opaque sigil
#

this is a lost battle

#

also

rough bloom
olive sable
#

having the brackets on my 3rd monitor doesnt scream well formated to me

trim valve
#

???

rough bloom
#

???

olive sable
#

im jjoking relax

rough bloom
opaque wharf
#

I was waiting for another onedrive repo shenanigans

olive sable
#

i mean that its easier to see where a function starts and begins if they're on the same vertical line to me

pastel nymph
#

Actually, I wanted to ask. Is there an easy way to initialise c# project? Kinda like go mod init does?

midnight sigil
opaque sigil
#

dotnet new or something?

olive sable
#

no

pastel nymph
trim valve
#

tbh I just rely on vscode's bracket colouring + sticky lines and the rest is just mentally keeping track of what my code looks like

olive sable
noble zodiac
#

I still dont get whats wrong with rusts brackets

opaque sigil
midnight sigil
olive sable
#

they already have bro

opaque sigil
olive sable
#

i left the server for 15 hours

opaque wharf
opaque sigil
#

we don't need this again

#

is that the one with the lines

midnight sigil
sage crag
rough bloom
opaque wharf
trim valve
#

I think I use that already

#

lemme check

sage crag
#

i use bracket pair colours

olive sable
noble zodiac
#

rainbow brackets is one of the best plugins

opaque wharf
opaque sigil
#

oh hey it's me

noble zodiac
sage crag
#

too much stuff on my screen

opaque sigil
#

yeah i don't like the guides either, too much

#

i say as i use errorlens

sage crag
opaque wharf
#

Dang, so thats why they disable it by default lol. I love it tho

rough bloom
# olive sable

neurOMEGALUL
-# but also inaccurate, I'm fine with bracket on newline for Rust if it's a solo project
-# just don't subject others to that mess

trim valve
#

oh I forgot to reenable it when I reinstalled

olive sable
#

nah im stickign with C++

#

they appreciate me

#

they accept me for who i am

opaque wharf
#

Because pairing the sam style code with the guides is godsend to me

trim valve
#

wait hm its actually way less helpful with this theme

midnight sigil
#

winner belongs to python, it's indentation sensitive and doesn't have brackets unless for objects NeuroClueless

trim valve
#

thank you spotify I really like how you decided to play my music over remote desktop instead of on my local device

#

very cool

opaque sigil
#

i suggested scala 3 but apparently that's not enough brackets neuro7

opaque wharf
olive sable
#

i started with python, if python was fast enough to do my things we wouldnt be here to begin with

opaque wharf
#

Just look at this beauty highlighted line on the left

rough bloom
trim valve
#

glueless just get good at spotting the brackets yourself

rough bloom
trim valve
#

(this only occasionally bites me in the foot when I need to fix massively nested brackets)

olive sable
opaque wharf
trim valve
#

but rustfmt usually manages to add indentation before it becomes a real problem

noble zodiac
#

I dont use rustfmt, be freeee

rough bloom
trim valve
#

they have meaning when you're doing rust and I don't want to confuse them

olive sable
#

"them"? evilStare

midnight sigil
#

scala 3 looks like python had a kid with kotlin, and kotlin no longer have fun

trim valve
#

tbh I could just change the bracket colours and it'd probably be less of an issue

midnight sigil
noble zodiac
olive sable
rough bloom
noble zodiac
#

(spoiler answer 4 is for psychos)

noble zodiac
olive sable
# noble zodiac

have you seen my devious list comprehensions?
ofcourse if its cuz of indentation you should use a function

warped narwhal
#

120 is the width of my ide so that is what I use

trim valve
#

this is worse if its the blue brackets instead of the pink ones

midnight sigil
# noble zodiac

unless you're dealing with a coding standard, line length doesn't really matter if you know what you are doing

opaque sigil
#

i default to 80 because anything else on a 14" laptop is a pain

midnight sigil
#

I'm a one-liner type of guy

trim valve
#

having a line length stops annoying people from onelineing everything

midnight sigil
#

I lambda everything I see

rough bloom
noble zodiac
#

you can lambda in multiple lines

midnight sigil
opaque wharf
noble zodiac
#

oddly enough function declarations is the only thing where I put everything in a single line

opaque wharf
tender river
#

line length depends on language style guides

maiden geyser
#

is there a style guide for c/c++

opaque sigil
#

there's like 50

opaque wharf
midnight sigil
tender river
trim valve
#

i personally don't go over 1 character per line

olive sable
rough bloom
midnight sigil
noble zodiac
#

the linux kernel has 80 which I can respect, but also 8-width tabs, which I dont respect at all

midnight sigil
trim valve
opaque sigil
#
self.depthshaders = [
    shaderDepth(
        np.ascontiguousarray(
            np.concatenate(
                [
                    np.concatenate(
                        [
                            arr + entity[0].transformMat[3, 0:3]
                            for arr in entity[1].vertexDataList
                        ]
                    )
                    for entity_type, entity in self.entities.items()
                    if entity_type not in [ENTITY_TYPE["player"]]
                ]
            ),
            "f",
        ).data.cast("B")
    )
]
trim valve
midnight sigil
#

I hope there's a language out there allows us to do 1 chr per line neurOMEGALUL

olive sable
rough bloom
olive sable
#

we broke up

safe path
midnight sigil
olive sable
trim valve
#

yeah but loops every bit of syntax is just one char right?

opaque sigil
#

yes

midnight sigil
#

I mean, yea

trim valve
#

unless newlines have semantic meaning in bf

opaque sigil
#

you can do it vertically

sage crag
#

p
l
e
a
s
e
;

olive sable
#

now the brackets will have to be on a newline neuroHypers

trim valve
olive sable
#

i love this style

midnight sigil
olive sable
sage crag
trim valve
#

moonlight you silly program that computer is you

midnight sigil
trim valve
#

why would i remote desktop to myself

rough bloom
#

(or rather some weird variant of it but whatever, same thing)

olive sable
#

lua looks pretty cramped tbh

#

i like space

stray dragon
#

lua was slower than python i thought

opaque sigil
#

there's luajit

midnight sigil
rough bloom
stray dragon
#

i see

tender river
olive sable
#

is lua interpreted?

#

i cant find a straight answer on google

trim valve
#

i think so

midnight sigil
trim valve
#

but commonly jit'ed as well

rough bloom
olive sable
#

ah yes, both

sage crag
#

luaji t

stray dragon
#

hi konii

tender river
#

hi T

sage crag
#

hi t

olive sable
#

hi

stray dragon
#

hi chayleaf

trim valve
#

hi chayleaf

#

hi t

sage crag
#

hi bred

stray dragon
#

hi bred

trim valve
#

hi konii

rough bloom
stray dragon
#

what have i started

midnight sigil
sage crag
olive sable
#

Bwaa

trim valve
#

n^2 my beloved

stray dragon
tight tinsel
#

I see react button I press

maiden geyser
midnight sigil
sage crag
wide flicker
#

sorry I'm aware this conversation was last night and we have well moved on but may I present the "antivirus" Norton

please pardon me while I wash my hands after typing that

sage crag
midnight sigil
#

cough cough

olive sable
#

the first time trying to read that did not go well

#

i plead the 5th

rough bloom
# olive sable is lua interpreted?

btw if you want to know if Lua is usable for game engines
lots of engines use Lua under the hood to script behaviors for stuff
there's also game engines written in Lua, Balatro uses one for example
-# idk why I'm shilling Lua now I don't even really like the language

sage crag
olive sable
#

we dont have the 5th here but i still plead it

tight tinsel
#

what is the fifth

olive sable
#

right to remain silent

trim valve
#

the thing after the fourth

tight tinsel
#

idk anything about American law thingy

midnight sigil
#

guys it's pronounced as square root

#

smh

maiden geyser
tight tinsel
#

sqrt is a more byte efficient way to say it

sage crag
midnight sigil
olive sable
stray dragon
trim valve
#

i forgot how easy it is to drag click on the g502

sage crag
wide flicker
# tight tinsel what is the fifth

"Pleading the Fifth" refers to a clause in the fifth amendment in the US that protects people in court from self-incriminating testimony

sage crag
#

x^½

rough bloom
midnight sigil
trim valve
olive sable
#

i just need it to:

  1. embed in itchio
  2. work with webgl
  3. if it uses { i want it on a newline
    those are the only requirements
#

which is why im going C++ for now

midnight sigil
olive sable
#

thats me

olive sable
#

ok 4 requirements.
4. it cant be javascript, i hate jqavascript

trim valve
#

sam have you considered a rustfmt.toml that looks lke

brace_style = "AlwaysNextLine"
control_brace_style = "AlwaysNextLine"
midnight sigil
olive sable
#

unity would be a game engine

rough bloom
olive sable
olive sable
#

get out

stray dragon
#

lmfao

trim valve
#

i keep forgetting that if I leave my mouse wheel free spinning it keeps spinning when i move my mouse

rough bloom
tender river
midnight sigil
tender river
olive sable
#

why are wer still doing this? i already said i was doing C++

stone cedar
#

Is emscripten still the way to go to use webgl with c++ or is there something better now?

pastel nymph
tender river
olive sable
#

im gonna do C# in 3 months in school anyways so i felt like i shoudl learn something else for now

trim valve
tender river
olive sable
rough bloom
trim valve
#

ok true

sage crag
#

ee oo ee oo

olive sable
opaque wharf
#

Oh someone already said it lol

#

Brb, still backread

sage crag
olive sable
#

yes

#

wasnt very productive

opaque wharf
trim valve
#

metal lol

#

but the g502 lets it freewheel for the funny

olive sable
#

you dont have the scroll lock on?

olive sable
#

or well, not lock but the clicky thing

trim valve
#

i don't like how much effort it takes to scroll it

rough bloom
opaque wharf
olive sable
#

it doesnt take much effort to me, but then again i have big hands

midnight sigil
#

oh hey look at what I've found

trim valve
#

I'm used to a trackpad

#

so like any effort is more effort

#

(also the superlight I usually use scrolls really lightly)

olive sable
#

lua is haunting me VedalNotLikeThis

olive sable
tender river
# sage crag ee oo ee oo

have you tried thinking less like me its very fun neuroPogHD
the process is as follows
thoughts neuroSadge -> delete thoughts -> neuroPogHD

trim valve
#

ok but superlight is referring to weight not the scroll wheel lol

olive sable
#

no metal, less innertia

#

i cant use superlights, the g502 is still too small for me.

#

but i dont have many other options

#

palm grip is physically impossible for me

opaque wharf
#

Try spacemouse then

olive sable
#

wtf is that?

#

that aint no mouse

opaque wharf
#

Well, the name is mouse lol

olive sable
#

thats a goddamn dashboard

stray dragon
#

graphing calculator for aliens

olive sable
#

whatr was i doing again?

stray dragon
#

C++

olive sable
#

oh ye C++ clang thingy

dense cosmos
midnight sigil
olive sable
#

it probably can

opaque wharf
#

I forgot who the manufacturer is but you can also search vertical mouse style

dense cosmos
#

What

olive sable
#

i dont think i could get used to vertical mouse

#

or it would need to be enormous

#

i have big fingers

midnight sigil
opaque wharf
dense cosmos
#

I want a keyboard I can strap to my wrists somehow

opaque wharf
dense cosmos
#

That way I can type in vr with some kind of speed

olive sable
opaque wharf
stray dragon
trim valve
#

make a vr controller with a bunch of buttons like that one razer mouse

olive sable
#

i dont speek vertical lines

opaque wharf
#

You type using the different finger movement

midnight sigil
stray dragon
#

ffs caibi

midnight sigil
olive sable
dense cosmos
pastel nymph
olive sable
#

no no, thats the or operator

#

not vertical line

stray dragon
opaque wharf
#

You can choose either this one

trim valve
#

actually on that you could do phone keypad-like typing

opaque wharf
#

Or this one

olive sable
stray dragon
#

i must have been asleep

midnight sigil
opaque wharf
#

Look, BTMC

olive sable
dense cosmos
opaque wharf
dense cosmos
#

It exists!

stark needle
#

just why

opaque wharf
#

See, I know It wasn't a fever dream

opaque wharf
olive sable
#

why are we still here, just to ;?

rough bloom
opaque wharf
#

I know all kind of wack peripheral because I developed one for something

dense cosmos
#

Hmm, wonder if I can still fit the triggers plus analog stick in there somehow

opaque wharf
#

There's also the usual suspect of straight up control panel used by professional audio engineer

dense cosmos
#

Maybe make it hot swappable?

olive sable
opaque wharf
trim valve
#

I have never figured out how to wrangle msys2 into working

olive sable
#

but why did konii make me install it then?aquacry

trim valve
#

if you can make it works its very useful

olive sable
#

omg they have pacman

trim valve
#

I do not know how to make it work

tight tinsel
#

I wonder how a trackball mouse works with osu

olive sable
#

you cant copy paste in their terminal catdespair

dense cosmos
#

what is mysys2?

opaque sigil
#

i told you to use clang for a reason neuro7

opaque wharf
#

Go with Toast suggestion

#

Clang

olive sable
#

whats th diffrence?

opaque wharf
#

Big

opaque sigil
opaque wharf
#

One is full blown foreign environment

olive sable
#

is unix linux?

dense cosmos
#

Ah, I see

opaque wharf
#

Other is a piece of software compiler

opaque sigil
#

yes

olive sable
#

nooooooooo

rigid snow
rough bloom
olive sable
#

cuz pacman is yellow and good nom nom

opaque sigil
#

the idea is to use msys2 as an environment to install a compiler that can output binaries for windows

opaque wharf
#

True, I love seeing them noming when I do sudo pacman -Syu

opaque sigil
#

it works but it's also so needlessly complicated

rough bloom
olive sable
#

i kinda dont wanne do linux so away wsys goes

opaque sigil
#

llvm (clang) thankfully has an installer you can use to install it

olive sable
#

what is a llvm?

opaque sigil
#

and then clang should show up as available in the terminal

#

the project that clang belongs to

rigid snow
#

i don’t remember how but i have msvc in my path

#

without the separate terminal

opaque wharf
#

They make a lot of different product

#

For free

dense cosmos
#

If developing on windows I just use Visual Studio for cpp

rough bloom
olive sable
#

im sold

opaque sigil
#

llvm is the whole suite of tools for making/working with compilers and clang is their reference compiler basically

opaque wharf
# rough bloom this (real)

Ubunchu! (うぶんちゅ!) is a comedy manga serialized in ASCII Media Works' Weekly ASCII and Ubuntu Magazine Japan between May 2008 and June 2013. Its name is a play on words combining the Linux distribution Ubuntu and a Japanese onomatopoeia for a kiss, chu (ちゅ).

dense cosmos
#

I don't have to mess with cmake or project setup in visual studio

opaque sigil
#

i'd rather spend some time configuring a build system that be forced to use visual studio ima be honest

olive sable
#

the clang install page is ass ngl

opaque sigil
#

hell i'll even take no build system over visual studio

#

i literally sent you the installer

olive sable
#

i like vscode, i despise vs

opaque sigil
#

it's on github

dense cosmos
#

Why, what's wrong with vs

#

It works

olive sable
opaque sigil
#

works is a very generous word from my experience

rigid snow
opaque sigil
#

everything is so incredibly sluggish

#

it feels like i'm on a 2gb ram dual core cpu

opaque wharf
nocturne olive
#

Guess what I'm gonna be programming today?

olive sable
#

thanks

olive sable
dense cosmos
#

Hmm, haven't run into that issue myself

opaque wharf
dense cosmos
#

Maybe I just haven't programmed in giga size projects

opaque sigil
#

you want LLVM-20.1.6-win64.exe

nocturne olive
# olive sable soup?

No, a parser such that we can use premade stuff to convert one project file to another project file to then export it as a script type to then convert that to a file that can be used as a dataset transcript

#

The parser I'll build will do the final step

#

Converting the script file to a dataset transcript

opaque sigil
olive sable
#

that sure is a sentence

opaque wharf
rough bloom
# opaque wharf

.tar when distributing for Windows 💀
at least the new explorer archive stuff should support that now

nocturne olive
opaque sigil
#

we want the installer

olive sable
#

which one is that?

opaque sigil
#

neither

olive sable
#

fucj

opaque sigil
olive sable
#

oh its collapsed

#

show all 63

opaque sigil
#

yeah there's a lot

rigid snow
opaque sigil
#

they package all the projects individually too

#

alongside their signatures

opaque wharf
#

Monorepo is all the rage

olive sable
#

so what now, i insatalled it

#

oh i need to deleted the .vscode files

dense cosmos
#

What's itanium

olive sable
#

ok it works now neuroHypers

rigid snow
dense cosmos
#

Cool

olive sable
opaque wharf
#

Do you have cats?

olive sable
#

no

opaque wharf
#

Boooo

olive sable
#

i have dogs, frogs, fish, and a guinea pig

rough bloom
olive sable
#

i guess dragonflies too, but idk if that counts. they're part of the pool

opaque wharf
#

You should have dog, cat, frog, fish, and guinea pig

dense cosmos
olive sable
#

cats are ok, but i dont like cat owners

opaque wharf
dense cosmos
stark needle
rough bloom
# dense cosmos That sounds like a lot of work

it's not supported upstream by the main GCC developers
the vendors just take some random GCC version and port that exactly once
then that's the single vendor-approved ™️ compiler that works for that processor

opaque sigil
#

the people that use them

opaque wharf
dense cosmos
#

Oh right that makes sense

opaque wharf
#

If they ever stop maintaining that, then the community

#

When community dies out and you still use some old CPU. My brother in christ, do upgrade please

#

Or you maintain it yourself. Thats a choice too

dense cosmos
#

I wonder how many people run builds over a decade old

opaque wharf
olive sable
#

more than i am willing to accept

dense cosmos
#

Mine is already halfway there, and I intend on upgrading soon as I get the chance

dense cosmos
olive sable
#

no

#

a top of the line pc from 10 years ago is already slower than todays entry range pc's

opaque wharf
olive sable
#

true

dense cosmos
#

Hmm, can also turn it into a server or smt

#

My friend does that with his old laptops

olive sable
#

i did thaty for a mc server before

trim valve
#

that reminds me

#

mildly tempted to get an old thinkpad for a linux laptop

opaque wharf
#

One of the wacky input. Leap Motion

trim valve
#

but like I already have my trusty windows laptop so idk if I'd use it

dense cosmos
opaque wharf
dense cosmos
#

Huh?

#

How does that work

opaque wharf
opaque wharf
olive sable
#

they reinvented th kinect neuroNOWAYING

stark needle
#

Maybe the motion 2 is good

dense cosmos
#

I like the idea of furiously gesturing at your system to get it to do things

stark needle
#

But the 1 was so bad

opaque wharf
stark needle
#

i have one it's rly bad

#

Only for vtuber software it's good ish

opaque wharf
#

I forget which version I have. I basically got it from my former employer when doing RnD. My boss just said keep it

dense cosmos
#

Nice, free stuff neuroHypers

opaque wharf
#

Never used it again lol

rigid snow
opaque wharf
olive sable
#

spacebar heater? neurOMEGALUL

stone cedar
rough bloom
#

YES spacebar heating is an absolutely critical feature

dense cosmos
#

For a moment I thought you were talking about repurposing the cpu as a heater

opaque wharf
rigid snow
opaque wharf
rough bloom
dense cosmos
#

Okay I got bamboozled again I thought it was a heater under the space key

olive sable
#

you know how vscode changes the colour of certain words depending on if its a function or whatever?
why is it so bad for C++?

stone cedar
opaque wharf
olive sable
#

yes

opaque wharf
#

Toast, does vscode autoconfig the LSP when using clang?

opaque sigil
#

It should

dense cosmos
#

I know my syntax highlighting died when I was programming in .cu files

opaque sigil
#

The c++ syntax highlighting just sucks

opaque wharf
#

What extension did you install Sam?

opaque sigil
#

I don't think there's much you can do about that

opaque wharf
#

Did you install the Clang one?

olive sable
opaque sigil
#

do yourself a favour and use the clangd one

rigid snow
opaque wharf
olive sable
opaque wharf
#

Disable/uninstall this one

#

It'll conflict otherwise

olive sable
#

i did

opaque wharf
#

Toast have you used that?

opaque sigil
#

i think i do have that installed but idk if it actually does anything ngl

#

worth a try at least

olive sable
#

it seems to be working

#

altho its suggesting some stuff im not seeing in the tutorials

#

idk why i need to put val: but sure

#

wait that snot even a suggestion, its just ghost text?

opaque sigil
#

inline type hints

olive sable
#

i dont get it

opaque sigil
#

is val the parameter name menherathonk

olive sable
#

idk

#

__val apprently

opaque sigil
#

if you don't like it then you can turn it off via
"editor.inlayHints.enabled": "off"
in the settings.json

brisk laurel
#

Chat should I stop studying code and IT stuff and go for a different career instead?

olive sable
#

idk

#

gota love Csharpsharp tho

brisk laurel
olive sable
#

idk, i dont use Csharpsharp

rigid snow
olive sable
#

i dont even know what the s are supposed to stand for

rigid snow
#

cascading style sheets

#

?

#

is that what you mean

dense cosmos
brisk laurel
#

like is python the best way to start learning code?

dense cosmos
#

It wasn't for me personally

opaque sigil
#

no it's clearly php

#

duh

rigid snow
#

yes, python home page is the best way vedalYes

dense cosmos
#

I enjoyed starting with c

#

When I tried python for the first time I remember being frustrated because I didn't understand how any of it worked

olive sable
brisk laurel
rigid snow
opaque wharf
#

My first language is VBScript, then Bat scripting

ruby timber
olive sable
#

dudududududududududud batman

ruby timber
# ruby timber Same!

Then again I barely have a year of experience actually learning it full time but oh well

olive sable
#

why does c++ not have print?

ruby timber
#

It does

rigid snow
#

oh boy

ruby timber
dense cosmos
ruby timber
#

It has print.s

olive sable
#

well yes i know

stone cedar
#

or puts, or printf

opaque sigil
#

std::print exists now

ruby timber
opaque sigil
#

(you'll never get to use it anywhere serious within the next decade cause c++23)

dense cosmos
stone cedar
olive sable
#

wait, where did the run button go? does clangd not have that?

ruby timber
#

I haven't used it for long enough to form an opinion, so you might be right one that one

brisk laurel
opaque sigil
#

i'll never get over the fact that c++'s hello world uses operator overloading

olive sable
#

what?

dense cosmos
opaque wharf
dense cosmos
#

autocorrect SMH

opaque wharf
#

Its called operator overloading

brisk laurel
rigid snow
opaque wharf
#

Yes, but consider 5 << 7 will output

olive sable
dense cosmos
#

-# I like operator overloading tho

opaque wharf
#

Then why consider why cout << "Hello world" work using the same <<

opaque wharf
olive sable
#

where did the run button go? welpsagiri
it was there a sec ago

stone cedar
#

Format a float with leading zeros and max 3 digits after the dot in iostream requires an additional header and putting some weird formatting object in between two <<'s
I think that's ugly and cumbersome for zero other benefits other than "it's not the c way"

opaque wharf
#

0000000000101 << 7 = 1010000000

rigid snow
dry charm
#

I mean operator overloading requires context, like how it is used like in C#. += is used in events to denote adding a callback to it lol

opaque sigil
#

you're shifting a value onto a stream

#

it makes sense but still

#

why do i now have to check every god damn operator for whether or not it allocates memory because for all i know it could do so

#

WHY

rigid snow
#

<< isn’t to “shift a value in”

opaque sigil
#

it does if you want it to

dry charm
#

I always just view it as "ehh, you have a big funnel, tunnel this stuff into the other stuff" LULE

opaque wharf
#

Hoo boy, you know its gonna be good when several people are typing lol

opaque sigil
#

yea

dense cosmos
#

Would you like it if the operator was <<< instead

opaque sigil
#

no

dense cosmos
#

So no ambiguity with bitshifting

brisk laurel
rigid snow
#

why do we have an operator in the first place

opaque wharf
rough bloom
opaque sigil
#

<<< is valid cuda

#

well sort of

#

not as an operator

dense cosmos
rigid snow
dense cosmos
#

I mean <<< bleh >>> is cuda

opaque wharf
#
MDN Web Docs

The unsigned right shift (>>>) operator returns a number whose binary representation is the first operand shifted by the specified number of bits to the right. Excess bits shifted off to the right are discarded, and zero bits are shifted in from the left. This operation is also called "zero-filling right shift", because the sign bit becomes 0, s...

rigid snow
rough bloom
brisk laurel
dense cosmos
#

At least I don't think so

rigid snow
rough bloom
opaque wharf
#

APL my beloved

rigid snow
#

idk where that originally came from but "i like "."this"

dense cosmos
#

stringstream and you can use the beloved << with strings outside of IO

opaque wharf
#

Or BQN if you're poor

rigid snow
#

no way it is

#

there’s zero originality in php

stone cedar
dense cosmos
#

. Is already used for accessing class members tho

opaque sigil
#

what about "i like " "this" neuroPogHD

opaque wharf
stone cedar
#

also valid c/c++

dense cosmos
#

What

stone cedar
#

but only works for string literals

dense cosmos
#

How

rigid snow
#

let’s just leave the concat op as + ok

opaque wharf
#

Because you know both value at compile time

opaque sigil
#

it's nice for when you need weird format specifiers so you can put them in a macro

dense cosmos
#

I mean I figured compiler would just yell at you for syntax error

opaque sigil
#

nah it's part of the standard

opaque sigil
#

python has the same thing btw

opaque wharf
#

Wait they did? I never know that lol

dense cosmos
#

Cursed knowledge

opaque wharf
#

I just use fmt like normal

tender river
opaque sigil
#

mhm

tender river
#

oh you mentioned it

#

anyway i like strlit concatenation and i dont care if its done using concat!() or sequencing

opaque sigil
#

i wonder if there's an actual reason or if they just went "well we already write this language in c, why not bring this over"

tender river
#

though its arguably useless in python

opaque sigil
#

i guess splitting up long strings this way is kinda nice

tender river
#

you just have to remember to use ( since its python

dense cosmos
#

I don't like that // thing you need to do for multiline macros

#

Not //

tender river
#

\

dense cosmos
#

Yea that

#

Makes it less readable

opaque sigil
#

just put them at the end of the screen

#

or rather, the formatter should

warped narwhal
dense cosmos
#

I suppose

maiden geyser
opaque wharf
#

ELIV IS LIVE YEAH

#

I just realized evil is live read backwards....

maiden geyser
#

it's so over

tender river
#

i thought its my vpn or somethnig

#

well at first i thought its noscript

#

but disabling it didnt help

opaque sigil
#

let me upload my macro example ReallyMad

opaque wharf
gaunt smelt
drowsy ocean
#

I hate my internet

opaque wharf
#

We did it boys. We DDoS-ed Discord

tender river
#

i should consider not spilling tea every week

opaque wharf
tender river
#

im not anny

#

wait

#

neuroSus my name is suspiciously similar

inner pike
#

i despise the windows volume mixer with a burning passion, i have gotten earraped by it several times already because it keeps fucking resetting

opaque wharf
#

To what? Tea?

tender river
#

does tea spilling come with the name please i dont want that vedalBwaa

inner pike
faint sandal
#

i think more than the discord cdn is down right now

olive sable
faint sandal
#

i tried to raid moments ago and Twitch was returning server error

#

at least the chat still works

inner pike
faint sandal
#

inb4 cloudflare

opaque wharf
olive sable
#

yep

opaque wharf
#

Please toast

#

I'm on mobile lol

opaque sigil
#

the cpp reference would like to disagree

olive sable
#

?

opaque sigil
#

idk what 13.2 could even be

opaque wharf
#

No, there are no C++ 13.2 sam

olive sable
#

no embeds?

opaque sigil
#

no embeds no attachments

opaque wharf
#

The C++ 14 refer to the language standard version. The 13.2 is the compiler

#

Like python have python 2 and 3. Each with sub version

olive sable
#
PS C:\Users\vanma\OneDrive\C++> c++ --version
c++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
opaque wharf
#

Yeah, think of it like that

opaque sigil
#

oh you're using gcc

trim valve
#

huh I did not know that alias existed

opaque wharf
rough bloom
olive sable
#

print doesnt worka nyways so idk

opaque sigil
#

ah

#

c++23 was implemented in gcc 14

#

it's coming together

olive sable
#

#include <print>
does not work

trim valve
#

that is indeed correct

noble zodiac
#

its in stdio

opaque sigil
#

scratch trying to use std::print

#

just use printf

olive sable
#

ok

noble zodiac
#

I was about to say, who uses print instead of printf

opaque sigil
#

c++ people

#

actually

noble zodiac
#

nahh, frick that and use printf

tender river
#

cout is used in competitive programming

olive sable
#

oh, were back

opaque sigil
#

what is the difference between the two anyway

olive sable
#

idk

opaque sigil
#

i never looked super deep into the new print/format stuff

#

either way just use printf and be done with it

noble zodiac
#

apparently print got just introduced in c++23 and is a new thing

faint sandal
#

i think the cdn is back?

opaque sigil
#

oh i guess std::print has some extra type safety and more stuff you can do with the formatting + custom formatters

tender river
#

then again competitive programming just looks like this

void solve() noexcept {
  RD(I, n);
  V<I> b(n);
  Ar<I,19> cnt;
  fill(ALL(cnt), 0);
  FOR(i,1,n) {
    cin >> b[i];
    b[i] ^= b[i-1];
    FORK(19) {
      if (b[i]&(1<<k)) ++cnt[k];
      if (i&(1<<k)) --cnt[k];
    }
  }
  I val = 0;
  FORI(19) if (cnt[i]) val |= 1 << i;
  FORI(n) b[i] ^= val;
  return prn(b);
}
worldly plank
#

What language is that?

tender river
#

c++

noble zodiac
#

competitive programing is for people whose first phrase of the day is "well akschually"

#

and that each and every day

olive sable
#

i dont like how competetive programming looks

tender river
#

competitive programming is fun but like any competitive thing it takes a lot of time to get good at

gritty dust
olive sable
#

look at chayleafs message

stark needle
#

mfs who solve google interview in 3.1425 seconds

#

at O(log n)

rigid snow
#

why is the whole internet dying what happened this time

opaque sigil
#

just a casual thursday innit

#

looking forward to the cloudflare blog post OK

rigid snow
#

about what even

#

it can't be an issue with their infra

opaque sigil
#

well given their status page is all red

rigid snow
#

did like a backbone isp blow up or something

opaque sigil
#

something high up the chain is definitely wrong

opaque sigil
#

given that both gcp and aws too have some partial outages from what it looks like

rough bloom
#

Cloudflare too, somehow

rough bloom
#

they recovered

rigid snow
#

well yeah aws gcp and cf are all separate entities with 0 reliance on each other

trim valve
#

oh damn cloudflare is much more red than when I last checked

rigid snow
tender river
opaque sigil
tender river
#

well you're free to count how much this code uses it

opaque sigil
#

is there a practical reason for minifying the header

#

as in, are there size limits in place

tender river
#

there are

#

the other reason is i dont want to look at it

opaque sigil
#

i see, makes sense then

tender river
#

still pretty long with all the macros

sour harness
#

I just walked backwards from RFORI and it'S horrifying

#

Wait, are you saying a spoon is a reverse fork?

tender river
#

it is

#

(i only ever had to use RFORJ)

faint sandal
#

I love spooning mhm

olive sable
#

???

drowsy ocean
#

wrong discord server reply

olive sable
#

ah

uneven pulsar
drowsy ocean
#

pc lagging due to unity and game updating and downloading

olive sable
uneven pulsar
olive sable
drowsy ocean
sour harness
#

So Mistral released their new reasoning model Magistral. Gave it a shot with my "hello world" prompt of around 3k tokens. It's fast alright, but incredibly chatty:Model loading time: 3.30s Time to first token: 0ms Characters generated: 23755 Characters per second: 238.33 Tokens generated: 4611 Tokens per second: 79.44 Average characters per second: 428.60 Average tokens per second: 83.19

#

and it got the output format wrong that I required.

hoary lion
nocturne olive
bright scaffold
#

I want to install something on Arch Linux with i3 6100u and igpu

#

But idk what

opaque sigil
#

pacman -Syu <package>

bright scaffold
#

Im about gui

opaque sigil
#

i can't read

#

then idk

bright scaffold
#

Idk what i want to install

sage crag
sour harness
#

If you are on Arch and not running some tiling window manager like hyprland or i3, can you even call yourself an Arch user?

sage crag
#

yes

bright scaffold
opaque sigil
#

sounds like you want hyprland

bright scaffold
#

But I don't have much time to set all this up from scratch.

sour harness
#

Yeah, hyprland is probably what you want for cutomizability

bright scaffold
sage crag
opaque sigil
#

only one way to find out

sage crag
bright scaffold
opaque sigil
#

if you want there are some preconfigured setups on the hyprland site you could take as inspiration

sage crag
olive sable
#

big oops, my bookmark bar has slight dox info

sage crag
#

but then again, its not going to be as lightweight as the other options

olive sable
#

attempt 2
i got wasm working neuroHypers

nocturne olive
#

WASM compilation of C++?

#

What build system?

sage crag
#

emscripten

olive sable
#
emcc test1.cpp -o test1.html
npx http-server . -o -p 9999

NODDERS

nocturne olive
#

Well, time to make it a game engine

olive sable
nocturne olive
#

Silly

#

Well, I guess will be interesting to see how porting the game engine goes this time