#⌨coders-cave

1 messages · Page 106 of 1

orchid frigate
#

If im setting up a gdt

#

Whats a gdt

#

Tell me without looking it up

barren shale
#

GDT Schwimmkurse und Triathlontraining - Erreiche jedes Ziel mit uns - für Anfänger und Fortgeschrittene - Schwimmkurse und Schwimmtraining für jedes Level.

#

im joking

#

gdt is obviously gas discharge tube

orchid frigate
#

Global descriptor table

#

Handles stuff like permissions and memory stuff

barren shale
#

so its not a gas dynamic trap?

#

what about Geometric dimensioning and tolerancing

orchid frigate
#

It is located somewhere in memory and is usually rodata for safety

barren shale
#

Goal-directed therapy

#

(you need some)

#

maybe Grand dictionnaire terminologique?

orchid frigate
#

I need therapy with yo mom

orchid frigate
orchid frigate
#

hamza more like

#

ham

#

😂

tidal elbow
#

Mostly react tbf

#

Wasm is exactly as the name says

Web assembly

#

Its a compilation target

orchid frigate
#

well by web assembly

#

I see

#

assembly

#

but somehow the registers are...web

#

somehow

main brook
#

its basically just

#

system code ran on a website

#

you don't write wasm

#

you just write code and compile to wasm

#

you can even like

#

use ffmpeg on client side

ripe prairie
#

Well I'm not supposed to be here

next lotus
#

then why are you here

orchid frigate
#

24 warnings are acceptable, right?

next lotus
#

not enough

#

a few hundred more will be acceptable

orchid frigate
#

all of these warnings are unused vars

#

that I made and forgot they existed so I made new ones

#

which is even sadder

barren shale
#

?

orchid frigate
#

dementia

#

I can explain

#

I cant explain

#

I forgot what to explain

barren shale
#

you're motha

#

rust ez language

orchid frigate
#

its ez if you are using it with only basic things

#

but stuff like error catching

barren shale
#

you have to error catch everything

#

its rust

orchid frigate
#

borrowing and ownership

#

quite difficult

orchid frigate
#

because good luck catching an error while writing to ports

barren shale
#

bro ur just bad

#

you need to git gud

#

like me

orchid frigate
#

look not many people can get as good as your mom

#

some of us dont got her energy

barren shale
#

oh fuck

#

i deleted my ray marching implementation in rust

#

I cant show you how good my rust code is

orchid frigate
#

well thats a shame

#

Im sure you can rewrite it tho

barren shale
#

yes i can

#

doesnt mean i will

#

maybe

#

idk

#

if im bored

#

mgiht do

#

it took me a day last time

#

i just couldnt clear the console to make it interactive because rust doesnt like windows terminal

orchid frigate
#

noone likes windows terminal

#

its slower than literally any other terminal in existance

#

and its way too different

next lotus
#

then there comes powershell which only use is for exploits

orchid frigate
#

tbh any time I want a terminal in windows I will just use wsl

#

best option

barren shale
#

tbh no body cares

knotty root
#

@knotty root don't sing the entire ABC that's spam

#

Now stop.

#

And why are you saying it in coders cave?

#

This is for coding and programming

barren shale
#

ok so i got rust to work again

#

so how do you do this again

orchid frigate
#

you git gud

barren shale
cloud solar
#

hi

orchid frigate
orchid frigate
cloud solar
#

i try to create that shape, can somebody maybe see whats wrong?

verticies:

        verticies[0] = new Vector3(-planetSize,-planetSize);
        verticies[1] = new Vector3(-planetSize*1.5f,0);
        verticies[2] = new Vector3(-planetSize,planetSize);
        verticies[3] = new Vector3(planetSize,planetSize);
        verticies[4] = new Vector3(planetSize,-planetSize);
traingles

        mesh.triangles = new int[] {0,1,2,0,2,3,0,3,4};
cloud solar
#

nvm problem solved

crude beacon
#

i would post my code if i could

#

but i cant

#

so i guess i'll go die

main brook
lethal egret
errant trail
#

maybe he uses Haskell 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮 🤮

gleaming vault
#

𝚒𝚝 𝚍𝚎𝚙𝚎𝚗𝚍𝚜 𝚊𝚌𝚝𝚞𝚊𝚕𝚕𝚢

orchid frigate
#

Guys what is your favourite thing to do in coding

#

I will go first

#

My favourite us to read 20 pages of documentation just to realise that it provides no fucking example code and translating the thing written in the pages could be wrapped in 3 fucking sentences

distant wraith
barren shale
orchid frigate
#

I know that

#

You remind me very often

lethal egret
lethal egret
steel heath
#

Я ебу собааак

#

