#Programming Discussion

2318 messages · Page 3 of 3 (latest)

frail flicker
#

so no public server

#

no port forwarding

#

All that work for nothing

#

So I need ideas of how to repurpose this thing

#

@willow coral you too

#

For specs it’s a 1TB hdd 8gb ddr4 ram and an i3 6006U

willow coral
#

do you have access to your router @frail flicker

#

or to the dhcp server inside your router

frail flicker
#

Yeah

willow coral
#

I have no clue how but i bet youd need to make your dhcp server give the same ip address to that server

frail flicker
#

About that

willow coral
#

its always changing because the dhcp server inside your router assigns it a different address whenever it requests a new one

frail flicker
#

I did a ton of research on this

#

my isp provides their own wan ipv4s for some reason

#

ipv6s too and that’s not necessary

#

I’m under a cgnat

willow coral
#

could you just use ipv6

#

wouldnt that make that not matter

frail flicker
#

Nope

#

ipv6 is also under cgnat

#

Already been on Reddit a bunch of times

willow coral
#

i thought cgnat only mattered for ipv4

frail flicker
#

there is literally no solution

frail flicker
willow coral
#

Ive got nothing i asked my friend to see if he had to worry about it and if so what he did

frail flicker
#

Nope it’s an issue directly tied to my family’s poor choice of an isp

#

nothing I can do about it

#

this server really isn’t good for anything else other than hosting servers or bulk storage

#

It doesn’t have an ssd so I can’t read and write quick to it which means no web server

willow coral
#

are you able to like buy a static ip

#

thats probably the only thing you could do

frail flicker
#

Nah I’m not willing to go that far

#

Aternos exists

willow coral
#

aaternos 🥀

frail flicker
#

167ms baseline

#

it’s fried but it is what it is

#

so grif what should I do with this thing

#

should I store photos there

willow coral
#

Idk

#

you could use it as just a local nas

#

just cant access it outside your network

#

theres probably some use in that still

#

eventually im gonna buy a pc and then im gonna set one up so i can have some static files between the two

frail flicker
#

Eventually I wanna have a little deck with a 4TB hdd and a 1TB ssd any quad core cpu and a lot of ram

#

put Ubuntu on it and use that

hollow sphinx
eternal basin
#

why the fuck is doing anything with C++ on windows So atrocious

#

im probably doing a billion things wrong honestly

#

like using windows in the 1st place

#

I wanted to start learning c++ for a school project
however vscodium which i use Has no Microsoft C++ extension
the only alternative i found is clangd, but getting that to work has proven to be a pain in the ass
it requires a compile_commands json which i read can be auto-generated by CMake
so i decided to look into CMake but now that isnt working because when i run it i get some huge ass error about how it cant compile a simple C program because some .lib files are missing
and on top of all this apparently clang doesnt have the standard library and i dont know what to do about that whatsoever

#

Considering #givingup lowkey and just doing the project in something else like js

eternal basin
sterile narwhal
#

i dont use windows but it seems to me like if you're trying to do c/c++ then visual studio proper instead of vscode would be a better option

rare goblet
#

if they are using vscodium then they probably dont want to use visual studio

rare goblet
eternal basin
#

clang for windows specifically

rare goblet
eternal basin
#

not yet but im doing so rn

rare goblet
#

even if you dont use it you need it for the headers im pretty sure

eternal basin
#

specifically the build tools

rare goblet
#

i know that you have to download it to install rust

eternal basin
#

i'll try

#

ty for the help

eternal basin
#

oh my god it fixed everything at once

#

Thanks a lot

#

very appreciated

hollow sphinx
#

i use clang

#

but you need to change abit so it will acquire the std library

#

idfk how

willow coral
#

i just undid days of work parallelizing code because parallelizing was showing zero benefits and was making the server perform significantly worse

#

im in a good mood

rare goblet
#

paralleliztion is hard to get right

#

running multiple pieces of code at once sounds good but then you start dealing with data dependencies and synchronization and suddenly its not so good

hollow sphinx
#

charmed icons looks good

willow coral
#

Roblox is now brainrot

fervent stratus
#

We lost foo bar to this

abstract rune
rare goblet
pulsar crest
#

(old screenshot)

eternal basin
#

@lilac path random question have you made any progress on that roblox/etoh esque thingy you were working on for a while or is that a scrapped project
also the world of goo 1:1 remake as well im super curious abt that

lilac path
eternal basin
lilac path
#

thanks!! i hope so too!

rare goblet
#

bro what is this new vscode default theme

#

why did they swap around the colors of literally everything

willow coral
#

?

fervent stratus
#

Show

rare goblet
#

it was previously Dark/Light Modern

willow coral
#

oh they just switched that

#

why did they do that dark modern is so nice

rare goblet
rare goblet
willow coral
#

i love that command

boreal topaz
#

my favorite thing to do is make commits in detached checkout and then forget to add it to a branch before leaving 🥰

patent notch
eternal basin
#

