#ot1-perplexing-regexing
1 messages · Page 577 of 1
You're a power ranger did u ever fight the ever fight the giant villains
I've tried it before, as it seems like a good idea, but i've always ended up changing it back because it's annoyed me
yes of course

okay but wait... is wookie a wookie or a power ranger
both

Alright, writing that down
lol
comfort was never a priority of power rangers
What is your mother-in-law's maiden name?
red ranger by day, chewbacca by night
lol is that following the classic security question "are you a wookie or a power ranger?"
cyph sus
Out of the power rangers thingy my fav was ryukendo and the ones with a r in its name
sounds legit
yeah true.
It's a study of the correlation between wookie-ness and mother-in-law maiden names
oh and also to encrypt your data we request the 3 numbers in the back of your credit card
also for study purpose
you gain extra security for providing your SSN, as well
that's why it's called your Social Security Number
wtf
tho you must contact vivek, he has this info about wookie.
I also have info on Vivek
in sql, i don't get why creating an index on the table will make the search faster
eg. sqlite> CREATE INDEX title_index ON shows (title);
Creating an index takes some time, but afterwards we can run queries much more quickly.
...> JOIN stars ON people.id = stars.person_id
...> JOIN shows ON stars.show_id = shows.id
...> WHERE name = "Steve Carell";
...
The Morning Show
LA Times: the Envelope```
@near bolt arent indexes in books faster than looking through each page?
oh so we can imagine the indexes as like pointers to find the variable
but i find it weird cuz we create the indexes
but afterwards we don't use it in the command for sqlite
yeah can say. sql uses B/B+ trees IIRC, which kinda need some index reference to skip sequence instead of checking every row.
oh i see okay thanks
also the ref of book is very much relatable. +1 to that.

why, is your variable, named Main.Java
oh wait, no, im guessing thats its location?
but yeah, the j should be lower case, right
yes but vsc still gave it the logo
weird
?
Main.java is file name which is inside variables folder
Java 
java-pain
why do you hvae so many Mains
I want some pain
why not
its... so painful
You could in theory just have multiple main classes not called main in the same package
indeed
enum H{H;{System.out.print("Hello, World!");System.exit(0);}}
my favourite snippet of java
;(
There's also this one ```c
class X{static void Main(){if(System.Console.Write("Hello, World!")is X){}}}
I need a faint emoji ;[
why the one liners NOOO
that's C though lol
yea c# lol
no
Hemlock's favourite lang
Didn't the enum thing get fixed
100%
chad
for mbappe its sommer
Then Charge It
that feels when u plug it in last moment
@rough sapphire I would like to discuss php 😉
Why tho
Why not?
Discussion about PHP usually devolves into language bashing
I don't want to bash 2 languages, php is just not my cup of tea
lmao
At least because there's a lot of deprecated stuff in php
No generics 🤔
On it's own php is hard to write something good in, simply because of it's standard library
I dislike PHP syntax, but that's a me thing
Syntax is subjective thing but i dislike it too
Also just an ability to use variable values as variable names ($$)
aka dynamic variables or something
There are some good frameworks like Laravel, but they're not suited for api's, at least out of the box.
You can do this with python too
I'm aware
But not as cool looking
That's not a language a new developer would like to write with anyway
Why not, whole bunch of jobs for laravel, wordpress plugins, etc
Its an easy way into webdev
wordpress runs close to a majority of the internet, no?
transcript,
son: "moms i would replace my mom with"
mom: "why would you want to replace me?"
son: turns to next page "1. No One"
mom: "whats on the next screen?"
son: turns to next page "2. Deez"
mom: "these? these what?"
son: DEEZ NUTS

Ayo how old are you?
oh no

python ded
it says everything operational there?
yeah
yeah no, the cdns down, nvm its back
ah good
oh yay its back
why is it the other way round for me 
after a long time u goto the docs just to see that its not working oof <-- me
eh
now the backend is down
heresy
in sql, can I do operations with the data i get from the function
eg. from SELECT AVG(energy) FROM songs;, I get 0.659 but I want to "print out" 0.659/10
try AVG(energy)/10
yup it works thanks
lol
I'm on my third cortadito of the hour, tonight should be fun.
anyone played gunner heat pc?
I feel like main blocks are a little tiny for the size of some programs...
Nearly 1000 lines spread over 6 files and the main block is only 4 lines <_<
what is a flat file?
what dat
hmm
bruh
just a simple question
flutter or react-native
im getting into mobile development and im fairly new to dart, whereas im fairly experience in js but I want to work with regard to the future so what should I learn?
you can choose any
@versed saffron do you know how i can pass an array of vec2s to a frag shader
i am like trying to add a trail to the mouse, and i want it to be so like the last 20 mouse positions be colored by the frag shader
uh I dont think you'd use a shader for that
is the trail just a copy of the cursor? or a different sprite
aight
nah just a pixel color gradient ig
i thought shaders would be more suitable since they allow to color each pixel individually
well I really don't have any idea as to how to approach that but ill do some digging
regardless, you'd need to define the trail's vertex and frag shaders and treat it as a different sprite
if you're going for a rainbow-esque trail you can probably treat the sprite as a rectangle + lerp from red->purple from the colours and only draw what you want the shape to be
but again, no idea how you'd do that
nah i just want a one color trail
but the alpha is decreasing based on its index
the array is basically a queue
so it would be handy if i can pass the array to the shader while computing its values in the main program
the gpu does do some inference with the data it gets too:
// main.cpp
float vertices[] = {
// positions // colors
0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 0.0f, // bottom right
-0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, // bottom left
0.0f, 0.5f, 0.0f, 0.0f, 0.0f, 1.0f // top
};
// vert.shader
#version 330 core
layout (location = 0) in vec3 aPos; // the position variable has attribute position 0
layout (location = 1) in vec3 aColor; // the color variable has attribute position 1
out vec3 ourColor; // output a color to the fragment shader
void main()
{
gl_Position = vec4(aPos, 1.0);
ourColor = aColor; // set ourColor to the input color we got from the vertex data
}
// frag.shader
#version 330 core
out vec4 FragColor;
in vec3 ourColor;
void main()
{
FragColor = vec4(ourColor, 1.0);
}```
produces this
do you happen to know what macroquad is using to render?
nope.. but ill check
what do you actually mean by this though, whether it uses opengl or not?
i think it uses miniquad which is based on crayon which uses opengl backends
you say that in a python server
shut.

do you know if you have access to gl if that is the api?
theres this
yeh
699 stars nice
truly
nicwe
ᵒʰⁿᵒˢᵒᵐᵉᵒⁿᵉʲᵘˢᵗˢᵗᵃʳᵉᵈᶦᵗʷʰᵒʷᵒᵘˡᵈᵈᵒᵗʰᵃᵗ
why
wtf how many unicode characters are numeric!?
In [8]: len(list(filter(str.isnumeric, map(chr, range(100000)))))
Out[8]: 1563
yes i have list(filter(map()))
cry about it
who dares to do this
ur about 4 minutes too late
ok it goes upto 1114111
lol
In [21]: len(list(filter(str.isnumeric, map(chr, range(1114112)))))
Out[21]: 1862
yes
In [21]: len(list(filter(str.isnumeric, map(chr, range(1114112)))))
Out[21]: 1862
In [22]: len(list(filter(str.isdigit, map(chr, range(1114112)))))
Out[22]: 778
In [23]: len(list(filter(str.isdecimal, map(chr, range(1114112)))))
Out[23]: 650
hmmm
I think you were right about this, QuadGl.geometry lets you set the vertices + indices
“Only”
ikr
oh
How’s the coord sys set up?
top left is 0, 0
though glsl is 0, 0 on bottom left
i can also pass window size through a uniform and subtract the y value
so that should not be a prob
but how do i use this QuadGl.geometry
uhh

wow
im sorry, I barely know what im doing in gl and now ive gotta figure it out in a lang I have no knowledge in?
and now ur harassing me ;-;
you know what you did
let quad = QuadGl.new(ctx);
// set geometry
quad.geometry(vertices, indices);
// if you want shaders (?)
let result = quad.make_pipeline(ctx, frag, vert, params); // returns Result<GlPipeline, ShaderError>, idk what that means
// if you want a texture
quad.texture(Texture2D_instance);
// set draw mode
quad.draw_mode([Triangles or Lines]);
// draw it
quad.draw(ctx);```
lowkey looks like a clown
oh but what does set geometry mean
it sets the geometry
^^
geometry of what
helping the way u should
give me like 5 mins while I type this out
ok so if I want to draw a triangle, I need 3 vertices
float vertices[] = {
-0.5f, -0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
0.0f, 0.5f, 0.0f
};```
those refer to the x, y and z coords but because it's 2d, the z can be 0. (I think `geometry` can accept just the x, y but idk what `[f32; 2]` means)
You then need to tell gl which order you want to draw those vertices with the indices:
```cpp
uint_32 indices[] = {0, 1, 2};
the need for indices becomes more apparent when you draw more complex shapes like a square, gl can only either draw lines or triangles (or points), so each sprite you make has to use those shapes
float vertices[] = {
0.5f, 0.5f, 0.0f, // top right
0.5f, -0.5f, 0.0f, // bottom right
-0.5f, -0.5f, 0.0f, // bottom left
-0.5f, 0.5f, 0.0f // top left
};
unsigned int indices[] = {
0, 1, 3, // first triangle
1, 2, 3 // second triangle
};```
indices allow you to reuse vertices already defined instead of having to write out all 6 of them (as 2 vertices per triangle are the same as the other)
the typehint for vertices is &[impl Into<([f32; 3], [f32; 2], [f32; 4])> + Copy] so im assuming that means an array of arrays of either 2, 3 or 4 (?!?) elements?
yeh impl Into means that whatever you pass can be converted to an array of either 3 floats, 2 floats or 4 floats
plus it also needs it to be copyable
ah ok
so i need array of array of 2 floats
there's also some other stuff included with QuadGl but idk if you'll need to use it
yes
but the thing is can i take control of those vertices myself
like i dont want them to draw shapes
well they're still going to draw triangles
aw
but you can choose how the triangles go together
that's how blender models work (sort of)
hmm, how would i use this though, i need to draw a line 
well a line's just a long, thin rectangle is it not?
always has been 🔫

so a line is a rectangle with 0 width and infinite length
well a width of 1 pixel in this context
idk where you got infinite length from
get out of here with your fake lines
a line has infinite length
a line segment has finite length
yes
it doesn't look like there's any way to draw curves so if you wanted that you'd have to implement your own bezier curve algorithm
https://mathworld.wolfram.com/BezierCurve.html it's not that bad
nice embed
there's other types of curves too but idk anything about them
but it's basically just a summation, the higher your limit is, the smoother your curve gets + the more lines you have to draw
so it's a bit of a trade off between precision + performance
hmm
wait but if a triangle is made of lines and lines are made of triangles
oh no
I mean, it's also just a useful equation
the triangle part is really just a visualization
but again
it's all triangles
:O
its all electricity
shit I forgot to ping jack today
what for
to ask them about pyo3
oh
again
you know ill go check it out and tell you how it is

where'd you get that from
mathematics server
3b1b's videos on Calculus taught me almost my entire calc class over the summer :0
There's gotta be more high-end stuff for math tbh
and not the khan academy shit
if I wanted to listen to a monotone lecture, i'd be going back to school next year
@edgy crest hows it coming along
Is FP 'better' than OOP
@quiet tusk Continuing this from yesterday-ish
It really depends on who you ask there's a lot of memery between the two schools but more often than not practices in one is adopted in the other.
Again, it's really just about what abstractions you like better for building your program, OOP pretty much has the foothold in the industry as a whole but recent trends start to show FP and FP-like languages rising in popularity to try and stay away from billion-dollar mistakes like Java and JS
There's no compulsory FP courses where I'm studying, and only one at my previous uni... I wonder when it'll really catch on in industry if it's barely a thing in universities.
fingers crossed
IT WORKED!!!
didnt even start 
i was wondering how would i layout the rectangles
and the triangles for the rectangles
a trail which just like
follows teh mouse
thought it would be as simple as just coloring the pixels of the mouse...
😢
Can you do like a paint sketch rq
sure
actually like you know those games like
osu
theres some trail following mouse
Idk that sounds kinda familiar
I think I’ve only got like 10 days of playtime tho
Ok so scratch the custom shapes, I’ve got an idea of what to do
I’m not sure of the implementation, but the way osu works is you have 1 (or 2) texture(s) that you instance at the mouse pos
Stick it in a container and after a certain amount of time/distance/etc, remove it
And just loop over that container in your draw loop
So you could just do that but with like circles
array?
Array, list, spritelist , whatever
You might get some form of optimization + cleaner code if you create your own container
wait i found something with what i want
sending link
Coil - An addictive HTML5 canvas game where you have to defeat your enemies by enclosing them in your trail.
i want something exactly like this
the mosue trail
I wasn’t expecting that to work so well on mobile lmao
i mean initially one can just start about just drawing the dots wherever mouse goes, then a lil bit of json array thingy.
So if you wanted just a line the thickness of a pixel you could just record mouse coords + delete them after a period
unrelated but yeah B)
If not do the same with shapes/a texture
yeah exactly.
yes but how would i draw over them
like i was doing that from the start
but didnt know how to draw
draw them first then draw whatever else you want
quad
you can draw dots right?
hmm
so, i mean where you stuck?
you'll always be dependent on your framerate
what the actual heck
ye
set_target_fps
does not work
it's gotta
wtf so they just capped it at 60?
ok but regardless there shouldn't be a cap
is it because of vsync?
what's your monitors refresh rate
60
..
wot
o
hmm okay so ill just draw 1 pixel radius circles on mouse position and remove over time
but can i use shaders for something here
you don't need to, it'll just overly complicate it
yes
:^)
i want to overly complicate it
like, this is not for some project
i was just playing around
I mean like stupid overly complicate it, iow idk how you'd accomplish it with this level of abstraction
would be a bummer if i cant get the most out of it.. but for now ill just do this much
it might be miniquad messing around with it too
you can always come back to it too and see if you can make a shader that does it :>
id be 100% down to help work on smthing like that, my shader knowledge is non-existant

he do be walking
@edgy crest u want more frames?
does 100% down mean not interested or very interested
sure
ok
i stg if you send a pic of a picture frame im gonna cry
picture of a picture frame having a picture of a picture frame, infinite frames!!!
no i was just asking a question
oh ok good ty
👍
lemme know if this fixes it, if no ill keep looking
i thought you had a way to get me more frames but ok
why "reduce"
but that's less frames?
limit
is your refresh rate 60
i don't cap
the issue says limit but the response says the gpu drivers cap the fps which you can disable
ye
vblank_mode=0 cargo run --release
thonky
is the --release necessary
idk probably not
aight ill try
it also looks like you can directly access the api:
let InternalGlContext { quad_context: ctx, ..} = unsafe { get_internal_gl() };
ctx.show_mouse(false);
ctx.set_cursor_grab(true);
// toggles mouse visability ```
I think it might just be a case of the implementation not being great, iirc opengl has the ability to toggle vsync but I can't find anything in macro/miniquad about it
also im a gamer
a god gamer

osu skills coming through 😄
what is this score
@inland wolf
rip give me a sec
the whole html part of it is screwing me over a lot
it just sometimes doesn't get the dots
bruh
not bad
the trick is to not hit the red!!
ikr
like some sort of sanity check would've made this game soooo much better
- don't let them be captured if they haven't spawned in fully
- only capture them once it's been filled in and stop capturing immediately
bam AAA game
cypherials been doing this for the past hour and he finally got a highscore
omg this game is stressful
ikr
thatd be me
lol
have you even tried this yet lol
(jk this is inspect i got carpel tunnel on 3000)
:|
bruh if I could stop randomly dying that'd be great
you have a health bar
I tried it on a laptop touchpad and it was a bad idea
rip
lmao I did too, that was my first attempt
oh?
ok i tried
first that overheats my laptop
second, the trails still have a lot of space between them so it looks bad
looks like i need to do slerp but idk how to
what's your fps tho
uh didnt see
i should probably go to bed, but if you want, send me the code and ill set rust up and take a look when I get up
120-150
oh ok well at least that fixed something 😄
maybe check your cpu load too, that could be causing the studdering
if not it could be an implementation thing, im really really hoping they're using a double buffer cause if not that's a massive issue
wot you're refresh rate
60
wtf my grammar
oh yeah. stay at 60
no point in going higher than 60 if your refresh rate is only 60 Mhz
wtf
I left that game in the background
Someone please tell me why that thing takes like 30% of my CPU
👀
Holdon I still got it open somewhere lemme check the task manager
See how much bitcoin it's mining in the background
hahaha
I was just wondering why my fans were going crazy
I checked task manager and Microsoft Edge was taking 20-30 % CPU
Hmmm, it's doing nothing on mine
rather... "System Monitor"
||sounds like an edge problem ||
maybe because I had it open in active window, not background
excuse me.
Perhaps, lemme see what it's like when open
facebook, facebook everywhere
I'm just trying to game
Why do you want to track me facebook
weak cpu?
Ryzen 7 4800H
nevermind
lol
btw the average CPU usage for Edge for me is usually 0.1%
actually... more like 0.0%
Do you not have Privacy Badger? D:
Dunno what that is, firefox's default stuff is good enough for me
The trackers can learn neural net math with me, they'll suffer
interesting
I believe Privacy Badger actually uses ML
if not, it uses something for "learning"
"Privacy Badger automatically learns to block invisible trackers."
wonder how bad would it be to learn ML and do it all in rust without any ML libs except for math calcs
:faint:
@edgy crest I think I may have found the problem, and there's a reaallly good chance it's a massive issue with the implementation. I can't seem to find anything in macro or miniquad about swapping the buffers which is pretty necessary to run anything more complex than a ui. There's also this https://github.com/not-fl3/macroquad/issues/52#issuecomment-832030762 which sort of confirms that it's garbage.
The rest of the stuff can stay in Python
ᵖʸᵒ³?
Everything I previously had in this project worked fine, except the neural net (mostly), so I'd be remaking it anyway
Yeah, or whatever the other one was, I'll have to test them out
I once tried to make a neural net in scheme
but I am pretty bad at that kind of math, so I couldn't get it done
I'm not really sure what happened to my net
When I tested it, it was perfect
Then I tested it again like a week later
It was terrible
So clearly I touched something somewhere I shouldn't have
But I could never find what it was
it went the wrong route while you were gone
So, from the top, in rust
learn parenting jack
I mean, it is being used in reinforcement learning, so that statement can be used literally
hm?
Wot
bruh
huh what did you do?

oh ok I was wondering if it looked choppy because of the recording fps lol

im still not convinced it's a shitty wrapper tho
@edgy crest What do you use for the graphics?
macroquad
Any good?
yes it nice
imo
you can also use rust-sfml and sdl but i like macroquad because its easily installable and you can also compile to wasm with just one command
the whole not being able to disable vsync isn't nice tho
man it isnt that bad
also not being able to draw single points
draw_circle iwth radius 1?

you had me worried for a sec
there's also the whole not being able to adjust the swap interval
it still should be able to do it tho
it's a pretty basic gl thing
there's also this bad boy https://github.com/not-fl3/miniquad/issues/193
which like
why isn't that implemented
idk it's not terrible but for being 16 months old there's a bit of basic stuff missing that should've been a priority
@viral parrot HOW ARE YOU?
hmm well i dont find any other good crates like this so
though i might take a look at wgpu
i've got a game-dev friend who's super into rust graphics, imma try to get his opinion on it
ik he mentioned Amethyst and Bevy (apparently Bevy isn't really well documented tho) but I haven't had a chance to look at them
wot
aw not opengl
you have to build your own pipeline for starters
I didn't say it's like openGL
is vulkan better
I mean not in that regard
Supposedly
I said it's a graphics API, like openGL and DX are
it lets you customize basically the whole rendering process
I can say "Python is a programming language, like Rust"
because both are programming languages, even though they can be wildly different
i'd argue it's more of a rendering api like DX but you're not wrong
but anyways you have to build your own pipeline meaning, compiling shaders, sending objects through the shaders, handling the buffers (writing the output of the data to them), sending the buffers to the gpu, along with anything else you need along the process
and that's on top of getting your window + events working + sounds + an entity component system + physics engine
tldr it's an massive amount of work but the pay off is you control every step of the process
153 lines to crate a triangle

guess its lower than i wnat
there's usually a lot of buffers involved for performance
you dont really want to be iterating over every single pixel and checking if it's updated
also error handling is a pain with graphics
I like bevy, but I do prefer this macroquad for just drawing things
Amethyst looks pretty decent actually
but yeah, for a larger project, I would not use it
I find bevy nicer, it has a lot less complexity
good to know ill check it out too
I kinda like complexity tho 😄
if you do, you will love amethyst
I just decided to not get bogged down by abstractions when all I wanted to do is rotate a camera around a sphere
ya to be fair I got lost in opengl pretty quick
I got further than I thought in openGL, but I can't imagine doing a project in raw openGL that wasn't about using openGL
I made a triangle with a spinning colour and moved on to making a framework which was a massive mistake
ya idk I can't say I love it
I've got a few projects in mind now tho so I think I just need to find an api/lang that im comfortable with and plan everything out
idk I definitely have an issue staying committed to projects
how heavy is bevy in terms of deps
Loll
I tried OpenGL with Python last year
I would up finding one tutorial that actually used PyOpenGL and could not understand it at all.
OpenGL is confusing as fuck lmao
I remember I made a rotating cube that I really just ripped off of the internet
w h y
absolutely mind boggling
wont a rotating cube just be a rotational matrix around the centroid for each vertex
@acoustic moss correct if wrong
ok

here we go again
tod
tod
I sense irritation on hshyp's part...
tod.
Toad
yes

lol
doesn't matter, hsp is a meanie anyways
I agree
who's hsp
good question
someone ban hsp
ikr
need help with making labels for my data because my creativity left me: I have one dataset that has results of some function fitting to some data and another dataset which does the same except some of the input data is weighted to zero (basically data[some time range] = 0). What would be 2 labels that distinguish them? I have "weight" and "zero weight" right now and that just doesn't do it 😄 I also thought of "no weight" and "zero weight" but that seems weird...
filtered weight?
and the other would be?
just weight
but one of them doesn't have any weight applied to it, that's my issue 😄
I like weighted fit, then the other would be unweighted fit?
I dont use dot access
its confusing
df.groupy().method().method().column.shape and I'm lost what is what
I prefer [] 🙂
@versed saffron i need to find out whats wrong here :<
uniform vec2 m_pos;
uniform vec2 res;
void main() {
vec2 st = m_pos / res;
st.y = 1.0 - st.y;
float dist = distance(gl_FragCoord.xy, st);
vec4 col = vec4(0.0, 0.0, 0.0, 1.0);
if (dist <= 0.01) {
col.rgb = vec3(1.0);
col.a = 1.0 - (dist * 50.0);
}
gl_FragColor = col;
}```
trying to make a circle around the mouse cursor
this should work right
vec2 st = m_pos / res; is that valid?
they're vectors?
yeh
idk if theres op overloading or not
shud i do .xy / .xy ?
also is this glsl?
yes
I wouldn't be sure at all that elementwise division is defined for them
you have the shebang?
oh i didnt send the full shader
oh ok
#version 100
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 m_pos;
uniform vec2 res;
void main() {
vec2 st = m_pos / res;
st.y = 1.0 - st.y;
float dist = distance(gl_FragCoord.xy, st);
vec4 col = vec4(0.0, 0.0, 0.0, 1.0);
if (dist <= 0.01) {
col.rgb = vec3(1.0);
col.a = 1.0 - (dist * 50.0);
}
gl_FragColor = col;
}```
hmm im pretty sure / is supported because i have seen it on thebookofshaders
col.rgb = vec3(1.0);
col.a = 1.0 - (dist * 50.0);```
pretty sure that isn
't valid either
especially the .rgb
1.0, 1.0, 1.0
weird, okay
ok so division is valid fwiw
if (dist <= 0.01) {
vec4 col = vec4(1.0, 1.0, 1.0, 1.0 - (dist * 50.0));
} else {
vec4 col = vec4(0.0, 0.0, 0.0, 1.0);
}```
hmm, I did want to play around with opengl for a while
guess now would be a good time
in Rust, of course
ill try that
same thing
you can
unpack it like that
thats what macroquad supports
oh god whyyy
some compatibility reason idk why ask them
is there any way to get errors when you set the program
you do get compilation errors
cause ur glsl is gonna be kinda limited
@graceful basin you mentioned you've used macroquad, have you messed around with shaders in it?
im just very confused, this looks like a mess compared to what I've done
where are you getting gl_FragColor from?
i am fairly certain this is not a problem of versions
hmm so apparently the if condition isnt even getting hit
what does distance do?
does it return the euclidean distance or a vec3?
hmm ill have to check
that'd be pretty crazy if it's a vec3. Like, what'd that be, elementwise -?
returns scalar
or being forced to use ig
yes
ok
so
that doesnt add up
I get it not supporting the latest version but it should at least run 3.3
that's kinda counterintuitive?
wot
uhhh so
now how do i
use built in functions for rendering of macroquad
and shaders to add effects on them
cause rn
only the shaders take effect
like things which i am drawing from rust
arent getting drawn
quad.make_pipeline(ctx, frag, vert, params);

im not sure if quad needs to be QuadGl or if it can be any geometry
either way you need to get the opengl context and idk how
I remember seeing something about using unsafe tho
let InternalGlContext { quad_context: ctx, ..} = unsafe { get_internal_gl() };
idk how tf that sets ctx as the context
some rust magic ig
alright cya
cya
Anyone chess?
master-tot
👀
that's struct unpacking
it's kinda like
let a = unsafe { get_internal_gl() };
let ctx = a.quad_context;
InternalGlContext { quad_context: ctx, ..} is the pattern we match against - so the field quad_context goes into ctx, and .. means the other fields are ignored.
imagine if this was ur favourite song https://youtu.be/tsZKPDhvxos
The official audio for 'Favourite Song' by Pizzagirl.
Taken from the debut EP 'An Extended Play', out now.
For best results listen in 1987 at night xo
Stream / Download 'An Extended Play': http://smarturl.it/AnExtendedPlay
http://www.mypizzagirl.com
http://www.facebook.com/mypizzagirl
http://www.twitter.com/mypizzagirl
http://www.instagram.co...
that would be funny i think
just spent some time debugging why my shader using a uniform wasn't working
of course, it was the C null-terminated strings...
wrong:
gl::GetUniformLocation(shader_program.id(), "triColor".as_ptr() as _)
right:
let unif_name = CString::new("triColor").unwrap();
gl::GetUniformLocation(shader_program.id(), unif_name.as_ptr() as _)
In reality the situation is too catastrophic, and it’s almost impossible to keep that initial goal of fixing driver errors. I have the feeling that some driver writers barely read the specifications, and the fact that online documentation (like docs.gl) is filled with mistakes doesn’t help.
(C)glium's author on OpenGL drivers
yikes
you mean Rhydon?
Rhydon deez
Sorry
oh fuck you got me, smh
Lmao
I have made something cursed
what is it
mm tasty
my friend once gave another friend his chips that he dropped in the dirt and called them salt and pepper chips
and he ate the whole bag
fun times
Oh dear I hope your friend didn't get sick lol
One time when I was younger I had a mischevious side and convinced my brother to drink this greenish water from a sandbox. Still feel bad about that one ngl
He never got sick but mannnn
We said it was koolaid lol. I was in 3rd grade or so I think and he was 3 years younger
'green koolaid! yum!'
Very long time ago from a galaxy...
I sprayed sunscreen on bees and they stung my brother 😎
Exactly lol
that one was an accident tho I was in like first grade
Dayum I feel worse for the bees
mhm
Ah that's good at least it was accidental.
Haha
Little kids are strange
I remember as a 3 or 4 yr old eating lots of newspaper and playdo
yes
playdoh- i- why?
lots of kids ate paper in elementary school
and it always confused me why
now I realize those are the ones that did not do extremely well in school
I think it's just pure curiosity at the taboo nature
Tell a kid not to do something and it makes them really curious and want to do it haha
true
Good ol reverse psychology
'hey kid, eat this paper'
I
"mum can we get minecraft"
"we already have minecraft at home"
minecraft at home:
saddest commit of my day git commit -m "Add actual friends to the friends test :rooSad:"
i hate the -m flag
Why?
because it forces you to throw all the details into the title
just write a short title and put detail into the body
Oh. I can see that being an issue if someone were to try and put all the details in the title.
its nice for small commits tho
My titles are less than 72 characters anyway.
6311047 (HEAD -> main) Add actual friends to the friends test :rooSad:
ecffa58 (origin/main) Update with friend reference
81c6d00 Player friends
3451627 player friends model
b9ccb0f Pull models out of main files
b3379eb Remove reference to make in local setup
ce3629c Documentation
047ad5a logging cleanup
b41b6b2 Pull player data, restructure objects
2f92d0d recorded authuser tests
8f2282c recorded player class
d952099 Add vcrpy
cd43133 Refactor moving authuser into seperate object
13db793 lookup by uuid
23fceec Cleanup
9a2b5e1 uuid check
7e43776 Tweak tests, validate name
193c3fc player class init validation
80988cc create uuid validator
0b0660a pre-commit run
fa76cfd Remove main
21af6ff uuid lookup
28e885d get player
d963a3e Add secretbox requirement
851a9e6 Initial commit
smol
😢 they should be 50
oh well, i'm just being pedantic
but if you do have to add details, and you use -m then your commit message will look terrible
!e
print(len("Add actual friends to the friends test :rooSad:"))
@thick osprey :white_check_mark: Your eval job has completed with return code 0.
47
nailed it
Commit message gets built on squash or merge. Tiny commits don't need a paragraph explaining that I moved something imo
sure, if they're tiny
and if they aren't tiny
we're getting closer to an issue
it's a different "ideology" i guess ¯_(ツ)_/¯
Yup. 16 standards
some people like tiny commits (pad the stats smh), some like larger
This one just made me sigh because the reason the coverage was failing was not because coverage didn't know I was calling the factory, it was because I used my account in the test and I have no friends in that game 
Had to add mock friendship
stats be darned. If I mess up I'd like to not have to roll back an hour's worth of work
i'll often commit failed tries to solve a problem as documentation
But I work "next" to a teammate who will crunch eight hours of code and commit once EoD. Terrifies me, personally.
wild
Me: "What if the worst happens and you lose the work?"
Them: "Then they pay me another day to do it again shrug"
Are you... Using emojis in your git messages?
I use emoji references everywhere. They are so common, my code-reviews no longer include such questions as "I see this is a debug statement but what is rooScream?"
I actually wrote a script that removes them from my code pre-commit because I'd forget about them
So emoji references, yes. Actual unicode emojis, very seldom.
You can put two -m flags
git commit -m "title" -m "description"
ok, but just use the editor at that point