🥶 🥶 🥶 🥶 🥶 🥶

barren shale
tidal elbow
#

they most definitely use it, likely with tensorflow / similar for machine learning / training

tidal elbow
#

and do stupid ass shit

zinc dagger
#

e

barren shale
#

you dont need tensorflow when you have a unicorn company

tidal elbow
barren shale
#

i dont think their ml code is open source

hollow bronze
#

if you read into some articles lots of them note that both python and c++ are used

barren shale
#

yeah but its python converted to C++

#

they dont run it as python

#

too slow

hollow bronze
#

not sure how thats not using python

barren shale
#

alright then

#

they are using python
they are not running python

#

even tensorflow

#

its really C++

#

and it has a python wrapper

#

nobody would write ML code in python its just too slow

#

samething with numpy

hollow bronze
#

its an interesting balance between time and speed

#

having speed in an autonomous car would probably be pretty essential I'd imagine

barren shale
#

it takes around 10 seconds for you to loop through a 500x500 array in python

#

i dont think that's good

#

since you have like 10 images of 1000x1000

#

at least

#

now do it 20 times a second

#

xd

hollow bronze
#

that said python is much faster to write for the same program

#

and pretty much the go to AI language atm

barren shale
#

yeah but its all wrappers that's why its not very bad on small scale

hollow bronze
#

I imagine you'd have to know both languages if you're working on the project either way atm

orchid frigate
#

this took me a day to make but it was worth it

#

the big number generator can create numbers ranging from -a few trillion to +a few trillion

#

it took me the entire day to set up the code right and a few hours to wait it out over a few attempts

#

RandomOS coming soon 😳

distant wraith
barren shale
#

the current year is not 2034

cosmic hamlet
#

Greg is life

orchid frigate
#

None of that info is correct

#

I just use it to generate random nums

#

Besides its a miracle it gives me anything

barren shale
#

when it takes you all day to generate a random number

#

nub

orchid frigate
#

Most CMOS batters are dead anyway

orchid frigate
#

With a bootloader from scratch

#

And a kernel

barren shale
#

that's not making a random number generator

#

that's making a bootloader and a kernel and a random number generator

#

probably would take me a week

#

or less

orchid frigate
#

Ok but I dont remember asking

barren shale
orchid frigate
#

Strange

#

I dont remember saying that

#

what was your name again

#

where am I

tidal elbow
tidal elbow
#

ive done a lot of ML python work

orchid frigate
#

@tidal elbow so considering you are someone quite familiar in the field I will ask

#

could I somehow get a job as an os dev

#

or are they like

#

not existant

#

I have looked at some but all of them are linux distros

tidal elbow
#

i mean

#

you could get a job in a company perhaps developing OS-level things for like

#

certain IoT tech, or even shit like washing machines

#

but most OS stuff is done on linux distros by either contributors, the foundations themselves or sponsoring companies

#

for OS stuff you'd have to go for microsoft, apple, a foundation or companies that sell certain machines with computer chips in them (washing machines, coffee machines, fridges, etc)

orchid frigate
#

hmmm interesting

orchid frigate
#

Because I have pretty much been studying OSs for my entire programming career and thats all I know

#

ok thanks for your help

tidal elbow
#

personally self taught so i dont know much of the uni stuff

orchid frigate
#

me too

hollow bronze
#

eh no limit to what you can do even if you have done lots of OS stuff

tidal elbow
#

Quora is a good shout for any questions like that

#

Embedded developer, that's the word i wanted

#

That would be a very good entry point for OS stuff

#

And the vast majority of commercial companies will want them

barren shale
#

self taught + uni = strongl

tidal elbow
#

bru

#

im fully self taught

#

got myself a raise and bonus within 5 months of joining hahaha

#

usual pay review is yearly

barren shale
#

havent learnt anything new in uni yet though

tidal elbow
#

im 19 and get paid £2k a month so im comfy

barren shale
#

well that might be okay or great depending on where you live

tidal elbow
#

i mean

#

rent + utilities is 800-900 per month

barren shale
#

oh that's not too bad

tidal elbow
#

so i have around 1k a month spare

#

for whatever i want

barren shale
#

yeh

tidal elbow
#

im on £30800

barren shale
#

i make like $1500 a month

#

but i only work 8 hours a week

tidal elbow
#

lmaoo what job do you have

barren shale
#

tutoring

tidal elbow
#

im 8h/day

#

ooh rad

barren shale
#

tutoring pays good

#

but there are downsides

#

because you never know when ur gonna get new students and when will old students have enough

#

its more of $2000 but fiver's 20% fee is just wbsuffer

unique rose
#

Tu no metes cabra

next lotus
#

why y'all have problems with money

#