to me it seems like git's equivalent of rm-ing /

#

(or is that the joke if so apologies)

boreal topaz
#

nah you’re right nobody in their right mind would do that

boreal topaz
#

you know how when you have two different documents named the same thing and windows doesnt like it and asks you to replace it

#

its the equivalent of that, iirc it basically says fuck what you have in storage, heres what i have and you should only have this

rare goblet
#

(thats a joke i think the feature is okay)

fervent stratus
#

Is there an rfc for this? I can’t find any explaining more about the feature

#

@rare goblet

rare goblet
#

this is the rfc

fervent stratus
#

I mean like the .md file

#

Explaining the motivation

rare goblet
#

click the link in the post

fervent stratus
#

Yep got it

#

I did already click that but saw a code block and closed out

#

let is a great keyword to introduce a local

This made me laugh

fervent stratus
#

It generally just looks nicer as well

rare goblet
#

as long as there is no inheritence then i dont mind

#

if inheritence ever gets added its over 💔

willow coral
rare goblet
#

ok but its kinda peak

willow coral
#

First const now public and private constants

rare goblet
#

i think they have said that they are shifting focus away from the type system and towards new features that more people use (because its sad to say it, but most people dont use strict types)

rare goblet
willow coral
#

const was a different one

#

The example shows public

#

So I assumed private also exists

rare goblet
#

no private in this rfc

willow coral
#

So public and local declarations

pulsar crest
#

my slope is immune to printing

devout finch
#

< 3

eternal basin
hollow sphinx
pulsar crest
#

i still dont know why it wasnt printing but i wasnt looping properly and now it works

urban pulsar
#

@rare goblet check this out

rare goblet
#

pretty cool

hollow sphinx
#

awesome

robust jewel
#

There's no limit
To the Lauu

frail flicker
#

Holy SHIT I just learned today there is literally a Reddit for AI Agents

eternal basin
hollow sphinx
rare goblet
#

idk why but it switches your search engine on chrome to yahoo

eternal basin
#

and people in the replies

#

Though i believe calling it 'malware' is still correct in that case

boreal topaz
#

mcafree is the WORSTTT

#

malwarebytes will always be my lord and savior

eternal basin
#

I've used ESET but only because my dad pays for like a subscription so might as well

#

supporting local stuff is nice too i guess

frail flicker
#

Here we go lads

frail flicker
lilac path
#

incredible

lilac path
#

im glad im on linux and in canada where such bullshit is practically unenforcable anyways but still awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful awful

#

we need to bring back the practice of throwing food at politicians we don't like

urban pulsar
lilac path
# urban pulsar you starting rust?

i actually dont know, ive been prodding around low-level languages like C++, Zig, and Rust, but ive been having the most trouble understanding rust because some of it's concepts are so foreign to me, so i dont know if i wanna actually start really really learning rust, but im curious to atleast understand the basics of it, and how it differs from, say, something like C#

rare goblet
eternal basin
#

like system76 suse and red hat

abstract rune
#

just to ask what does "tables cannot be cyclic" mean?

eternal basin
#

the system76 ceo has been trying to do shit ive heard

#

Im in the EU and it seems questionable whether theyll add something this drastic

#

They have a problem with propaganda on social media so they want to do some age stuff but only for huge platforms with millions of monthly AUs

#

The USA is batshit insane as always though

eternal basin
#

Are you putting the table inside itself?

abstract rune
#

and when i run the script with that, the error said "tables cannot be cyclic".

eternal basin
#

that doesnt tell me enough

#

is it those specific lines?

#

which you sent here

#

or something else?

abstract rune
#

im not good at words but take this with a grain of salt.

#

also despite the fireclient mentioned, i replaced remote function with remote event because i thought it would work but it didn’t.

abstract rune
#

so that you could actually check what was going on.

rare goblet
#

because that code should not be able to error (unless im misremembering and enums cant be serialized but im like 99% sure they can)

abstract rune
#

here it is.

#

@eternal basin, apologies for the ping but it is ready now.

frail flicker
frail flicker
frail flicker
rare goblet
#

Any type of Roblox object such as an Enum, Instance, or others can be passed, as well as Luau types such as numbers, strings, and booleans, although you should carefully explore the following limitations.

#

should be fine

eternal basin
rare goblet
#

the snippet he gave doesnt even use a table though so it shouldnt be possible to get that error

eternal basin
#

Im getting a google pixel and throwing grapheneOS on there

frail flicker
#

can you run graphene on an iPhone

#

That’s what I have

eternal basin
#

nope

frail flicker
#

Thought so

#

If those laws hit Canada then I’ll have to switch to a pixel and run graphene on it

frail flicker
pulsar crest
#

the enum is cyclic

#

because you can do Enum.CameraType.Scriptable.EnumType.Scriptable.EnumType.....

#

to fix it just fire "Scriptable" instead

#

and on the client just do Enum.CameraType[name]

abstract rune
abstract rune
#

