#programming
1 messages · Page 40 of 1
what's saying that isn't already what happens here
clearly hblang was hallucinated by an llm and doesn't really exist 
and in the end, they'll all agree that binary machine code is the most efficient
what is that??
who the hell needs compilers and interpreters when you can write everything in binary 
BROOO HOW DO I EVEN IMPLEMENT THIS IN BLENDER
just gotta wait for volunteers data labelers to map a lot of 0s and 1s to their intended function within the context of a software

just attach the script
me enjoying my text based ultrakill game on a java terminal
Nice lol
I am 
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 ?
There's prompt guard from Meta. I think it's part of the Llama4 release?
Never tried it though.
Time to finetune the model, yay
Hopefully you're prepared with a lot of GPUs
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.
But yeah, basically this https://huggingface.co/meta-llama/Llama-Prompt-Guard-2-86M
nah finetuning an LLM to decline advances isnt very effective
often times it'll either ruin performance on benchmarks or just be persuaded in a long conversation
that's why guardrails exists
https://ai.google.dev/responsible#protect
https://huggingface.co/meta-llama/Llama-Guard-4-12B
- prompt guard from sui
Just some examples of guardrails etc ^ (nothing in specific)
Who wants to gamba with me?
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

tbh everything like that will be a constant since n is determined
and aktually it's n // 2
Doesn't it depend on a language?
Most of the languages I know / on ints is already a floor division
Why is it 30C today? 

Python needs //, but thats just classic python
I was thinking about this and that llm is exactly what I need, thanks a lot!!!
Is it not 30C over the north sea?
Why not?
yes, but not python
so we use // to avoid confusion sometimes
Will python convert the result to float if you do /? I don't remember 
I mean, it's understandable since python is super high level and uses arbitrary precision by default
yes
>>> 1 / 2
0.5
you do n / 1 and you'll get n.0 as well iirc
oh yeah 1/1 gets 1.0 back
no it'll actually be 0.50000000067 👍
HOLY my god I finished my physics RST and I feel like I'm cooked holy fuckkk
Thats why I like statically typed languages more mhm
literally copied it 1:1 from my repl smh
smh r/swoosh
also unless I'm stupid 0.5 is actually trivially representable with a float
0.1 
0.1 isnt a power of two

it literally is
yea it's 0.1
0.1 as in binary
ik ik smh
seems reasonable
I heard about that and I hate it
While python have Fraction
has nothing to do with constants
Why?
because compile time computation results dont match runtime computation results
yeah that
Yeah, I'm just stating that python have fraction man. Other language that I use day to day doesn't come with it
that's, not cool
But this is news to me. Why?
because go doesnt use ieee floats at compile time, as i stated above
I don't think that's what chayleaf is referring to
What, then how will that result in different computation?
I'm guessing different interpretation of floats for two stages?
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
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
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
imo I like the idea of compile time fractions existing but don't like that its implicitly used instead of floats
Yeah, fraction have its use but non standard real number representation by default is not cool
so they should probably make it a type?
I assume from the wording it already is an existing type
go and types? we don't do that around here
idk enough about how go works but a type that can be compile time cast to float would be neat
Since IEEE math don't have properties of real math
Well, "real" as in standard ZFC math
I'm not familiar with golang's community, so why is that 
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
wdym you dont like if err != nil
fair but the part of exceptions i like is stack traces
god I hate exception style error handling
only arrays and hashmaps were generic and that was built into the language
Unless for validation in high volume web server. Capturing stack every time invalid data occur is degrading performance
yeah, Go is all about keeping the language as simple as possible
if a feature is useful or not doesn't matter if the goal is to not have features
but also unlike C there was no macros
Wasn't Interface {} a thing from the start?
i think some people resorted to code generators
I think they just added any as an alias way later
that's like calling void* generics

Here we go again
ehh then I think it's alright tbh. So there were still int, char and stuff right

having to go through this thing every time is very annoying
use clang
use wsl
what is a clang?