when you can just bot adfly and get 100$ a day

#

lol

main brook
#

that's exploiting

barren shale
#

Yeah your account will probably be banned before you can withdraw

next lotus
#

not quite

distant wraith
#

New channel type? flushedCat

tidal elbow
#

i have ss of it

#

in the discord developers guild

#

@distant wraith

hasty bane
#

w

#

why?

#

huh

#

okay

hasty bane
#

finally threads can become not useless

bold rover
hasty bane
#

^

distant wraith
hasty bane
#

better than stage channels at least

uneven jacinth
#

Ooh discordjs stuffs going on here now?

hollow bronze
#

looks like threads if they were done properly lol

main brook
#

its just discord api

#

not djs

hardy plover
#

So, this is the lands they talk of?

main brook
#

what?

next lotus
#

interpreter moment

next lotus
#

why does .toArray() in java loses its collection type

#

like bruh i swear everytime i write java code it just keeps getting worse who seriously writes on this garbage lmao

rigid magnet
#

Hi

cloud solar
#

Hi

orchid frigate
#

Which is clearly not you

next lotus
#

in C# a list of strings called with .ToArray() returns an array of strings

#

java being the garbage it is returns a fukin Object[]

#

dont get me started with the shit ton of types for one simple type, like dude what is this bloated trash even people are confused which to use

#

in C# we only have one single Date object to use anywhere and it does the thing

orchid frigate
#

Tell me how many other languages do you know that isnt c#

#

By names

hasty bane
#

english

#

bye nary

#

heck a decimal

#

ok tall

orchid frigate
#

Sometimes I wonder

#

Why is octal a thing

#

Google says its used in the different architectures in programming

#

But I have yet to even hear of it

knotty root
knotty root
#

why would I need more experience?

next lotus
#

hmmmm lets see

knotty root
#

I think you don't even know what Java is for

next lotus
knotty root
#

o yea sure

next lotus
#

cmon pull out your github let me see some

knotty root
#

I do not use github

#

lmfao

#

I don't upload some random shit

next lotus
#

alright it all makes sense now

knotty root
#

yeah sure, if not uploading to github = complete beginner + not even know how to code

#

nice mentality + logic

orchid frigate
#

@knotty root dont listen to him

#

he is the microsoft fanboy of the channel that is only here to advertise microsoft

knotty root
#

it's alr I won't get mad at some random guy in a big server

knotty root
orchid frigate
#

C languages are my favorite

#

but I pretty much only use c++/C

knotty root
#

I think he trashtalked Java because he saw a youtuber who trashtalked it

orchid frigate
#

I never use c# because its not compiled and too high level

knotty root
orchid frigate
#

ye

knotty root
orchid frigate
#

my favorite language is rust tho

#

its really nice

knotty root
#

mine is Javascript

#

I like it

#

not because of beginner friendly

orchid frigate
#

thats a very based opinion

#

but I like it

knotty root
#

I'm more likely a front end "developer"

orchid frigate
#

some of my opinions are quite based too

orchid frigate
#

I work on the lowest of levels

#

like os level

knotty root
#

that's gotta be hard an painful

orchid frigate
#

not alot of money in the field but its interesting

orchid frigate
#

its not more difficult than using a very big library

#

unless you wanna do things from scratch

#

then its....its painful

next lotus
#

@knotty rootdude you're a complete beginner lmao

#

front end developer sure wow cant beleive learning html took me 3 years

orchid frigate
next lotus
#

but he insulted c#

#

i cant let that happen :):)))))

orchid frigate
#

I also insult c#

#

I think its worse than rust

next lotus
#