i do not know what happened there.

#

apparently whenever you fire any client using remotes it gives me the same error which is very strange

#

like what

pulsar crest
#

i dont know whats causing the error

abstract rune
#

same for me and it is very confusing.

lilac path
# rare goblet what do you want to know about it

mostly things like its trait and enum system, and how certain ways of programming in a class-based OOP language like C# would translate to rust, cuz i know inheritance isn't really a thing in rust, so im curious how things work over in rust world

rare goblet
#

i dont know c# but does it have interfaces? traits are like that

#

a difference from other languages is that structs that implement a trait arent interchangeable (which differs from typical inheritance/interfaces where you can for example make an array of a base class); any function instantiation can only support one struct, which is why you can only declare them on generic types

#

though you can get similar functionality using dyn traits

lilac path
lilac path
frail flicker
#

made with imgui glfw and glad

frail flicker
frail flicker
#

day 2 is over

frail flicker
frail flicker
urban pulsar
#

i just learnt @ is also a symbol used in rust

abstract rune
#

been struggling with vscode recently and it’s always a pain.

#

the same as blender.

hollow sphinx
#

same goes to blender

#

All it take is to find the right tutorial

abstract rune
#

i know, been using luau lsp tho.

rare goblet
#

i just implemented gaussian elimination in mips assembly

#

i do not recommend doing so

#

still have to implement back substitution...

rare goblet
#

big surprise that mips assembly is hard to debug.........

hollow sphinx
#

no way your dealing with assembly

rare goblet
#

its kinda calming in a way

#

just me and my registers

rare goblet
#

i finally finished my lights out solver in mips assembly

#

its over 600 lines

hollow sphinx
#

holy

hollow sphinx
#

should i use zed or neovim for java

#

i heard intellij isnt free

frail flicker
#

neovim cuz notch used it

willow coral
#

Apple did something good for once in their life and now notification forwarding is available worldwide in iOS 26.5

#

And not only in the eu

boreal topaz
#

i miss old apple when innovation was actually occurring

willow coral
#

today i learned the maximum amount of indicies a table can have is 67,108,864

boreal topaz
#

nice

#

im trying to make like a radio/phone system (to learn the audio api) and im wondering if its better to have the audiolistener placed in the player character or in the player camera

noble light
urban pulsar
#

@rare goblet does ReflectionService:GetPropertiesOfClass have a way to only show properties that can be writable

rare goblet
#

the results should have a property for whether they are readable/writable

urban pulsar
#

i only want like the ones which actually matter

#

nvm im just gonna hardcode it, cause its only 1 instance and 4 properties

rare goblet
urban pulsar
willow coral
#

@urban pulsar

#

what on earth could this be

rare goblet
#

export isnt even added to luau yet

hollow sphinx
#

They alr adding const

patent notch
#

Are they turning luau to JavaScript or smth

#

Speaking off, I had this thought a few hours ago that Roblox should make a new language called "luaux" xD
It's basically luau, but you can put HTML tags in it and it's for use with react-roblox or smth

#

just a funny thought

rare goblet
#

people already do that with tsx to luau

urban pulsar
#

@rare goblet is it possible to disable the roblox died state

#

so that 0 health does nothing

willow coral
#

It’s impossible to disable it, it’s only possible to delay it

urban pulsar
#

@willow coral ?

willow coral
#

I tried a lot of things when we added ghost mode

#

I found that it was only possibly to delay the death state

#

It’s impossible to take a humanoid out of the death state or transition to death state once into it

#

A lot of maps use .Died events to cleanup stuff we aren’t able to make some custom death wrapper even if delaying would work which I don’t think it will since I think that might mess up other state transitions?

urban pulsar
#

if we prevent players from dying though .died wont be called which is what we need no?
can we not reenable the state when we want .Died events to be ran? (at the end of a round)

urban pulsar
willow coral
#

using a custom death handler could screw up maps

urban pulsar
#

in what way

#

the idea is to seamlessly transition from ingame to ghost when "died"
by removing the death state, we are essentially treating like the players are still in the round

rare goblet
urban pulsar
rare goblet
#

works fine for me

urban pulsar
#

hm @willow coral

willow coral
#

you can do that but if you are in the state i found that you get stuck in a waiting to die situation

#

impossible to get out of this state once in it

rare goblet
#

not in my testing

#
local h = game.Players.LocalPlayer.Character.Humanoid
h:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
h.Health = 0
task.wait(5)
h.Health = 100
h:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
urban pulsar
#

@rare goblet

rare goblet
#

cool

eternal basin
#

what are some good UI frameworks for roblox

willow coral
#

youve got fusion or react

#

there might be a third but i cant remember the name of it so idk if its relevant

#

we use fusion for tria.os

eternal basin
#

ill check it out

#

tyvm

rare goblet
#

i love fusion

#

i dont like react because having a virtual dom just feels detached

#

fusion has you actually work with instances

willow coral
#

yeah i like fusion aswell