use msys2
no we're not using linux today
You mean cmake?
what is msys2?
Or literally install clang?
clang has its own win variation no?
c/c++ compiler that actually works on windows too
yea
rustup fixes this (for Rust of course) 
there's gcc via msys2 too but eh that's annoying
stop trying ot get me to use rust.
either i use rust with the brackets i like, or i dont use rust
there is no 3rd option
i use rust with the brackets i like
that's fine, you can probably configure rustfmt like that
-# still looks bad though
You can use rust, and set you rustfmt too then ignore #programming
I remember messing with msys and gcc just to get my C-x86asm workflow to work
i will not format it

wdym by the brackets you like
Bracket on newline instead of inline

last time they complained about it so i just switched to C++
That was a fun time
he just hates well-formatted code, apparently
having the brackets on my 3rd monitor doesnt scream well formated to me
???
???
im jjoking relax
for clang
it's hard to tell at this point
I was waiting for another onedrive repo shenanigans
i mean that its easier to see where a function starts and begins if they're on the same vertical line to me
Actually, I wanted to ask. Is there an easy way to initialise c# project? Kinda like go mod init does?
dotnet new or something?
no
thank 
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
i hate pretty much all of these besides allman
I still dont get whats wrong with rusts brackets
sticky lines is the best feature they added in years
#programming attack this guy
they already have bro

i left the server for 15 hours
Do try to enable "editor.guides.bracketPairs". It'll change you

sticky lines make me want to explode my code editor
I think I rely pretty much entirely on indentation
it's fine as long as stuff isn't nested too deeply, which is bad anyway
Yes
i use bracket pair colours
rainbow brackets is one of the best plugins
Thats just default IIRC. But the guides is another thing
oh hey it's me
but it does tho..... Im so confused
yes i hate the guides
too much stuff on my screen

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

-# 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
oh I forgot to reenable it when I reinstalled
"that mess" 
nah im stickign with C++
they appreciate me
they accept me for who i am
Because pairing the sam style code with the guides is godsend to me
wait hm its actually way less helpful with this theme
winner belongs to python, it's indentation sensitive and doesn't have brackets unless for objects 
thank you spotify I really like how you decided to play my music over remote desktop instead of on my local device
very cool
i suggested scala 3 but apparently that's not enough brackets 
I hate language that use space for semantic meaning with a passion
i started with python, if python was fast enough to do my things we wouldnt be here to begin with
Just look at this beauty highlighted line on the left
it causes semantic whitespace which is horrible, but I do like the side-effect of enforcing proper indentation
maybe the single good choice Python has made
just get good at spotting the brackets yourself
ughhh syntactic sugar
just let the LSP add imports and then never look at them again 
(this only occasionally bites me in the foot when I need to fix massively nested brackets)
or just make it so you dont have to do that.
this is litteraly stockholm syndrome
Space is for human, not computer!
but rustfmt usually manages to add indentation before it becomes a real problem
I dont use rustfmt, be freeee
it's very aggressive about adding newlines
meh but I don't want more underlines
they have meaning when you're doing rust and I don't want to confuse them
"them"? 
scala 3 looks like python had a kid with kotlin, and kotlin no longer have fun
tbh I could just change the bracket colours and it'd probably be less of an issue