:((

orchid frigate
#

it has a wordy syntax

next lotus
#

i know but

orchid frigate
#

and I wouldnt write it

#

cry about it

knotty root
#

that's why you don't know shit about Java

#

It took me like max 6 months to learn

knotty root
#

that's literally my main language rn

knotty root
#

used in different scenarios

next lotus
#

ohfuc friendly fire

knotty root
#

can you answer it?

next lotus
#

i dont know where

knotty root
#

nowhere bro

#

💀

barren shale
#

you're moth'er

cloud solar
#

I didnt know that

distant wraith
#

Message command. Jerry

cloud solar
#

Like the bot

distant wraith
#

Python.

cloud solar
#

Is there any tutorial ?

distant wraith
#

For coding?

#

Nah, phone.

cloud solar
proven kestrel
#

I use phone too

barren shale
#

imagine using phone for coding

distant wraith
#

No PC.

barren shale
#

tell me you use a keyboard at least

next lotus
#

programming on phone...

distant wraith
#

Keyboard?

barren shale
#

instead of your phone's

next lotus
#

dont tell me you're using onscreen keyboard

distant wraith
barren shale
#

alright

#

stoopid

next lotus
#

salute

barren shale
#

go buy a bluetooth keyboard

#

its like 20$

next lotus
#

no just buy a laptop in general lol

barren shale
#

or a cheap pc

#

which is cheaper than a cheap laptop

#

but if you cant afford it

distant wraith
#

Nah.

barren shale
#

buy a bluetooth keyboard

next lotus
#

i can barely debug on a 1366x768 screen like just how do you do it in a 7 inch screen

distant wraith
#

I just code for fun. dankJerry

barren shale
#

did you just compare resoultion and size

next lotus
#

when was the last time coding was fun

#

yes i did

barren shale
#

you can probably find something for less

distant wraith
distant wraith
# distant wraith Message command. <:Jerry:543929090974023690>

Also, here's a dumb code I made.

@bot.message_command(name="Get embeds as JSON")
async def A(ctx, message):
    A = message
    if A.embeds:
        for (B, C) in enumerate(A.embeds):
            await ctx.respond(
                file=File(
                    fp=BytesIO(
                        bytes(f"{C.to_dict()}", encoding="utf8")
                    ),
                    filename=f"{B+1}-embed.json",
                ),
                ephemeral=True,
            )
    else:
        await ctx.delete()
hasty bane
#

weird pycord user

hollow bronze
#

classic pycord with having 50 indents of gibberish to do a simple task

#

then again that was one of the first programming things I did, and so I have memories of being terrible at it

distant wraith
#

Replit.

distant wraith
#

At start?

#

At making account?

#

Create a repl.

#

Select a language you want to make bot.

#

Like Python or Java.

main brook
#

no

#

no

#

you're better off with termux

#

or pydroid

next lotus
#

at first i thought it was ok bc u might be using an app as an ide but

distant wraith
hasty bane
#

im surprised dpy havent released v2 yet

barren shale
hollow bronze
#

why would you care

#

use the language you prefer for a discord bot

next lotus
hollow bronze
#

I've used js, python, and c# for discord bots and quite frankly I could use any of them interchangably and not really care

wet girder
#

when dpy v2 comes out it will make making discord bots with python viable again lol

distant wraith
hollow bronze
#

the one thing is accessing newer content

#

I know dpy wasn't as fast to access that as js was officially

wet girder
#

there's so much new and good stuff that dpy doesn't have that it's painful

hollow bronze
#

but I could do 3rd party python stuff on top of it and access it

hollow bronze
#

bots used to literally just read messages and maybe make an embed

#

no buttons, dropdowns, slash commands

#

and all of the new new stuff thats coming out

#

shame that it took them so long

wet girder
#

yep

next lotus
#

the only time

#

coding is fun

#

lol

hollow bronze
#

getting to play with the code?

#

in some ways yes

#

in other ways:

oh fuck thats a bug, and thats not right, and AAAAAAA

wet girder
#

coding is not that fun but programming is fun af

hasty bane
#

can you send me a slash command example for discord net because what i've seen melted my eyes

crimson pelican
#

There's a difference between coding and programming?WowPika

wet girder
#

coding is just writing code. No problem solving, planning etc.

#

Programming is a bigger combination of things to do

#

when you code you just turn already planned software architecture into code

#

but in programming you first have to think how tf something works

#

then write it to code

crimson pelican
#

Oh i seeWowPika

#

Thanks for the enlightenment wbhi

barren shale
hasty bane
#

what is this

#

this is really bulky

distant wraith
orchid frigate
#

Why not have negative IDs

hasty bane
#

idunfukinknowman

#

its weird as fuck

#

everything else looks more or less normal

barren shale
barren shale
hasty bane
barren shale
hasty bane
#

you're actually right

#

lmfao

#

fuck

#

i thought it was some kind of option thing adder

hasty bane
#

wbshy dude this is actually looking good

#

im considering quickly moving my disnake project to discord.net

#

while its still small

next lotus
#

cant you put all of these in a loop literally the only thing changing is A, B and C

next lotus
orchid frigate
half warrenBOT
#

🔇 Muted DANI#6840 indefinitely

barren shale
hollow bronze
#

when messing with .net discord

#

since c# is pretty good at that

#

mostly because I didn't want a billion lines of code for like 10 commands

knotty root
#

you guys willl probably kick me for asking this here but why does the game force a low framerate at 18000 people for me ?

#

i assume you'll actually know why

hollow bronze
knotty root
#

i checked with the game running in windowed and task manager at the same time

#

my cpu is like 30% used

#

and my gpu even less

#

its 45 frames at 8000 people

hollow bronze
#

optimization and usage from dev's end I believe

knotty root
hollow bronze
#

does the same for me

knotty root
#

thank you for the help

knotty root
#

youre the third person to say the same

hollow bronze
#

i looked into it, but I couldn't find anyway on our end to fix it

knotty root
#

oh shit

#

that kinda annoying

#

thanks

#

for the help either way

#

you kinda prove it

hollow bronze
#

here is something that may or may not improve fps

knotty root
#

alright

hollow bronze
#

for game stuff specifically I would advise #🔧modding-talk, but this is sort of a unity thing more than a specific worldbox thing I think, but I'm not super in the know

knotty root
#

oh okay

#

ill try to do taht

#

so i should change the values to 1?

hollow bronze
#

if those lines already exist

#

for me they didn't exist

knotty root
#

oh

#

otherwoise i should paste trhem at the top?

hollow bronze
#

yeah that should work

knotty root
#

alrgiht

#

thank you

hollow bronze
#

no idea how much performance

#

its used in other games, something about letting GPU work harder or more

knotty root
#

ohhhh

#

i see

#

akrgiht

#

theres literally three lines in the boot thingy

hollow bronze
#

yeah should be the bottom three

knotty root
#

this?

hollow bronze
#

yeah that'd probably work

knotty root
#

alrgiht

#

lemme boot the game up

#

and try

#

you see

#

hahaa

#

my gpu is a HUGE bottleneck in my poc

#

p

#

pc

#

but either way it is barely used in this game

#

that help a lot

hollow bronze
#

im not sure how unity or multithreading or any of that works when it comes to the performance, but I think its for the developers to try and adjust to get better usage

knotty root
#

i hope they do

#

if they play their own game theres no way they dont notice

#

oh

#

also

#

144 hertz not supported?

#

it says it is

#

but doesnt work at all

hollow bronze
#

game is locked at 60 fps

knotty root
hollow bronze
#

I already talked about it to the dev

knotty root
#

even with vSync off

knotty root
barren shale
#

why would you need anything more than 60 hz on worldbox

#

you can't see the difference

hollow bronze
#

it is smoother

#

same reason people go from 60hz to 120 or 144 or whatever for monitors

#

I mean it is straight up noticeably smoother in 144 for me

#

nowhere as strong as 30 to 60 for me, but it is nice

#

also another thing is that my fps would drop below 60 when its lagging slightly and thats less noticable when i lock it to like 75 or whatever

wet girder
#

60hz is bearable but damn is 120 or 144 better

hollow bronze
#

in my personal experience its just smoother. Worth shelling loads of money over? probably not

wet girder
#

I can't see lot of difference between 120 and 144 tho

hollow bronze
#

i have 75hz monitor as my main and a 144hz as my secondary atm

wet girder
#

I have 2 75hz monitors atm

#

same monitors because I got them for cheap lol

hollow bronze
#

144 was my main for a while, but my large one i got so that i now have 2 monitors is larger but less hz

#

I should probably game on the 144 one but its a pain to move it to the center everytime i do that

wet girder
#

I wouldn't bother if you don't tryhard

#

doesn't affect that much

#

but when tryharding every little bit helps

hollow bronze
#

I mean its just a nat upgrade, but it wont completely ruin the experience to not

#

I use second monitor moderately. Extremely useful when making something in blender or unity

#

reading docs or watching videos while going along

#

amazes me people do that on a laptop

wet girder
#

When I do Unity stuff I wish I had 3 or 4 monitors

#

I have 3 at school and it's really damn nice

wet girder
#

He works from our sofa mostly lol

#

And I know he uses like 6 applications at the same time because he showed hes development environment and it's fucking crazy

#

lol had to take my lunch break an hour early because windows started updating

#

tbf it did warn me yesterday but I completely forgot to do the update after I was done

hollow bronze
#

windows is evil

wet girder
#

working with html elements be like

barren shale
#

at least when you got a decent population

barren shale
hollow bronze
#

I mean technically I guess you could solve optimization by having a god CPU

#

or you could just work more efficiently

#

looks like the utilization of the cpu and gpu is maybe lacking. I've tried looking into it but with less than helpful results

#

but I find having smoother results even if its part of the time is nice

#

even simply having just above 60 makes it feel less laggy

#

from my own debugging I found it had lots of its usage simply from code.

#

main methods like mapbox that is the like father of a boat load of the things in the game

#

not sure how you optimize that without just going in and trying to shimmy performance out of every method

#

bottlenecks perhaps? i havent done any unity optimizations myself

wet girder
#

time to create WorldBox optimization mod and go through the pain troll

hollow bronze
#

eh

#

maybe make changes to the assembly on my own side

#

but at the end of the day if I could solve optimization I'd just tell maxim and have him include it

#

since optimization is an issue they want to solve too

#

i get kind of a extreme effort to reduce as much as possible as a mod, but i kinda just wanna know what causes it to use as low as it does gpu and cpu wise

wet girder
#

does WorldBox use more than one core?

#

Like I know Minecraft is single core and bottle necked af because of it

#

so could there be something similar with WorldBox?

hollow bronze
#

im thinking thats possible

#

which is why im currently pulling up a performance viewer or something so i can see what cores are being used

wet girder
#

if the cpu usage is like 30% when playing it could be using only one of the cores and pushing that core to it's limits

hollow bronze
#

yeah thats about right

#

30%

#

gpu sits at like 5%

#

and im not super laggy but like 45-55 fps

#

which is not optimal

wet girder
#

WorldBox probably doesn't need to use the GPU a lot lol

hollow bronze
#

its not as bad mobile wise because mobile moment

#

but pc you really notice performance

wet girder
#

yep

hollow bronze
#

especially when you have a rig like mine which can play modern games fairly decently

#

tfw ram is my biggest limitor atm

#

i just need to order more lmao

#

i keep forgetting

wet girder
#

this could help see if it's using only single core

wet girder
hollow bronze
#

16

wet girder
#

that's not bad

#

it's decent

hollow bronze
#

yeah it was nicer probably 6 years ago

#

to have 16

wet girder
#

yeah lol

hollow bronze
#

these days im eating like 10 gb doing nothing

wet girder
#

yeah

#

windows moment

hollow bronze
#

i have 6 cores, neat

wet girder
#

but 32 gigs of ram nowadays is quite good to have

#

and it should be fast as well

hollow bronze
#

ill probably order some ram and new hard drives

#

my 2070 will probably last me a few more years

wet girder
#

Hard drives are kinda obsolete nowadays. SSDs are cheap enough and even sata ssds have big difference to hard drives

wet girder
hollow bronze
#

i meant SSD lol

#

hardware wise im mostly several years back in my head

wet girder
#

lol

barren shale
#

i think the ai

#

is too much

#

and unity sux and multi threading

#

so you just need to get a cpu with higher single core performance

wet girder
#

ai could be run on the gpu I think

#

that could be quite cool lol

hollow bronze
#

hmm

barren shale
#

you can run a lot of things on the GPU

#

but ai would be a bit harder

hollow bronze
#

yeah maybe multithreading

barren shale
#

there are coroutines and that's it

hollow bronze
#

i need a big map

wet girder
hollow bronze
#

or populus rather

barren shale
#

i mean there are jobs and stuff like that

#

so its kinda of like multi threading

#

but its much harder to do

wet girder
barren shale
#

this is too strict

#

and hard to use

#

at least from my experience

hollow bronze
#

something either jobs or similar is used in worldbox

#

for things like boats for instance

wet girder
#

doesn't seem to help that much it seems

hollow bronze
#

maybe just elaborate actions

#

i dont know if its the same or even similar i just vaguely remember

#

will have to look

#

i think its just delegates or whatever so probably not

#

extreme 28% utilization

#

on my cpu

#

on a 20k person map with 20fps

barren shale
#

yeah

#

game isnt gpu bound

#

so its probably needs cpu optimizations

hollow bronze
#

maybe the answer is simple

#

code be lag

#

that said GC.Alloc meant to be making so many calls?

#

looks like each of the spikes gl alloc goes from like 2k to 20k

#

When deep profiling is not enabled The GC.Alloc row entry is used as a catch-all for allocations performed under the stack level it is at.
neat

#

time to continue further down the performance rabbit hole

orchid frigate
#

I have been researching paging and how to translate physical to virtual addresses for a week only to find out that it is specified in the multiboot documentations that everything is identity mapped and I dont have to do shit about it because of it

#

I both hate this and like this

barren shale
#

smh

#

but i think they are already using pools

#

why so many allocations though

hollow bronze
#

in this instance i just needed to enable deep profiler

#

so i could see the individual methods being ran

#

basically they group them all together to prevent lag

barren shale
#

group what

hollow bronze
#

methods\

#

all the code that is using resources

#

so the method has a whole bunch of other methods under it that are ran

#

without deep profile it just groups them together

barren shale
#

oh youre talking about the profiler

hollow bronze
#

yeah

#

doing that i can see what methods in particular are causing most usage properly now

barren shale
#

but its not about methods causing usage

hollow bronze
#

as you can expect actors and buildings

barren shale
#

its about them not causing usage

hollow bronze
#

actually there is one method in the buildings that is causing like 20% of the usage and i dont really know why

#

but im not actually fixing any of that im just curious

carmine willow
#

Question: do we know how long until update becomes available for IOS?

daring star
#

1.14 is out

true quail
#

@stone fractal when is the update coming out for iPhone?

fallow yew
#

rule no.1

#

don't ping maxim

knotty root
#

Insta banned

full spire
next lotus
#

apple is greedy af like 30% cut from in app purchases thats why devs stay away from appstore as much as possible

distant wraith
true quail
main brook
#

like that one guy who had issue with their steam email and asked help here

next lotus
wet girder
past goblet
#

.-

next lotus
carmine willow
knotty root
#

For android when It out the update

distant wraith
#

So coding related.

wet girder
#

Wrong channel again but imagine not having 0.14 on Android yet

#

I've had it for well over a week

next lotus
#

you're using a chat app

#

which is coded

hoary hound
#

@barren shale pong

burnt delta
#

is this the modding server?

#

if so,

#

then heres one I made

wary lodge
#
for i, v in moderators
  console.log("GIVE US WORLDBOX NOW!!! >:(")
end
wet girder
#

but wrong channel

tidal elbow
#

opinions on kotlin ?

#

personally i love it

tidal elbow
#

nice wifi data collection

real flicker
#

T

faint anvil
tidal elbow
#

what

#

it's a helper app

tiny jungle
#

Golira

tidal elbow
#

obtains the wake lock and runs a background service to open up a http page (and a websocket) for our web app to use

#

wake lock acquiring is probably a bad way to go about it but yeah

errant trail
#

omg hacker!!!!

main brook
#

very legit code

next lotus
wet girder
#

I haven't used kotlin so

#

¯\_(ツ)_/¯

next lotus
#

wait a second

#

are those conditional access?

#

you copied those from c#!!!!!!!

wet girder
#

Oh wtf functions are called fun tctNPCCyborgWheeze

#

private fun

next lotus
#

oh no another useless keyword seriously

#

look at how wordy this is

#

this is just csharp int square(int x) => x * x; in c# lol

wet girder
#
square(x) => { x * x };
#

even better in js

next lotus
#

just realized if c# is wordy, other languages are the same or even worse

wet girder
#

js isn't really wordy

#

especially if you use jQuery

next lotus
#

a small benefit from a language that isnt type strict

barren shale
main brook
#

hai?.hai?

tidal elbow
#

we do love typescript

next lotus
#

wait a second

#

is that async!?!?!?!!!??

#

you copied that from c#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

main brook
#

retardation???? you copied that from c#!!!!

next lotus
tidal elbow
#

yeah its a way to delay tasks of course

tidal elbow
next lotus
#

another halfassed implementation of async i see

#

no one can perfect it like c#

main brook
#

there's 3 ways

#

of how async works

#

the

#

Future based

#

Promise based

#

and Defer based

tidal elbow
#

python uses defer but can support futures, iirc

main brook
#

it uses Futures

#

literally for all asynchronous

#

threads, processes

tidal elbow
#

ah, didnt think it would with the gil in the way

main brook
#

and asyncio

tidal elbow
#

oh true

#

asyncio.Future

next lotus
#

bad if it spawns a new thread

main brook
#

true the GIL suck

next lotus
#

in c# it only uses one thread as much as possible

tidal elbow
#

so does js

#

that's what promises do

main brook
#

so

tidal elbow
#

they're all on the same thread lol

main brook
#

the futures are ran on that same thread

#

async is 1 threaded

#

or what you call

#

green thread

next lotus
#

but thread pools are like threads waiting to be run

main brook
#

thread pool are for workers thread

#

literally meant

#

to wait

#

until something

#

is wanting to be run

#

multithreading uses os thread

#

which constantly switch

#

at blocking operation

#

you can use processes

#

but if you spawn more than your hardware can provide

#

it'll run similar to multithreading

tidal elbow
#

yeah python does the fake threading doesnt it

main brook
#

yes

#

it uses a green thread

tidal elbow
#

because of the GIL (i saw discussion to remove / adapt for true multithreading but guido didnt wanna)

main brook
#

GIL is important

#

otherwise data would be wack

#

modern server should be built with async

#

because async is good for long waiting operation

#

like receiving messages

#

because it runs other things

#

while waiting

#

unlike threads

#

which just stalls

#

although async sucks on windows

#

because the lack of select()

#

you literally make your own IOCP

#

and its limited to sockets

#

no file descriptor

#

even tho sockets are file descriptor

orchid frigate
#

isnt async multitasking just the cpu switching between tasks really fast while executing them

#

thats what I read on the osdev wiki atleast

main brook
#

async is cooperative

#

it usually works like this

#

task 1 -> wait for task 2
run task 2 -> wait for message
run task 3 -> sleep for 1
task 2 received message -> run task 1 from where task 2 is ran
task 3 done sleeping

#

its cooperative

#

because the

#

await syntax

#

meant you wanna switch

#

to another task

#

like waiting for a respond

#

you await the function

#

and it'll just schedule a function to be called when the server gets a respond

#

it works by waiting for file descriptor

#

so on each iteration

#

it'll wait for x

orchid frigate
main brook
#

no idea

main brook
#

if its ready to be written/read

#

and call its corresponding function

#

and in the function it would mark the task as complete

#

its complex

#

and i devoted lile

#

6 month into it

#

read the source code multiple times

#

threading is uncooperative

#

because of its "operation threshold"

#

after a certain operation or blocking ones

#

it'll switch

#

so you won't know which will be run next

#

in async you can have

#

121212121212

#

but in threading

#

1221122121

#

processes runs in parallel

orchid frigate
#

ok well this is something I will need to remember to read 30 times to understand it when implementing it

main brook
#

basically

#

async is cooperative Task handling

#

threading is uncooperative and undefined Task switching

#

async and threading has its own pros and cons

#

that's why you usually use them alongside each other

#

with worker threads

#

async would run on main thread

#

and anything needed to be run in background that's blocking

#

like file handling

#

it'll be run on the worker thread

#

on the other hand

#

Processes are used specifically to spawn new process

#

a new whole environment

orchid frigate
#

ok so to understand it better I decided to look into what a task is in reality and this makes a whole lot of sense now

typedef struct {
    uint32_t eax, ebx, ecx, edx, esi, edi, esp, ebp, eip, eflags, cr3;
} Registers;
 
typedef struct Task {
    Registers regs;
    struct Task *next;
    //Probably alot of other stuff but the os dev wiki implementation is very basic
} Task;
#

a task is kinda like its own...workspace

main brook
#

its basically a thing

#

that want to be run

#

but needs to wait

orchid frigate
#

its got its own page in memory, registers, everything

main brook
#

well duh

#

its literally

#

a function

#

wrapped in an object

#

for better handling

orchid frigate
# main brook well duh

well thats actually pretty important because that means its got its own virtual memory which is really cool and safe

main brook
#

its in a heap memory

#

but

#

this also introduce

#

an issue

#

what if you wanna share that memory

#

to other Task

orchid frigate
main brook
#

python solves this with Context

main brook
#

Task are good

#

very vague statement

#

tbh

orchid frigate
#

wait no...yes?

main brook
#

what

orchid frigate
#

lemme get ms paint in here

main brook
#

haydot you're giving a stroke

#

usually Task doesn't make its own virtual memory

#

the function itself should do it

#

since all you need for the Task is

#

its execution state

#

and result

orchid frigate
#

I mean

main brook
#

it doesn't allocate

#

the memory

orchid frigate
#

you wouldnt want the user to be able to interfere with physical memory

main brook
#

yes

#

haydot

#

i know

#

i meant the Task isn't required to allocate its own memory

#

for its data

orchid frigate
#

tasks are dumb Im implementing them my own way smh

#

thats how you deal with stuff you dont understand everyone 👍

#

the interesting thing about this tactic is that each time I do it I end up spending 3 months designing something

main brook
#

i spend 1 week

orchid frigate
#

only for it to end up with it being the exact same thing as the real thing

#

but worse

#

and unfinished

main brook
#

👍

orchid frigate
#

alright well ima send a coffee emoji in chat as a sign that I will be leaving for now

#

main brook
#

okie

hasty bane
#

^weirdos talking about async and threads

#

we dont talk about that

cloud solar
#

hi

#

how to open console on android?

knotty root
#

on the debug

distant wraith
#

Termux?

cloud solar
knotty root
#

Go press setting

#

and forgot

#

its on the pins

#

in the help channel

distant wraith
#

Worldbox.

knotty root
#

yes

#

the tutorial is in there

elfin phoenix
#

All samsung users can now install mods on their phones using samsung dex

crisp hornet
#

Fuck you group

#

Ficou bom dia pra vc tbm meu amor e vc como está a vida de jogos de hoje e o dia das mães que Deus abençoe sempre sua vida e sua família e que Deus abençoe sempre sua vida e sua

hoary hound
knotty root
#

is Worldbox in C++, or C#?

wary lodge
main brook
#

which uses C#

main brook
knotty root
errant trail
#

useless fact: my biggest coding project have 350~ lines of code

#
const func = build[state.obj[id].type].src[event];
if (typeof func != "function") return -1;
self = Object.assign({}, state.obj[id], (self || {}))

return func(self);
```and it is filled with this type of cancer
next lotus
#

ok

next lotus
#

ofc it does its javascript

hollow bronze
#

and sometimes remembering what it all does