#🪅-progaming

1 messages · Page 51 of 1

hoary sluice
#

i dont want rust to be associated with terrorism

lavish frigate
#

sucks to be you then id gladly throw out my morals for an extra buck

spark tiger
#

like cuz it's hard to reverse engineer a rust malware or something

#

or just a rust executable in general

hoary sluice
#

they lobotomized it kinda

#

itll tell you how to make a bomb

solar thistle
#

cannot find the companion extension in marketplace, and when i installed it from source it showed as installed, but it didnt do anything (and if i look in console i can see that vencord tries to connect to ws://locahost:8765 but can't)

hoary sluice
#

right

solar thistle
#

was told that this didnt belong in support

hoary sluice
spark tiger
solar thistle
lavish frigate
lavish frigate
hoary sluice
#

but also why is how hard malware is to reverse engineer a metric

#

or you mean reverse engineering rust binary to make malware

lavish frigate
hoary sluice
#

that dont kill people

spark tiger
lavish frigate
#

!!!!!!!!!

#

imagine getting out of high school instantly making 90k a year

spark tiger
hoary sluice
#

looking at google lockheed martin pays 158k for network security engineers, thats like a starting salary at any big silicon valley company, now you just gotta pick one that doesnt do terrorism, so not faang

solar thistle
hoary sluice
royal nymph
#

what's wrong with Lockheed Martin

hoary sluice
spark tiger
royal nymph
#

if "vibecoding" actually becomes a thing companies start using, we're gonna have a fieldday with bug bounties

hoary sluice
#

excited

royal nymph
hoary sluice
#

making a script that scours linkedin for vibe coding companies, and collects the ones that have security.txt

royal nymph
#

do you just hate millitary or is there anything actually wrong

lavish frigate
#

☹️

placid cape
#

what

hoary sluice
hoary sluice
royal nymph
hoary sluice
lavish frigate
#

NO WAY

hoary sluice
lavish frigate
#

We’re on the hunt for a Vibe Coder—a developer who doesn’t just write code but orchestrates it through the power of AI. You’ll use tools like Cursor, Bolt, and Windsurf to leverage or API backend system. This isn’t about grinding through syntax; it’s about prompting, iterating, and vibing your way to a brilliant front end product. You’ll be our maestro of AI-driven development, turning ideas into pixel-perfect realities with a workflow that’s as fluid as your creativity.

solar thistle
#

hmm

lavish frigate
#

guess linkedin is also hiring vibe coders now

royal nymph
solar thistle
hoary sluice
solar thistle
hoary sluice
solar thistle
#

i used to find exploits in askcodi because the codestack was so bad lmao

#

i got myself like infinite tokens

#

and full db access

#

😭

royal nymph
#

I wouldn't mind working for a defense company if the job was interesting

hoary sluice
#

pov: any ai company

lavish frigate
#

im gonna be honest

#

if i got the chance to work at lockheed martin i would

#

it just sounds interesting

royal nymph
#

I will become CEO of Heckler & Koch

solar thistle
#

don't judge a book by it's author

hoary sluice
#

you should put a backdoor in their fighter jets

lavish frigate
solar thistle
meager turret
solar thistle
#

i mean you might be able to patch in arbitrary code before launch?

hoary sluice
meager turret
#

if you tell it it can talk about anything it will talk about anything

solar thistle
#

or am i too old-schoool

lavish frigate
#

you zoomers using ollama

#

im still on chat with rtx get on my level

hoary sluice
solar thistle
solar thistle
#

we could get a little more creative and only bugcheck if gps readings are in a range

royal nymph
solar thistle
#

but idk if that would be stealthy

hoary sluice
royal nymph
#

if the company is known to sell to bad actors sure

hoary sluice
#

there probably are good military companies

royal nymph
#

but what if the company only sells to your own country who uses it for defense for example

meager turret
#

oh without changing system prompt ok

hoary sluice
#

but lockheed martin isnt one of them

meager turret
#

good to know

hoary sluice
#

id prefer to do zivildienst but its 3 months longer and austria is constitutionally neutral so idm

royal nymph
#

I wouldn't want to be a soldier but some less dangerous job at the millitary sure

hoary sluice
#

yea im doing cybertruppe in grundwehrdienst

royal nymph
#

I would defend my country but not with my life

lavish frigate
#

i hate my country

#

id only do stuff for my country if it means someone dies

royal nymph
lavish frigate
#

yeah

#

i love when germans say that germany is so bad

#

or so ugly

#

like okay

#

where do you wanna move to then

hoary sluice
lavish frigate
hoary sluice
#

and whether i would do cyber defense or whatever for austria depends on the conflict

hoary sluice
hoary sluice
#

germany isnt close to being the best country

meager turret
#

if you can afford it that is bc i sure cant

hoary sluice
#

its in the top 20 or top 10 for living conditions, definitely, but its not #1

royal nymph
#

Germany is beautiful, its culture and history (with some exceptions) are beautiful, the language is beautiful

meanwhile its politics are atrocious and it's never gonna get better

meager turret
#

yall got lesbians trying to ban gay marriage

lavish frigate
hoary sluice
#

yea and politics are the main thing dragging it down

#

and frankfurt

royal nymph
#

there aren't many countries not getting dragged down by politics

#

most European countries are getting dragged down by politics

hoary sluice
hoary sluice
#

i dont think estonia has particularly bad politics

meager turret
#

like 2 people live in estonia

royal nymph
#

no one wants to live in Estonia

lavish frigate
#

germany is too large to have everything be perfect like some of the other countries up north

hoary sluice
lavish frigate
#

ESTONIA

royal nymph
#

there isn't really a perfect country

hoary sluice
#

id much rather live in estonia than usa

royal nymph
#

some of the nordic countries are pretty close but they suck too

meager turret
#

good luck trying to get social contact over there

royal nymph
lavish frigate
hoary sluice
meager turret
hoary sluice
#

tho thats also a pretty low bar

royal nymph
#

turkey is another example of a country getting dragged down by politics

lavish frigate
#

of the country

hoary sluice
#

if i knew estonian id rather live in estonia than germany

royal nymph
#

Erdogan on his way to revert everything good Atatürk did

meager turret
lavish frigate
#

of course not

meager turret
#

minus like one state i think

lavish frigate
#

i live as far west as basically possible

meager turret
#

so ur my neighbour

hoary sluice
#

east germany is still so much poorer that west germany even tho its the same country

royal nymph
#

the West and East both have their ups and downs

hoary sluice
#

in the west you make more money in the east you can live

lavish frigate
meager turret
#

i dont believe that actually

hoary sluice
meager turret
#

going to germany by train is hell

#

i can travel all the way to the other side of france in the same amount of time it takes me to reach dusseldorf by train

lavish frigate
royal nymph
#

Ich komm dich besuchen @lavish frigate

lavish frigate
hoary sluice
lavish frigate
#

id not

meager turret
hoary sluice
meager turret
royal nymph
meager turret
#

well what u gonna do in liege anyway

lavish frigate
#

idk

hoary sluice
shrewd canopy
#

I just looked at how client edits settings through devtools, and its natively supported

lavish frigate
#

this literally looks like germany just more french

royal nymph
#

It's called PreloaderUserActions

meager turret
royal nymph
#

Vencord.Webpack.UserSettingsActionCreators.PreloadedUserSettings

#

or smth like that

lavish frigate
meager turret
#

apparently

#

that image looks very depressing and its even more depressing that it almost feels like i recognise it even though ive never been there

hoary sluice
royal nymph
#

oh is that video about cursor

#

horror

hoary sluice
#

hence the cursor logo in the top left

royal nymph
#

bro thinks i know the cursor logo

hoary sluice
#

@valid jetty @deep mulch @placid cape we should do ludum dare 57 together

valid jetty
#

LMAO i spent so long trying to figure out what you meant when i saw this in my notification bar on my phone until i clicked on it

blissful haven
#

so i started porting my backend to nextjs but theres a problem

#

i cant run my project with socketio

#

i've made a server.js file in project root but whatever i dont do I get an error

valid jetty
#

it’s not lol you just have the wrong url

shrewd canopy
blissful haven
#

when using .js extension i get a module not found and with ts ts-node doesnt work

blissful haven
valid jetty
#

the whole point of nitter is to let you access twitter from russia + see replies without being signed in

shrewd canopy
# blissful haven yeah im making a game

then why not use websockets? imo, there is no reasons to use socketio in 2025, as its here only for compatibility with extremely old browsers that dont support websockets

blissful haven
#

for now ill stick to socket.io because im most familiar with them

#

i just need to run my project

shrewd canopy
#

whats the error then

blissful haven
#

ive made a server.ts file in the project root with the code from the website

#

and running it gives an unknown file extension .ts

#

my script is the same as on the website

#

"test": "node server.js",

spark tiger
balmy lintel
#

cult

blissful haven
#

what do i do

shrewd canopy
blissful haven
#

> frontend@0.1.0 test
> nodemon --watch ./* --exec ts-node server.ts

[nodemon] 3.1.9
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): **\*
[nodemon] watching extensions: ts,json
[nodemon] starting `ts-node server.ts`
TypeError: Unknown file extension ".ts" for G:\proj\node\chad-project\frontend\server.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:219:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:245:36)
    at defaultLoad (node:internal/modules/esm/load:120:22)
    at async ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:514:32)
    at async ModuleJob._link (node:internal/modules/esm/module_job:115:19) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[nodemon] app crashed - waiting for file changes before starting...```
hoary sluice
dense sand
#

nodemon, that still exists?

blissful haven
shrewd canopy
blissful haven
#

Found 34 errors in 30 files. what

#

all errors are from node_modules

#

from next

royal nymph
#

use tsx instead of ts-node

#

much faster

blissful haven
#

tsx actually started

#

yoo it works

#

ily

#

btw im sorry for being so bad

#

i dont usually do web apps

#

but i lowk want to learn them

balmy lintel
#

whoever created tailwind v4 should die in a ditch honestly

#

so many changes i am NOT gonna upgrade from v3

#

im thinking of getting rid of tailwind overall

dense sand
balmy lintel
#

what

dense sand
#

its basically only about replacing [] for () or something

balmy lintel
#

too much work

#

im just never gonna touch tailwind again

dense sand
#

run a command and it does all the mgiration for you

balmy lintel
#

i love you

dense sand
#

who would even bother with migrating manually

hoary sluice
#

how do i rewrite this in c++

#[derive(Debug, Deserialize)]
pub struct AppConfig {
    pub geocoding: GeocodingConfig,
    pub llm: LlmConfig,
    pub parsing: ParsingConfig,
    pub recording: RecordingConfig,
    pub response: ResponseConfig,
    pub server: ServerConfig,
    pub transcription: TranscriptionConfig,
    pub synthesis: SynthesisConfig,
    pub weather: WeatherConfig,
}

#[derive(Debug, Deserialize)]
pub struct GeocodingConfig {
    pub base_url: String,
    pub user_agent: String,
    pub implementation: GeocodingImplementation,
}

#[derive(Debug, Deserialize)]
pub struct LlmConfig {
    pub ollama_base_url: String,
    pub deepseek_base_url: String,
    pub deepseek_model: String,
    pub ollama_model: String,
    pub implementation: LlmImplementation,
}

#[derive(Debug, Deserialize)]
pub struct ParsingConfig {
    pub rasa_base_url: String,
    pub implementation: ParsingImplementation,
}

#[derive(Debug, Deserialize)]
pub struct RecordingConfig {
    pub device_name: String,
    pub implementation: RecordingImplementation,
    pub remote_url: String,
}

#[derive(Debug, Deserialize)]
pub struct ResponseConfig {
    pub response_kind: ResponseKind,
}

#[derive(Debug, Deserialize)]
pub struct ServerConfig {
    pub host: String,
    pub port: u16,
}

#[derive(Debug, Deserialize)]
pub struct TranscriptionConfig {
    pub deepgram_base_url: String,
    pub local_model_path: String,
    pub local_use_gpu: bool,
    pub implementation: TranscriptionImplementation,
}

#[derive(Debug, Deserialize)]
pub struct SynthesisConfig {
    pub elevenlabs_base_url: String,
    pub elevenlabs_model_id: String,
    pub elevenlabs_voice_id: String,
    pub piper_base_url: String,
    pub piper_voice: String,
    pub implementation: SynthesisImplementation,
}

#[derive(Debug, Deserialize)]
pub struct WeatherConfig {
    pub base_url: String,
    pub implementation: WeatherImplementation,
}
supple whale
#

does any1 know if hung promises get GC'ed?

#

they probably dont right?

#
let x = new Promise(r=>window.onmessage = r)
// ... later
x = null
// ... later exit scope
#

is the promise still in memory?

austere idol
# hoary sluice how do i rewrite this in c++ ```rs #[derive(Debug, Deserialize)] pub struct AppC...

essentially

struct GeocodingConfig {
    std::string base_url;
    std::string user_agent;
    GeocodingImplementation& implementation;
};

struct LlmConfig {
    std::string ollama_base_url;
    std::string deepseek_base_url;
    std::string deepseek_model;
    std::string ollama_model;
    LlmImplementation& implementation;
};

struct ParsingConfig {
    std::string rasa_base_url;
    ParsingImplementation& implementation;
};

struct RecordingConfig {
    std::string device_name;
    std::string remote_url;
    RecordingImplementation& implementation;
};

struct ResponseConfig {
    ResponseKind response_kind;
};

struct ServerConfig {
    std::string host;
    unsigned short port;
};

struct TranscriptionConfig {
    std::string deepgram_base_url;
    std::string local_model_path;
    bool local_use_gpu;
    TranscriptionImplementation& implementation;
};

struct SynthesisConfig {
    std::string elevenlabs_base_url;
    std::string elevenlabs_model_id;
    std::string elevenlabs_voice_id;
    std::string piper_base_url;
    std::string piper_voice;
    SynthesisImplementation& implementation;
};

struct WeatherConfig {
    std::string base_url;
    WeatherImplementation& implementation;
};

struct AppConfig {
    GeocodingConfig geocoding;
    LlmConfig llm;
    ParsingConfig parsing;
    RecordingConfig recording;
    ResponseConfig response;
    ServerConfig server;
    TranscriptionConfig transcription;
    SynthesisConfig synthesis;
    WeatherConfig weather;
};
hoary sluice
austere idol
hoary sluice
#

why did u link my github

austere idol
#

you might want to smash those things in impl into the structs

royal nymph
lavish frigate
royal nymph
dawn ledge
#

char* blobcatcozy

royal nymph
austere idol
meager turret
haughty socket
#

Lets u run a search query and collect all the results in one json

royal nymph
#

selfapp.....

haughty socket
#

This lowk true

#

Is that the new term

elder yarrowBOT
# haughty socket Is that the new term

Topic for #🤖-bot-commands

<:hash:1308638553827315742> 🤖-bot-commands

Legacy bots? Sunsetted. Now, embrace Discord Apps—a cross-platform, cloud-native, API-driven solution designed for omni-channel engagement. 🔄

Unlike guild-bound (not to be confused with Gaming Guilds) bots, Apps provide a decentralized, scalable experience across messages, DMs, user profiles, and even Activities. 🎙️📲 Unlock real-time interactions, AI automation, and smart contextual triggers in one seamless, frictionless flow. ⚡🤖

With microservices architecture and serverless execution, Apps enable hyperpersonalized, data-driven experiences, delivering real-time engagement across your entire Discord ecosystem. Ready to build the future of community automation? 🌟🚀

haughty socket
#

Holy shit

#

End it all

#

Discord explode now

royal nymph
#

idk who created that text

#

i mean it's obviously ai generated but like who generated it

haughty socket
#

They are the goat

nimble bone
#

we need to stay up to date with the times...

#

"we call them apps now" wasn't enough so i added some touch of cloud native AI to it...

#

for the serverless contextual omni-channel rocket experience...

feral coral
#

@shrewd canopy ?

feral coral
#

sorry couldnt find the reply

placid cape
#

I just came home after another competition xd

dense sand
hoary sluice
supple whale
#

man i love when my code just fucking working

#
import { contextBridge, ipcRenderer } from 'electron'
import { type Remote, wrap } from 'abslink'
import type { background } from '../background/background.ts'

const torrent = new Promise<Remote<typeof background>>(resolve => {
  ipcRenderer.once('port', ({ ports }) => {
    resolve(wrap<typeof background>(ports[0]))
  })
})

const main = wrap(ipcRenderer)
#

imagine ipc in 5 loc

#

thats for communicating to electron's main thread, and another 2nd background thread thats running node

formal belfry
#

real

ornate quiver
#

@trail night vee seems to be dead
could you please reload caddy on the vps? you're the only other one with root
sudo systemctl reload caddy

hoary sluice
#

@placid cape

#

are u using rasa

#

if so can we share training data

placid cape
#

wow perfect

#

I didn't use it yet

#

but I'll

radiant juniper
#

Hey, does anyone know how often Webpack module IDs change? Are they reliable for long-term use?

fleet cedar
#

They are not

#

From what I have seen some modules ids are consistent for months, while others can change weekly or more

radiant juniper
#

Yeah kinda what I suspected but wasn't sure, thanks for confirming. I do wanna learn more about webpack code bundeling but I can't seem to find good topic's on it

formal belfry
#

vibe coding is the new trend

dense sand
#

I genuinely cant say if they are taking it seriously or still as a joke

balmy lintel
#

i wish they were joking

#

its the year of bug hunting and cyber security

formal belfry
#

vibe coding is the new meta

hoary sluice
#

@valid jetty @placid cape our teacher hosted a ctf

#

i barely won and missed a bunch of points cause my gpu is garbage and there was a lot of password cracking

placid cape
formal belfry
#

8k views in 8 minutes

spark tiger
#

fell off smh

dense sand
#

has anyone ever used better auth here

#

for some strange reason, im not getting the popup for any social signin

lavish frigate
jade stone
#

@deep mulch fix

balmy lintel
deep mulch
#

I fear what you're doing

ornate quiver
#

ie, I have a module dump from last august and ids don't seem to have changed for the most part

royal nymph
#

pretty sure they are created based on the filename

#

so they will change if the filename is changed

lavish frigate
valid jetty
jade stone
#

WHO INVENTED THIS FUNCTION

#

AH YES, I WANT TO FLOOR A DOUBLE AND GET A DOUBLE

royal nymph
jade stone
#

long

royal nymph
#

not possible

#

double can store massive numbers

jade stone
#

isnt that the same thing with long wires

royal nymph
#

you can store like 1E300 in double

frosty obsidian
#

BigInt

jade stone
#

or am i being stupid

royal nymph
#

long doesn't even get close to that

jade stone
frosty obsidian
#

just use a conversion function silly

jade stone
royal nymph
#

/run ```java
System.out.println(Double.MAX_VALUE);
System.out.println(Long.MAX_VALUE);

jade stone
#

love

royal nymph
#

@rugged berry hi

jade stone
#

@rugged berry

royal nymph
#

bro died

frosty obsidian
#

@rugged berry

#

its back

royal nymph
#

./run a

frosty obsidian
#

@rugged berry

royal nymph
#

it's dead

frosty obsidian
#

its showing as online for me

jade stone
#

@rugged berry /run

println(Double.MAX_VALUE);
println(Long.MAX_VALUE);
frosty obsidian
#

insane bot

nimble bone
#

you mean app right

#

keep up with the times

jade stone
#

huh
its working in their own server

frosty obsidian
nimble bone
#

./run

console.log("50$ steam gift card @everyone @here")
rugged berryBOT
#

Here is your js(18.15.0) output @nimble bone

50$ steam gift card @​everyone @​here
frosty obsidian
#

i just used kotlin playground

royal nymph
#

/run ```java
System.out.println(Double.MAX_VALUE);
System.out.println(Long.MAX_VALUE);

rugged berryBOT
#

Here is your java(15.0.2) output @royal nymph

1.7976931348623157E308
9223372036854775807
royal nymph
#

yop

jade stone
#

how

royal nymph
#

Double is not precise

jade stone
#

no, how did it run now but not a minute ago

#

😭

frosty obsidian
#

probably in the middle of starting up

#

@rugged berry

#

it doesn't do the big embed anymore

#

sad

jade stone
#

/help

#

/help
.

rugged berryBOT
#

Update: Discord changed their client to prevent sending messages
that are preceeded by a slash (/)
To run code you can use "./run" or " /run" until further notice

Here are my supported languages:
awk, bash, basic, basic.net, befunge93, bqn, brachylog, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, samarium, scala, smalltalk, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig

You can run code like this:
./run <language>
command line parameters (optional) - 1 per line
```
your code
```
standard input (optional)

Provided by the Engineer Man Discord Server - visit:
https://emkc.org/run to get it in your own server
https://discord.gg/engineerman for more info

jade stone
#

love discord slash commands where you cant escape the leading /

frosty obsidian
#

i think it used to do that when mentioned

frosty obsidian
rugged berryBOT
#

Update: Discord changed their client to prevent sending messages
that are preceeded by a slash (/)
To run code you can use "./run" or " /run" until further notice

Here are my supported languages:
awk, bash, basic, basic.net, befunge93, bqn, brachylog, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, samarium, scala, smalltalk, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig

You can run code like this:
./run <language>
command line parameters (optional) - 1 per line
```
your code
```
standard input (optional)

Provided by the Engineer Man Discord Server - visit:
https://emkc.org/run to get it in your own server
https://discord.gg/engineerman for more info

jade stone
frosty obsidian
#

/run

fun main() = println("hi")
rugged berryBOT
#

Here is your kt(1.8.20) output @frosty obsidian

hi
royal nymph
#

the bot is so bad at java / kotlin

wheat kernel
royal nymph
#

fails half the time

frosty obsidian
#

yeah

#

idk why

royal nymph
#

pr fix

#

/run

fun main() = println("wing wong")
frosty obsidian
#

all it does is call javac/kotlinc

rugged berryBOT
#

Your kt(1.8.20) code ran without output @royal nymph

frosty obsidian
#

maybe they fixed it

royal nymph
#

without output lol

#

okay

frosty obsidian
#

you annoyed the bot

royal nymph
#

/run

fun main() = println("wing wong")
rugged berryBOT
#

Here is your kt(1.8.20) output @royal nymph

wing wong
royal nymph
frosty obsidian
#

its also outdated

#

kotlin is on 2.1.20 now

royal nymph
#

it's open source u know

#

what if u pr

frosty obsidian
#

i think zeet did that before and they took forever to do anything

valid jetty
ornate quiver
#

wing is an ai app

deep mulch
ivory heath
# lavish frigate

its funny because the actual big brain shit compilers can do is not on by default in any of them.

#

on average you can make most (non heavily ASM or intrinsics) programs 50-100% faster with either gcc or llvm by changing a few knobs

frosty obsidian
#

removes some of the challenge imo

frosty obsidian
#

yes

deep mulch
#

do the master and expert

frosty obsidian
#

oh right multiples of 5

deep mulch
#

57

#

3 x 19

frosty obsidian
#

and those insane numbers

deep mulch
#

do you love

frosty obsidian
#

you should make

#

seems easy

deep mulch
#

hopefully

frosty obsidian
#

hard part is designing the puzzles

deep mulch
#

need to make a thing to generate somehow

#

@frosty obsidian you should work with me

frosty obsidian
deep mulch
#

do you know why it would only cache the second response

royal nymph
#

so hard

#

I beat the easy one

frosty obsidian
#

its difficulty is just size

deep mulch
#

it usually takes me 20 minutes to do the master level

frosty obsidian
#

i did the medium one in 2 minutes

royal nymph
#

1:24

#

the high difficulty ones are unplayable on mobile

#

too small

#

guhhhh

deep mulch
#

you will zoom

frosty obsidian
#

i think that 37 is a stick

deep mulch
#

yes

#

37 is a prime number

frosty obsidian
#

too lazy to count to 37

#

that game looks very easy to program

#

I've actually come up with a way to generate puzzles in my head

#

what if i made it before you @deep mulch

deep mulch
#

do you wanna work together

frosty obsidian
#

we can

deep mulch
#

youd be better at ui design probably

frosty obsidian
#

we're lazy so its probably gonna be m3

frosty obsidian
#

im down

#

do you work tomorrow

deep mulch
#

i have school basically all day

frosty obsidian
#

guh

#

insane

deep mulch
#

you love

frosty obsidian
#

drop out

deep mulch
#

wont be home until 6

#

never

frosty obsidian
#

i probably won't hop on computer until 6 too

deep mulch
#

you will lay in bed from now until 6 pm tomorrow

frosty obsidian
#

no ill probably wake up around noon or 1

#

and just be lazy until dinner

deep mulch
#

evil

frosty obsidian
#

unless i decide to actually do some of my schoolwork before then

deep mulch
#

what schoolwork

frosty obsidian
#

history stuff

#

nothing big really

#

just gotta write 120 words

#

not a big deal

deep mulch
#

oh

#

guh

frosty obsidian
#

well i have to do it twice

#

ill do one before dinner and one after

deep mulch
#

@frosty obsidian id be willing to publish to google play
might be funny

#

free of course

royal nymph
#

once you make that game add something where you can see how many squares a marked area is

frosty obsidian
#

yeah that seems fine

royal nymph
#

cause no one wants to count to 37

deep mulch
#

i do

frosty obsidian
#

i don't think we could easily implement boards that large

royal nymph
#

wrong

#

wing so lazy

deep mulch
#

theres lazy grid

#

or might have to draw using Canvas

#

@royal nymph sleep

frosty obsidian
#

horror

royal nymph
#

guhhh why canvas

#

just grid

#

make gtk app with me for that game @deep mulch

deep mulch
royal nymph
#

it's easy in gtk

frosty obsidian
#

easier to do with Box

royal nymph
#

200mb electron app for that game @deep mulch

royal nymph
frosty obsidian
#

how would we do large boards

#

like how would we zoom

deep mulch
#

zoomable library maybe

frosty obsidian
#

pinch to zoom insane

#

easy but insane

deep mulch
#

i pinch you

royal nymph
deep mulch
#

CODEBURGER

royal nymph
#

play

frosty obsidian
#

I've considered making minesweeper in compose

#

its a simple game

deep mulch
#

funny

unkempt shuttle
unkempt shuttle
#

un hell

frosty obsidian
#

im getting around 90 seconds consistently

unkempt shuttle
#

elm my favourite game engine

deep mulch
#

i get the idea

frosty obsidian
#

how

#

flag every bomb

deep mulch
#

why is there no bomb there

#

i dont get it

frosty obsidian
#

that corner is a bomb

deep mulch
#

prove

jade stone
#

@deep mulch you love how i had mono audio selected for months and was wondering why windows had 10x better sound

frosty obsidian
#

(2,2) is marked as 1 and all but one of its surrounding tiles is clear

deep mulch
#

wat do i do here @frosty obsidian

frosty obsidian
#

ill give you a hint

unkempt shuttle
#

hint: there are bombs

frosty obsidian
#

if a 1 is on a corner then its the tile thats caddy-cornering it

unkempt shuttle
#

hint: the numbers are how many bombs are adjacent to that square

frosty obsidian
#

are you sure you know how to play minesweeper

deep mulch
#

the numberi s how many bomb it touch

#

@frosty obsidian@frosty obsidian

frosty obsidian
#

if you know a tile is safe you can just clear it

unkempt shuttle
#

idk minesweeper but ?

frosty obsidian
#

yes

unkempt shuttle
#

im the best

frosty obsidian
#

there are also a few that are definitely safe

deep mulch
#

something doesnt add up here

#

i only have 4 flags left

frosty obsidian
#

you probably messed up somewhere

deep mulch
#

guh?

#

oh

frosty obsidian
#

im pretty sure all of those are bombs

#

except that top left one

deep mulch
unkempt shuttle
deep mulch
#

my unbridled rage consumes me @frosty obsidian

unkempt shuttle
#

this should not be possible

deep mulch
#

always

#

wing died

unkempt shuttle
#

wead

frosty obsidian
#

38 seconds

frosty obsidian
#

the ancient windows version would move the bomb if your first click happened to be one

#

that way the first click was always safe

#

crazy easy seed

unkempt shuttle
#

this site feels really poorly implemented

#

nice ui but the internals are ???

frosty obsidian
#

probably just an extremely basic implementation

#

unaware of certain mechanics

unkempt shuttle
#

honestly fine

deep mulch
#

@frosty obsidian

unkempt shuttle
#

like

frosty obsidian
unkempt shuttle
#

sometimes people just want to make a really nice looking website

frosty obsidian
#

yeah I didnt say it was bad

unkempt shuttle
#

even if it has not-good internals, what matters is that you have fun

#

see undertale

frosty obsidian
#

its kotlin

#

love

unkempt shuttle
#

kotlin? never mind kill that guy

deep mulch
#

@frosty obsidian

frosty obsidian
#

has an android app

#

@deep mulch install

deep mulch
#

soon

unkempt shuttle
#

what's with the "gulf of" names?

frosty obsidian
dense sand
#

someone please tell me that you know how to set build time environmment variables

#

on vercel

lavish frigate
ornate quiver
formal belfry
lavish frigate
#

do you not feed your errors into openai?

valid jetty
#

the errors i get are segfaults in seemingly random places so no i don’t

lavish frigate
#

i then just take them and hammer them into my ram

#

im just kidding i use rust i dont get segfaults

meager turret
#

to complete the rust experience you gotta get a segfault at least once using some niche library

fleet cedar
#

I've gotten a few segfaults when monkey patching the stdlib

#

But that's unsafe so the blame's on me

lavish frigate
jade stone
#

what is this c++ syntax wires

#

can you declare variables in if statments?

fleet cedar
supple whale
#

i like that there's an explicit eslint rule of "dont return assignment" to prevent devs from doing this exact thing

#

its cursed

jade stone
supple whale
#

i've strayed away from this lifestyle a lot

#

i no longer giga micro optimise my code, i keep it readable

#

i use iterators instead of normal for loops, because they are safer and easier to understand

#

i used to do

for(let i = arr.length; i--;){
  stuff(arr[i])
}
#

but like why, for that to matter you'd need to be doing 10mil+ operations per second

#

sure its faster, but not worth the readability

#
for (const el of arr)

is so much better for readability

#

i just got giga used to iterators because most of my interfaces expose data as iterators, because streaming data is simply better

royal nymph
#

the only crime is for (const key of Object.keys())

valid jetty
valid jetty
royal nymph
#

how do you monkey patch the stdlib

do you mean hooking? 😭

supple whale
#

its the intended use case?

#

for in for iterating objects is unsafe

#

VERY unsafe

valid jetty
#

i love if x := y {} in elle it makes code very readable

royal nymph
#

Object.keys(), Object.values() feel counter intuitive to me because you're looping twice

#

once to create the key array then to loop over the keys array

supple whale
#

you're not looping twice

#

but ok

royal nymph
#

yes you are

#

Object.keys is O(n)

valid jetty
#

@royal nymph love?

lexer := Lexer::new(args[0]);
tokens := [Token *;];

while current := lexer.next_token() {
    tokens.push(current);
}
supple whale
#

theres many things that can go wrong

royal nymph
supple whale
#

:^)

#

like its just not worth

royal nymph
#
for (const key in object) {
    if (!Object.hasOwn(object, key)) continue;
    console.log(key);
}
#

this does the same thing as looping over Object.keys

supple whale
#

yeah that has the same time complexity as simply doing for const key of Object.keys

royal nymph
#

it doesn't

supple whale
#

and you're writing extra code and have to worry about other potential cases which hasOwn doesnt cover

royal nymph
#

and also doesn't create an unnecessary array

supple whale
#

bro, both are 2n

supple whale
#

but why

#

its not worth the potential problems and readability fuckery it causes

#

not saying it dont work, just saying why....

#

if you have an object with a few mil keys you're already doing something wrong

#

because thats the only place where the perf really matters

#

and at that point you'd use a map, and not worry about any of the perf issues, or this entire iteration thing

royal nymph
#

personally i just omit the hasOwn check usually cause it doesn't matter

supple whale
#

until someone tries to compile ur lib for es2015 and :^)

royal nymph
#

There aren't many use cases where you need to loop over the keys of a non plain object

#

95% of the time I loop over an object's keys it's a plain object and I know it is

supple whale
#

and i'll do Object.entries(Object.groupBy(Object.values($saved), saved => saved.update ?? ''))

#

and not care

#

XD

jade stone
#

never needed it in for loops

supple whale
#

i rarely ever use while loops anymore

#

like VERY rarely

jade stone
#

Me too

supple whale
#

9/10 times i come to the conclusion that "if this loops has so much data it needs to be optimised, i'll make it a stream and use async iterators instead, and it will be x100 faster"

#

unless that cant be done

#

WASM :^)

pearl stagBOT
supple whale
#

yeah this is awful XD

#

i cant read this for shit at a glance

jade stone
supple whale
#

i mean the code itself is probs good

#

i just like "readable at a glance" type of code

#

if ya get me

jade stone
supple whale
#

where u dont need to use more than 3 brain cells to understand it

jade stone
fleet cedar
#

Bytes can be written

supple whale
#

some of it is so complex, that when i have a bug to fix in them i re-write is from scratch

#

because i'm not sure what my changes would affect

jade stone
pearl stagBOT
supple whale
#

did you mean isLiteralTemplateFragmentOrRegex

#

i'd have to find some of my attrocities

#

but honestly i dont want to

#

here, take async sync recursive object properties ven helped me write

#
type Promisify<T> = T extends Promise<unknown> ? T : Promise<T>

type Unpromisify<P> = P extends Promise<infer T> ? T : P

type RemoteProperty<T> =
  T extends Function | ProxyMarked ? Remote<T> : T extends object ? Promisify<T> & { [K in keyof T]: RemoteProperty<T[K]>; } : Promisify<T>


type LocalProperty<T> = T extends Function | ProxyMarked
  ? Local<T>
  : Unpromisify<T>


export type ProxyOrClone<T> = T extends ProxyMarked ? Remote<T> : T

export type UnproxyOrClone<T> = T extends RemoteObject<ProxyMarked>
  ? Local<T>
  : T

export type RemoteObject<T> = { [P in keyof T]: RemoteProperty<T[P]> }

export type LocalObject<T> = { [P in keyof T]: LocalProperty<T[P]> }

export interface ProxyMethods {
  [releaseProxy]: () => Promise<void>
}

export type Remote<T> =
  // Handle properties
  RemoteObject<T> &
  // Handle call signature (if present)
  (T extends (...args: infer TArguments) => infer TReturn
    ? (
      ...args: { [I in keyof TArguments]: UnproxyOrClone<TArguments[I]> }
    ) => Promisify<ProxyOrClone<Unpromisify<TReturn>>>
    : unknown) &
  // Handle construct signature (if present)
  // The return of construct signatures is always proxied (whether marked or not)
  (T extends { new(...args: infer TArguments): infer TInstance }
    ? {
      new(
        ...args: {
          [I in keyof TArguments]: UnproxyOrClone<TArguments[I]>
        }
      ): Promisify<Remote<TInstance>>
    }
    : unknown) &
  // Include additional special abslink methods available on the proxy.
  ProxyMethods

type MaybePromise<T> = Promise<T> | T
#

didnt fit

#

remote is what ur interested in

#

so you'd do Remote<anyObject>

#

and that'd make it all sync, except for the last call in the tree which is always async

#

because yes!

#

i'm actually afraid of touching this code, but it works, so i wont ever need to touch it again!

#

oh it also can make async constructors

#

so const x = await new ClassName() is a thing

jade stone
supple whale
#

no lol

supple whale
#

WHAT THE FUCK

#

Conversion of type
'import("d:/Webdevelopment/hayase/viteelectron/hayase/node_modules/abslink/src/abslink").Remote<TorrentClient>' to type 'import("d:/Webdevelopment/hayase/viteelectron/hayase/node_modules/abslink/src/abslink").Remote<TorrentClient>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

#

ITS THE SAME PATH AND SAME TYPE

#

WHAT THE FUCK!?

fleet cedar
#

Is TorrentClient the same in both cases

supple whale
#

i'm actually loosing my shit

#

actually insane

formal belfry
#

he is literally the smartest programmer to ever live

hoary sluice
#

@valid jetty im gonna try vscode

#

max 1.5 weeks tho cause im gonna set up nvim on april 4th

hoary sluice
#

ok it has nice features but way too much bloat

deep mulch
#

@royal nymph you will be the next terry davis

supple whale
#

dear person who wrote these types

#

go fuck yourself

torn seal
#

I will be

#

I unfortunately won't be racist nor schizophrenic though

lavish frigate
#

ill be the next terry davis because im racist and schizophrenic

#

(this is a joke)

ornate quiver
#

wow me too

supple whale
#

XD

lavish frigate
#

its funny when i make that joke not when you make that joke

#

vee ban this person

supple whale
#

i'm of a racial minority

#

what are you racist too?

haughty hinge
#

oh god the new ui husk

oblique cape
#

fr

lavish frigate
#

get the hell out of here

hoary sluice
#

(this is not a joke)

lavish frigate
hoary sluice
lavish frigate
#

☹️

#

both of you

hoary sluice
#

😭

valid jetty
#

this align function is always gonna be so cool to me

fn aligned<T>(T size, T align) {
    return (size + align - 1) & ~(align - 1);
}
valid jetty
#

assuming align is a power of 2, which means it only has 1 bit set

so, 64 would be 01000000

align - 1 is 1 less than a multiple of 2, which means that all bits below the single bit are set

so align - 1 is 00111111

now if you do ~(align - 1) that will flip all the bits, leaving you with 11000000, a bit mask that ensures only the bits above the align bit can be set


but right now this function just truncates to the multiple of align, if size = 00000111 (7) and align = 00000100 (4), then ~(align - 1) = 11111100 which means right now if we just do size & ~(align - 1) you will simply truncate down to 0000100 (4) instead of rounding up to 00001000 (8)

if we instead do size + align - 1, there are 2 cases that can occur:

if size is a multiple of align, then size + align - 1 will push it up to 1 less than the next multiple, which means that when truncated we will be left with a value truncated down, which is fine because the value is already a multiple to begin with

if size is NOT a multiple of align, then size + align - 1 will overshoot, which means we will simply truncate down to the next multiple
in the example from earlier, size + align - 1 = 7 + 4 - 1 = 10 = 00001010

NOW if we do & ~(align - 1) we have 00001010 & 11111100 which is 00001000 (8) great!

lets try something which is a multiple already, size = 12 and align = 4

in binary, size = 00001100, align = 00000100

as per before, ~(align - 1) = 11111100
size + align - 1 = 12 + 4 - 1 = 15 = 00001111

now because the & ~(align - 1) operation truncates to align, 00001111 & 11111100 = 00001100 = .....12 again! just as expected


tldr

_ & ~(align - 1) truncates to align
we want to round up, so we do size + align - 1

i LOVE this function so much its extremely powerful but packed into this tiny expression

hoary sluice
#

tldr the tldr

#

i will read this tomorrow

#

?remind read rosiepost

delicate groveBOT
#

Invalid time provided, try e.g. "tomorrow" or "3 days".

hoary sluice
#

?remind tomorrow read this

delicate groveBOT
#

Alright @hoary sluice, in 1 day: read this

hoary sluice
#

omg no not 24h

#

?remind 20h oh rosie my rosie

delicate groveBOT
#

Alright @hoary sluice, in 20 hours: oh rosie my rosie

pearl stagBOT
valid jetty
valid jetty
#

its just so cool

#

omg doing & -page_size is so smart

#

because twos complement means that taking neg will do ~(x - 1)

#

loveeee

fleet cedar
#

& -page_size only works on signed integers though, since - is obviously not defined on unsigned

#

Unless you're doing C++ or something

valid jetty
#

lmao yeah true

royal nymph
#

i mean page_size is a size_t so unsigned xD

valid jetty
#

i love undefined behavior

royal nymph
#

honestly no clue how it handles that - but it works

#

i wrote that ages ago

#

or i might have copy pasted them from elsewhere i dont rember

valid jetty
#

it could do everything everywhere all at once

royal nymph
#

i just need it to align to page boundaries for mprotect

deep mulch
#

@valid jetty hiiiiiii roie

royal nymph
#

idk why it doesn't just align them for u ngl

#

C devs HATE abstractions that make ur life easier

valid jetty
#

what does 0 - 1 return when 0 is size_t? :3

is it:

a) -1
b) 0
c) size_t::MAX
d) garbage
e) segfault

valid jetty
#

spoiler: it can literally be any of them

royal nymph
#

/run ```cpp
#include <stdio.h>

int main() {
size_t test = 0;
printf("%zu\n", test - 1);
printf("%zd\n", test - 1);
}

rugged berryBOT
#

Here is your cpp(10.2.0) output @royal nymph

18446744073709551615
-1
royal nymph
#

peak

valid jetty
#

technically -1 in size_t == size_t::MAX too because the last bit is set so in twos complement (signed ints) its -1 but in unsigned ints its max value

valid jetty
#

thats why i love this function

royal nymph
#

insane

valid jetty
royal nymph
#

that icon kinda looks like a .... and ....

valid jetty
#

?

royal nymph
valid jetty
#

what about it

#

looks like an octopus

deep mulch
#

@valid jetty

#

rooeeee

valid jetty
#

its undefined behavior

#

the behavior may change depending on the compiler you use

deep mulch
#

roie so smart

#

@valid jetty one day I will feed on your mind when you least expect it

valid jetty
#

evil

valid jetty
supple whale
#

1 problem with this tho

#

its only accurate to like 9 0's

supple whale
#

because bitwise operations loose their accuracy at ~10 zeros

#

unless rust changes that

valid jetty
#

you mean zeros as in digits or binary 0s

supple whale
#

decimal

valid jetty
#

because 10 zeros is like 1024

#

yeah ok

#

yeah i think it does break but if your number ever gets that big you can just ((size + align - 1) / align) * align

deep mulch
#

Rosie has the intelligence of 4 people

supple whale
#

true

#

but bitwise is cooler

#

fancy bitwise operations are always cool

valid jetty
#

and faster lmao

supple whale
#

when i know i'm working with small enough numbers i round with |0

valid jetty
#

lmao fair

supple whale
#

its giga fast

#

XD

#

like when calculating color spaces per pixel per color channel

#

using | 0 vs math.round was 20% faster

#

its a lot when you're calculating colors of milions of pixels

valid jetty
#

math.round has no way to be fast tbh

deep mulch
#

@valid jetty hi

valid jetty
#

because its generalized for many kinds of numbers

supple whale
#

yep

valid jetty
#

you cant really optimize it for a specific usecase

deep mulch
valid jetty
#

oh

#

evil

#

@deep mulch it was funnier with genie tbh

#

you rubbed a magic lamp and out of all the things you wished for, your wish was to know of a way to optimize math.round

deep mulch
#

yes

#

@valid jetty

valid jetty
#

i have heard this audio WAY too many times

#

is this the origina

#

l

formal belfry
valid jetty
#

does this count as revision

formal belfry
#

already saw that

deep mulch
#

@frosty obsidian i cant find rule to prevent stuff like this

frosty obsidian
#

okay

deep mulch
#

how fix

frosty obsidian
#

idk

#

i never set up formatters

deep mulch
#

o i was just doing IDEA formatter

#

idk if you would be ok with ktlint

frosty obsidian
#

whatever works for you

#

i always go through every change before i commit anyways

deep mulch
#

lies

#

@frosty obsidian so we're just targetting android right

frosty obsidian
#

if you want to set up desktop stuff you can

#

but i doubt it'd be used

deep mulch
#

same

#

just android for now

frosty obsidian
#

@deep mulch git didn't push my gitignore for some reason

deep mulch
#

i didnt let it

frosty obsidian
#

also you love android studio project templates still using java folder

deep mulch
#

nop

#

ughhh why is it not respecting the editorconfig rule now

#

@frosty obsidian i pushed editorconfig

frosty obsidian
#

pulled

deep mulch
#

@frosty obsidian make readme

frosty obsidian
#

not yet

deep mulch
#

what are you doing

frosty obsidian
#

debug ui for testing the puzzle generation

deep mulch
#

oh

#

want me to setup koin

#

we will also need a thing to store data

#

so maybe Room or something

pseudo sierra
#

wait wrong chat

deep mulch
#

@pseudo sierra eep

pseudo sierra
#

trying

frosty obsidian
#

what data would we store

deep mulch
#

stats

frosty obsidian
#

guh

#

okay

deep mulch
#

itll be cool to have it save across app restart

#

why did my editor font just turn horrendous

frosty obsidian
#

guh sans serif

deep mulch
#

@frosty obsidian do youi use maple mono

frosty obsidian
#

not on my desktop

deep mulch
#

@frosty obsidian you will make icon

#

pull

frosty obsidian
deep mulch
#

love

#

whats 100x100 look like

#

probably will need to remove the padding and overlay grid lines

frosty obsidian
#

overlay?

#

thats the spacing

deep mulch
#

like draw the lines on top

frosty obsidian
#

no idea how to do that

#

100x100 just didn't work

deep mulch
#

why

frosty obsidian
#

idk

deep mulch
#

how

#

what does that mean

frosty obsidian
#

the whole screen was a solid color

deep mulch
#

oh

frosty obsidian
#

this isn't final game ui

#

i just need something to test the generation

deep mulch
#

do you wanna do something like a daily seed

frosty obsidian
#

maybe later

#

would require some form of backend

deep mulch
#

oh

frosty obsidian
#

or big json file embedded in the app

deep mulch
#

could just generate from the current system time

frosty obsidian
#

hm ig

haughty hinge
#

Could you use AMOLED on pc before the update? Without using a client mod?

elder yarrowBOT
shrewd canopy
#

(???)

haughty hinge
#

?

frosty obsidian
#

@deep mulch got it technically working

#

i think i need to find some way to bias the randomness on a normal curve

#

but otherwise it works

valid jetty
#

i feel so silly writing tests like this 😭 is there any way to make this saner

#

its not rs i just want the preview

#

basically there was an error when specifically putting a walrus operator := in parens and then putting extra arithmetic after

#

so like (x := 1) < 2 as an example

#

it was interpreting the : as the ternary end token and decrementing the ternary nesting depth

#

silly

#

i love writing huge tests when this is the whole change to the parser

#

finally you can write this delightful code again

for i in (res := 1)..=10 {
    $dbg(res);
    res *= i;
}
restive wedge
#

guys]

dawn ledge
#

elle fuzz testing when

shrewd canopy
#

Tomorrow

deep mulch
#

guh you didnt

#

i wanna test

valid jetty
frosty obsidian
deep mulch
#

it will take years for you to be satisfied

deep mulch
#

@frosty obsidian froggy

deep mulch
#
println("h")
deep mulch
ornate quiver
frosty obsidian
#

shikaku

formal belfry
austere idol
#

/run

#include <stdio.h>

int main() {
printf("%s\n", __PRETTY_FUNCTION__);}
rugged berryBOT
#

Here is your c(10.2.0) output @austere idol

main
royal nymph
#

/run

#include <stdio.h>

int main(int argc, char **argv) {
printf("%s\n", __PRETTY_FUNCTION__);}
rugged berryBOT
#

Here is your cpp(10.2.0) output @royal nymph

int main(int, char**)
royal nymph
#

better in C++

austere idol
# royal nymph better in C++

/run

#include <stdio.h>
#include <string.h>
int main() {
const char* f = __func__;
const char* pf = __PRETTY_FUNCTION__;
puts(strcmp(f, pf) == 0 ? "same" : "not same");
}
rugged berryBOT
#

Here is your c(10.2.0) output @austere idol

same
austere idol
#

in c its just __func__ (and non-standard extention e.g. tcc will not compile it)

#

/run

#include <stdio.h>
#include <string.h>
int main() {
const char* f = __func__;
const char* pf = __PRETTY_FUNCTION__;
puts(strcmp(f, pf) == 0 ? "same" : "not same");
}
rugged berryBOT
#

Here is your cpp(10.2.0) output @austere idol

not same
hoary sluice
#

is this a random number generator

lavish frigate
formal belfry
valid jetty
#

realistically c won’t collapse but c++ probably will

austere idol
rugged berryBOT
#

@austere idol I received c(10.2.0) compile errors

file0.code.c: In function 'main':
file0.code.c:3:20: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
    3 | int main() { srand(time(NULL)); printf("%d\n", rand()); }
      |                    ^~~~
1720772651
austere idol
#

kinda

valid jetty
#

/run

#include <stdio.h>

int x() { int _; return &_; }
int main() { printf(“%d”, x() % 100); }
rugged berryBOT
#

@valid jetty I received c(10.2.0) compile errors

file0.code.c: In function 'x':
file0.code.c:3:25: warning: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    3 | int x() { int _; return &_; }
      |                         ^~
file0.code.c: In function 'main':
file0.code.c:4:21: error: stray '\342' in program
    4 | int main() { printf(“%d”, x() % 100); }
      |                     ^
file0.code.c:4:24: error: expected expression before '%' token
    4 | int main() { printf(“%d”, x() % 100); }
      |                      ^
file0.code.c:4:26: error: stray '\342' in program
    4 | int main() { printf(“%d”, x() % 100); }
      |                        ^
chmod: cannot access 'a.out': No such file or directory
file0.code.c: In function 'x':
file0.code.c:3:25: warning: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    3 | int x() { int _; return &_; }
      |                         ^~
file0.code.c: In function 'main':
file0.code.c:4:21: error: stray '\342' in program
    4 | int main() { printf(“%d”, x() % 100); }
      |                     ^
file0.code.c:4:24: error: expected expression before '%' token
    4 | int main() { printf(“%d”, x() % 100); }
      |                      ^
file0.code.c:4:26: error: stray '\342' in program
    4 | int main() { printf(“%d”, x() % 100); }
      |                        ^
chmod: cannot access 'a.out': No such file or directory```
valid jetty
#

/run

#include <stdio.h>

int *x() { int _; return &_; }
int main() { printf("%d", x() % 100); }
rugged berryBOT
#

@valid jetty I received c(10.2.0) compile errors

file0.code.c: In function 'x':
file0.code.c:3:26: warning: function returns address of local variable [-Wreturn-local-addr]
    3 | int *x() { int _; return &_; }
      |                          ^~
file0.code.c: In function 'main':
file0.code.c:4:31: error: invalid operands to binary % (have 'int *' and 'int')
    4 | int main() { printf("%d", x() % 100); }
      |                           ~~~ ^
      |                           |
      |                           int *
chmod: cannot access 'a.out': No such file or directory
file0.code.c: In function 'x':
file0.code.c:3:26: warning: function returns address of local variable [-Wreturn-local-addr]
    3 | int *x() { int _; return &_; }
      |                          ^~
file0.code.c: In function 'main':
file0.code.c:4:31: error: invalid operands to binary % (have 'int *' and 'int')
    4 | int main() { printf("%d", x() % 100); }
      |                           ~~~ ^
      |                           |
      |                           int *
chmod: cannot access 'a.out': No such file or directory
valid jetty
#

husk

#

/run

#include <stdio.h>

int *x() { int _; return &_; }
int main() { printf("%d", (uintptr_t)x() % 100); }
rugged berryBOT
#

@valid jetty I received c(10.2.0) compile errors

file0.code.c: In function 'x':
file0.code.c:3:26: warning: function returns address of local variable [-Wreturn-local-addr]
    3 | int *x() { int _; return &_; }
      |                          ^~
file0.code.c: In function 'main':
file0.code.c:4:28: error: 'uintptr_t' undeclared (first use in this function)
    4 | int main() { printf("%d", (uintptr_t)x() % 100); }
      |                            ^~~~~~~~~
file0.code.c:4:28: note: each undeclared identifier is reported only once for each function it appears in
file0.code.c:4:38: error: expected ')' before 'x'
    4 | int main() { printf("%d", (uintptr_t)x() % 100); }
      |                                      ^
      |                                      )
chmod: cannot access 'a.out': No such file or directory
file0.code.c: In function 'x':
file0.code.c:3:26: warning: function returns address of local variable [-Wreturn-local-addr]
    3 | int *x() { int _; return &_; }
      |                          ^~
file0.code.c: In function 'main':
file0.code.c:4:28: error: 'uintptr_t' undeclared (first use in this function)
    4 | int main() { printf("%d", (uintptr_t)x() % 100); }
      |                            ^~~~~~~~~
file0.code.c:4:28: note: each undeclared identifier is reported only once for each function it appears in
file0.code.c:4:38: error: expected ')' before 'x'
    4 | int main() { printf("%d", (uintptr_t)x() % 100); }
      |                                      ^
      |                                      )
chmod: cannot access 'a.out': No such file or directory
valid jetty
#

/run

#include <stdio.h>

int *x() { int _; return &_; }
int main() { printf("%d", (long long int)x() % 100); }
rugged berryBOT
#

@valid jetty I received c(10.2.0) compile errors

file0.code.c: In function 'x':
file0.code.c:3:26: warning: function returns address of local variable [-Wreturn-local-addr]
    3 | int *x() { int _; return &_; }
      |                          ^~
0```
valid jetty
#

0?????

#

/run

#include <stdio.h>

int *x() { int _; return &_; }
int main() { printf("%d", (long long int)x() % 100); }
rugged berryBOT
#

@valid jetty I received c(10.2.0) compile errors

file0.code.c: In function 'x':
file0.code.c:3:26: warning: function returns address of local variable [-Wreturn-local-addr]
    3 | int *x() { int _; return &_; }
      |                          ^~
0```