can you give a graphical example
(spoiler answer 4 is for psychos)
hard to say, depends on your font size
have you seen my devious list comprehensions?
ofcourse if its cuz of indentation you should use a function
120 is the width of my ide so that is what I use
in very specific cases they fight and make it more confusing
this is worse if its the blue brackets instead of the pink ones
unless you're dealing with a coding standard, line length doesn't really matter if you know what you are doing
i default to 80 because anything else on a 14" laptop is a pain
having a line length stops annoying people from onelineing everything
I lambda everything I see
clearly you have never dealt with Rust iterators 
you can lambda in multiple lines
but I choose to do it in one line 
Is this the guide from vscode? You can disable the horizontal one you know
oddly enough function declarations is the only thing where I put everything in a single line
And me with vertical monitor
line length depends on language style guides
is there a style guide for c/c++
there's like 50
You just saw 6 of them at least
follow NASA's coding standard if you want 
and obviously 72 for emails
write like yoda?
i personally don't go over 1 character per line

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'))]
same, mostly because when a function has enough arguments that the line is that long, it ends up being very long when unwrapped
in practice I still trust in the formatter though 
based
the linux kernel has 80 which I can respect, but also 8-width tabs, which I dont respect at all
now you mentioned it, is that actually possible
please gain a relationship with a formatter
at least they have a standard 
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")
)
]
in bf maybe, probably not for a lot of langs though
I hope there's a language out there allows us to do 1 chr per line 
that would require getting a relationship, which we all know isnt likely
you already have one with Python
we broke up
is it a sign if this is the first thing i see when i open this channel
I also thought of bf, but there's actually loops and stuff in bf, only doing > and < would have no practical use
i just need someone who's willing to move a litle faster. python is slow asf
yeah but loops every bit of syntax is just one char right?
yes
I mean, yea
unless newlines have semantic meaning in bf
you can do it vertically
p
l
e
a
s
e
;
now the brackets will have to be on a newline 
vertical #programming messages pogs
i love this style
Lua 
I searched, google says no, I guess we found the solution 
isnt that the roblox one?
the a in lua stands for AAAAAAA
moonlight you silly program that computer is you
I transpose
why would i remote desktop to myself
the language is not by Roblox but yes, Roblox happens to use Lua
(or rather some weird variant of it but whatever, same thing)
#bingo
lua was slower than python i thought
it's luau
there's luajit

maybe with the default interpreter thing, but LuaJIT exists
i see
this made me realize that its possible to write C with 2 characters per line 
i think so
both
but commonly jit'ed as well
it's interpreted in the same sense that Python is
ah yes, both
luaji t
hi konii
hi T
hi t
hi
hi chayleaf
hi bred
hi bred
hi konii

what have i started

n^2 my beloved
lmao
I see react button I press
nueron activation
I sqrt you
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
phrasing
cough cough
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
we dont have the 5th here but i still plead it
what is the fifth
right to remain silent
the thing after the fourth
idk anything about American law thingy
es queue arr tee
sqrt is a more byte efficient way to say it
generally its a number
bravo
ah yes, as opposed to √
the only game i have that uses lua (and i know it uses lua) is civilization 5 and it's a mess in terms of stability and optimization, i guess i just have a bad impression
i forgot how easy it is to drag click on the g502
i read it as "skw"root
"Pleading the Fifth" refers to a clause in the fifth amendment in the US that protects people in court from self-incriminating testimony
x^½
there's so many games using Lua because it can easily be embedded
Roblox was already mentioned, I'm pretty sure that can run on a potato 
you'd be suprised with some games
i just need it to:
- embed in itchio
- work with webgl
- if it uses { i want it on a newline
those are the only requirements
which is why im going C++ for now
we tricked a potato into thinking
sounds like JavaScript

ok 4 requirements.
4. it cant be javascript, i hate jqavascript
sam have you considered a rustfmt.toml that looks lke
brace_style = "AlwaysNextLine"
control_brace_style = "AlwaysNextLine"
Unity with C#
unity would be a game engine
embed in itchio
definitely works
work with webgl
uuuh surely this exists
otherwise you'll just have to write bindings yourself
if it uses { i want it on a newline
it only uses them for tables I think
you can put them on a newline for that
im gona do that part. no game engines please
typescript 
get out
lmfao
i keep forgetting that if I leave my mouse wheel free spinning it keeps spinning when i move my mouse
you still talking about lua?

there's xlua but it's based on unity 
why are wer still doing this? i already said i was doing C++
Is emscripten still the way to go to use webgl with c++ or is there something better now?
Well, c# default format is { on a new line (but could be both)
sorry i'll just disengage (you were listing requirements though)
im gonna do C# in 3 months in school anyways so i felt like i shoudl learn something else for now
it is mandatory to suggest the least usable languages possible
i wouldnt call it unusable at all
that is true, but the message after that said i was gonna do C++.
C++ bad
also it's funny to see your reaction to new languages
ok true
ee oo ee oo
TypeScript
i am heavily biased on how the language looks to me
have u tried a blindfold
What tf is your mouse wheel made out of?
ye, thats fair
you dont have the scroll lock on?
Yep, it still is
or well, not lock but the clicky thing
i don't like how much effort it takes to scroll it
btw didn't you want to use C instead of C++ yesterday?
why did it change 
No wait, WebGL? You can use the API directly from JS
it doesnt take much effort to me, but then again i have big hands
oh hey look at what I've found
I'm used to a trackpad
so like any effort is more effort
(also the superlight I usually use scrolls really lightly)
lua is haunting me 
i mean ye its a superlight lmao
have you tried thinking less like me its very fun 
the process is as follows
thoughts
-> delete thoughts -> 
ok but superlight is referring to weight not the scroll wheel lol
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
Try spacemouse then
Well, the name is mouse lol
graphing calculator for aliens
whatr was i doing again?
C++
oh ye C++ clang thingy

this looks like it can run Doom
it probably can
I forgot who the manufacturer is but you can also search vertical mouse style
What
i dont think i could get used to vertical mouse
or it would need to be enormous
i have big fingers
never tried it, but someone says it helps with wrist tension in osu, kinda cool
You're gonna love glarses keyboard then. It's 6' something long
I want a keyboard I can strap to my wrists somehow
It does helps alleviate some strain yes
That way I can type in vr with some kind of speed
is that feet or inches?
I swear to god I saw that one before
feet
make a vr controller with a bunch of buttons like that one razer mouse
i dont speek vertical lines
You type using the different finger movement
feet? where
ffs caibi


Which razor mouse is this, I wanna see
this one
xdx |
| ||
|I |_
You can choose either this one
actually on that you could do phone keypad-like typing
Or this one
i posted this already yesterday lmao
finally having F24
Look, BTMC
Here's my exploration for a wireless arm-mounted keyboard idea. 3d Printed, Hand wired, Runs on ZMK.
Read more here: https://adamleblanc.page/portfolio/schist01/
YES, YOU FOUND IT
It exists!
just why
See, I know It wasn't a fever dream
Why not?
why are we still here, just to ;?
questionable practicality but I think it looks awesome
I know all kind of wack peripheral because I developed one for something
Hmm, wonder if I can still fit the triggers plus analog stick in there somehow
There's also the usual suspect of straight up control panel used by professional audio engineer
Maybe make it hot swappable?
how do i use this?
For the sake of your sanity, you don't
I have never figured out how to wrangle msys2 into working
but why did konii make me install it then?
if you can make it works its very useful
omg they have pacman
I do not know how to make it work
I wonder how a trackball mouse works with osu
you cant copy paste in their terminal 
what is mysys2?
i told you to use clang for a reason 
whats th diffrence?
Big
unix environment for windows
One is full blown foreign environment
is unix linux?
Ah, I see
Other is a piece of software compiler
yes
nooooooooo
probably comparable or even worse to a laptop trackpad
why do you like pacman but refuse WSL
cuz pacman is yellow and good nom nom
the idea is to use msys2 as an environment to install a compiler that can output binaries for windows
True, I love seeing them noming when I do sudo pacman -Syu
it works but it's also so needlessly complicated
C++ in a nutshell
llvm (clang) thankfully has an installer you can use to install it
what is a llvm?
and then clang should show up as available in the terminal
the project that clang belongs to
For all intents and purpose, treat LLVM like a company
They make a lot of different product
For free
If developing on windows I just use Visual Studio for cpp
this (real)
im sold
llvm is the whole suite of tools for making/working with compilers and clang is their reference compiler basically
Real and true https://en.wikipedia.org/wiki/Ubunchu!
I don't have to mess with cmake or project setup in visual studio
i'd rather spend some time configuring a build system that be forced to use visual studio ima be honest
the clang install page is ass ngl
hell i'll even take no build system over visual studio
i literally sent you the installer
i like vscode, i despise vs
it's on github
then where the fuck am i?
works is a very generous word from my experience

Guess what I'm gonna be programming today?
thanks
Hmm, haven't run into that issue myself
Maybe I just haven't programmed in giga size projects
oo ee oo ee
you want LLVM-20.1.6-win64.exe
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
not even that, it's the same with empty projects for me
that sure is a sentence
Oh, I thought you need the clang+llvm...?
.tar when distributing for Windows 💀
at least the new explorer archive stuff should support that now
Yep
All in the name of NeuroSynth
we want the installer
which one is that?
neither
fucj
.
yeah there's a lot
63?? i wouldn’t be surprised if there’s LLVM-20.1.6-winxp-Itanium-64.exe somewhere in there
Monorepo is all the rage
gcc still supports itanium wtf 
What's itanium
ok it works now 
a long long dead cpu arch by intel
As a reward here is a picture of my dog
Do you have cats?
no
Boooo
i have dogs, frogs, fish, and a guinea pig
traditionally gcc supports every architecture ever because microprocessor vendors just port gcc and call it a day
example: avr-gcc
i guess dragonflies too, but idk if that counts. they're part of the pool
You should have dog, cat, frog, fish, and guinea pig
That sounds like a lot of work
cats are ok, but i dont like cat owners
Not all of them are maintained by GNU tho
Who are they maintained by, then?
pov u dont live irl and ur entire life is in vr ahh people who own this😭😭
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
the people that use them
The company that release said CPU usually
Oh right that makes sense
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
I wonder how many people run builds over a decade old
Still better than input which doesn't have direct touch with any of your limbs
more than i am willing to accept
Mine is already halfway there, and I intend on upgrading soon as I get the chance
Why, don't want to support old pc 
no
a top of the line pc from 10 years ago is already slower than todays entry range pc's
*Linux is heard in the distance
true
Hmm, can also turn it into a server or smt
My friend does that with his old laptops
i did thaty for a mc server before
One of the wacky input. Leap Motion
but like I already have my trusty windows laptop so idk if I'd use it
What's that
Hand tracking that you can use as a mouse
Camera. 2 of them in Infrared
they reinvented th kinect 
I like the idea of furiously gesturing at your system to get it to do things
But the 1 was so bad
As long as it gets the point across lol
I forget which version I have. I basically got it from my former employer when doing RnD. My boss just said keep it
Nice, free stuff 
Never used it again lol
my point was that itanium IS still supported upstream, they deprecated it in gcc 14 but reverted in gcc 15
"NOOO, the spacebar heater is breaking my workflow"
spacebar heater? 
Bingo? But I think that is already checked.
spacebar heating is an absolutely critical feature
For a moment I thought you were talking about repurposing the cpu as a heater
Oh wait, it is? I didn't know all the tiles lol
that’s kind of what it is though
classic emacs user moment
Okay I got bamboozled again I thought it was a heater under the space key
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++?
My bad, it's actually xkcd / etiquette link and not just xkcd reference. But already got that 
Syntax highlighting 
Because..., have you installed the extension pack?
yes
Toast, does vscode autoconfig the LSP when using clang?
It should
I know my syntax highlighting died when I was programming in .cu files
The c++ syntax highlighting just sucks
What extension did you install Sam?
I don't think there's much you can do about that
Did you install the Clang one?
do yourself a favour and use the clangd one

i didnt know, no need to be so mean
i did
Also, I don't know if this one is of any help?
https://marketplace.visualstudio.com/items?itemName=jeff-hykin.better-cpp-syntax
Toast have you used that?
i think i do have that installed but idk if it actually does anything ngl
worth a try at least
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?
inline type hints
i dont get it
is val the parameter name 
if you don't like it then you can turn it off via
"editor.inlayHints.enabled": "off"
in the settings.json
Chat should I stop studying code and IT stuff and go for a different career instead?
What's so great about it?
idk, i dont use Csharpsharp
uh oh someone found the repo
i dont even know what the s are supposed to stand for

like is python the best way to start learning code?
It wasn't for me personally
yes, python home page is the best way 
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
scratch. make all the 5 year olds do scratch.
then when they're finally comfortable with scratch you make them do python.
I mean it's better learn some of it even if it's just for fun
same but for me i was so burnt by the indentation thing
My first language is VBScript, then Bat scripting
Same!
dudududududududududud batman
Then again I barely have a year of experience actually learning it full time but oh well
why does c++ not have print?
It does
oh boy

std::cout
It has print.s
well yes i know
or puts, or printf
std::print exists now
that's the C way
(you'll never get to use it anywhere serious within the next decade cause c++23)
I wonder how much trouble some poor soul had to go through to get it into the standard
I will not be endorsing the use of iostream, its horrific for actually outputting text
wait, where did the run button go? does clangd not have that?
I haven't used it for long enough to form an opinion, so you might be right one that one
The what?
i'll never get over the fact that c++'s hello world uses operator overloading
what?
Can you elaborate? What's wrong with iostream
You can change the behavior of operator (+ , -, >> , <<, and any other)
autocorrect 
Its called operator overloading
That reminded me of this meme
isnt it just << ???
“erm no our cursed operator overloading bullshit is clearly better and prepares people learning the language for the hell they’ll encounter”
Yes, but consider 5 << 7 will output
idk, i havent tried it yet
-# I like operator overloading tho
Then why consider why cout << "Hello world" work using the same <<
Its left shift binary
where did the run button go? 
it was there a sec ago
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"
0000000000101 << 7 = 1010000000
like, genuinely, what’s the reason?? what analogy or correlation am i supposed to make in my head? why am i shifting the output by the string??
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
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
except for that it doesn’t
<< isn’t to “shift a value in”
it does if you want it to
I always just view it as "ehh, you have a big funnel, tunnel this stuff into the other stuff" 
Hoo boy, you know its gonna be good when several people are typing lol
yea
Would you like it if the operator was <<< instead
no
So no ambiguity with bitshifting
So any of you guys general got tips for me
just starting out what is coding and programming all about?
Problem solving
why do we have an operator in the first place
That is a valid operator in a language somewhere. I just can't put my finger on it
Python also does this btw
they use the division operator / to join paths
Convenience ✨
i was joking btw i don’t actually think python is the best way although i can’t say i know of a “best way”
I mean <<< bleh >>> is cuda
IS FUCKING JS
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unsigned_right_shift
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...
but that actually DOES make sense
oh right
yeah that exists
no, nothing about joining two paths involves dividing two numbers
I only need a way for me to learn code so I can easily digest all of it for now.
I'm studying IT btw
Can't go wrong with c
At least I don't think so
are you gonna say concatting strings with + doesn’t make sense next or what? concatting paths with a symbol that’s a path separator makes sense
string concatenation should ideally be a separate operator, yes
APL my beloved
idk where that originally came from but "i like "."this"
stringstream and you can use the beloved << with strings outside of IO
Or BQN if you're poor
is it php?
no way it is
there’s zero originality in php
PHP does string concat with a . but i don"t know if it originated there
. Is already used for accessing class members tho
what about "i like " "this" 
That's valid in C
also valid c/c++
What
but only works for string literals
How
let’s just leave the concat op as + ok
Because you know both value at compile time
it's nice for when you need weird format specifiers so you can put them in a macro
I mean I figured compiler would just yell at you for syntax error
nah it's part of the standard
Yep
python has the same thing btw
Wait they did? I never know that lol
Cursed knowledge
I just use fmt like normal
you can do that in python too i think
mhm
oh you mentioned it
anyway i like strlit concatenation and i dont care if its done using concat!() or sequencing
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"
though its arguably useless in python
i guess splitting up long strings this way is kinda nice
you just have to remember to use ( since its python
\
Putting two spaces before it helps
I suppose
depending on where you're going, but mostly yes
it gives you enough understanding to go in depth (C, asm) or in distance (JS)
i thought its my vpn or somethnig
well at first i thought its noscript
but disabling it didnt help
let me upload my macro example 
Why must it be when evil is streaming
same😭
I hate my internet
Discord CDN is just dead
We did it boys. We DDoS-ed Discord
i should consider not spilling tea every week
At that point just consider it your workflow
i despise the windows volume mixer with a burning passion, i have gotten earraped by it several times already because it keeps fucking resetting
To what? Tea?
does tea spilling come with the name please i dont want that 
why and how the fuck is it so shit
i think more than the discord cdn is down right now
thats C++ 14, i have 13.2 so nope
i tried to raid moments ago and Twitch was returning server error
at least the chat still works
yeah vedal mentioned neuro cant time anybody out cause the api is down 
inb4 cloudflare
C++ 13.2 
yep
the cpp reference would like to disagree
?
idk what 13.2 could even be
No, there are no C++ 13.2 sam
no embeds?
no embeds no attachments
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
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.
Yeah, think of it like that
oh you're using gcc
huh I did not know that alias existed
That 13.2 it the last number after python3.13.2 for example
looking like it's GCPs fault right now, somehow
but yeah mabe Cloudflare
print doesnt worka nyways so idk
#include <print>
does not work
that is indeed correct
its in stdio
ok
I was about to say, who uses print instead of printf
nahh, frick that and use printf
cout is used in competitive programming
oh, were back
what is the difference between the two anyway
idk
i never looked super deep into the new print/format stuff
either way just use printf and be done with it
apparently print got just introduced in c++23 and is a new thing
i think the cdn is back?
oh i guess std::print has some extra type safety and more stuff you can do with the formatting + custom formatters
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);
}
What language is that?
c++
competitive programing is for people whose first phrase of the day is "well akschually"
and that each and every day
i dont like how competetive programming looks
competitive programming is fun but like any competitive thing it takes a lot of time to get good at
tf you mean competitive programming lol
look at chayleafs message
why is the whole internet dying what happened this time
well given their status page is all red
did like a backbone isp blow up or something
something high up the chain is definitely wrong
GCP dying
given that both gcp and aws too have some partial outages from what it looks like
Cloudflare too, somehow
and AWS but not that much, yeah
they recovered
well yeah aws gcp and cf are all separate entities with 0 reliance on each other
oh damn cloudflare is much more red than when I last checked
that's why this is fascinating to me
you havent seen my header 
iirc both aws and gcp rely on cloudflare for some stuff, it's not like this is the first time
a couple years ago cf had an outage and they took both aws & gcp with them
also someone here was saying they never saw the comma operator in use
well you're free to count how much this code uses it
is there a practical reason for minifying the header
as in, are there size limits in place
i see, makes sense then
as in, there are rnadom changes i have to make both above and below the header i dont wanna concern myself with the header itself i want it out of the way
still pretty long with all the macros
I just walked backwards from RFORI and it'S horrifying
Wait, are you saying a spoon is a reverse fork?
I love spooning 
wrong discord server reply
ah

pc lagging due to unity and game updating and downloading



bruh
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.

I finished this thing I guess
It was particularly silly
pacman -Syu <package>
Idk what i want to install
depends if you want really lightweight or a more standard desktop
If you are on Arch and not running some tiling window manager like hyprland or i3, can you even call yourself an Arch user?
Something simple and lightweight for gaming, coding and serfing, If possible, also with the ability to make it beautiful
i running already
sounds like you want hyprland
But I don't have much time to set all this up from scratch.
Yeah, hyprland is probably what you want for cutomizability

how well does hyprland run on an igpu from 2015
only one way to find out
theres not really a way around configuring hyprland if you want to use it
Im thinking about xfce4, lxqt, kde or hyprland(but I dont have enough time to fully configure it)

if you want there are some preconfigured setups on the hyprland site you could take as inspiration
in terms of things that are easiest to configure, i would suggest kde on xorg with graphical effects turned off
big oops, my bookmark bar has slight dox info
but then again, its not going to be as lightweight as the other options
attempt 2
i got wasm working 
emscripten
emcc test1.cpp -o test1.html
npx http-server . -o -p 9999

Well, time to make it a game engine
Where can i find it
i need to figure out how to do the webgl, and how to do the gltf.
besides that its just coding


my name is suspiciously similar
