[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor application acceptance emails are being sent out. Please remember to check your spam box!


[Advertise on 4chan]


File: 1743214572265947.png (91 KB, 291x276)
91 KB
91 KB PNG
>Everybody Codes is a free space for honing your coding skills, experimenting with ideas, and learning from others. At its heart lies the belief that programming is best when shared - whether through solving puzzles, streaming your progress, or discussing solutions.
https://everybody.codes

Advent of Code but in November.
First puzzle opens in a little less than half an hour.
>>
I'll be playing along, but I get the feeling it's not going to have the activity of the AoC threads.
>>
It's out
>>
>The creator's name at the bottom of the page is a link to his LinkedIn profile
Soulless. I already have a job
>>
File: EC-01.png (89 KB, 1043x834)
89 KB
89 KB PNG
It will do. The first few were never going to be overly complex.
>>
Spent probably ten minutes trying to debug a one-liner for the part 3 swap before giving up and just storing one of the names in a temp variable and got the right answer immediately.
Not a good sign for day 1. Still global place 66 though. How many people are participating?
>>
File: 2024 stats.png (16 KB, 972x453)
16 KB
16 KB PNG
>>107096907
Looking at the stats for last year, a few thousand people got around to starting it and barely 200 managed to finish. It's a few percent of the people who do AoC.
>>
File: 1753926503086615.jpg (555 KB, 2048x1152)
555 KB
555 KB JPG
Let's see if this can compare to AoC.. giving it a shot
>>
Why does this guy have to harvest my github email? ::angry::
>>
File: ec_day1.rs.jpg (1.2 MB, 2644x4648)
1.2 MB
1.2 MB JPG
Rustchads rise up
>>
>>107097108
So your data is more valuable when he sells the company. Just make a leddit account with temp mail
>>
Oh, I didn't realize he gives you a different input for each part.
>>
File: ec2025-01.png (108 KB, 556x783)
108 KB
108 KB PNG
I still made 100-ish place taking my sweet-ass time in a language I don't really know
>>
File: carbon.png (457 KB, 1734x3016)
457 KB
457 KB PNG
I have no idea about rust, I'll keep reading the book tomorrow and read some solutions
>>
>>107097030
tbf I'm part of that, only heard about EC a few days ago
>>
>>107097373
What weirdass language is that
>>
>>107097438
f# I think
>>
>thread is 2 hours old
>multiple rustroon solutions
>not a single cnile

/g/ has changed
>>
>>107097580
Ya, they're probably figuring out rust is actually easy to use and just works. Same shit happened with systemd hate quieting down over a decade.
>>
>>107097598
What if you still have your penis though?
>>
>>107096381
MORE!
BLACK!
FAT!
GAY!
WOMEN!
IN!
PROGRAMMING!
>>
>>107097604
Keep it, the typical rust user is a huge fan of gock
>>
Wow these are so easy with Go.
>>
File: quest1.png (167 KB, 1556x1226)
167 KB
167 KB PNG
Not sure if I'll have time to do all of these, but here's quest1.
>>
I guess it's ok. For some reason I find the duck stuff and the yellow and black theme cringeworthy.
>>
>>107097608
Every body is a coding body!
>>
>>107097386
>`if index < 0 { true } else { false }`

Come on anon, you're better than this
>>
>>107097176
>parts 1 and 2 identical except for a single closure
>>
>>107096381
cute ducky
>>
>>107098181
so what?
>>
>>107098195
Unreadably bloated code. Do better next time.
>>
>>107098229
you're afraid about like 3 extra lines in a text file?
>>
>>107097782
>Doesn’t post code
>>
File: carbon.png (245 KB, 1322x1256)
245 KB
245 KB PNG
>>
File: quest1.png (128 KB, 1858x1011)
128 KB
128 KB PNG
>>107097580
They're still parsing.
>>107097791
Golfed and dark mode (for zoomers)
>>
Who is this guy? He's no Eric. Eric weaves eleborate joyus christmas elf tales. He's the george rr martin of our time. I don't care about ducks.
names = "Gaeraris,Thazther,Aurepyxis,Ulkzris".split(",")
inputs = [(x[0], int(x[1:])) for x in "L10,R15,L14".split(",")]
n = len(names)
i = 0
for dir, dist in inputs:
if dir == "L":
idx = (i - dist) % n
else:
idx = (i + dist) % n
names[0], names[idx] = names[idx], names[0]
print(names[0], names[idx])
>>
File: 1.png (1.06 MB, 5708x3712)
1.06 MB
1.06 MB PNG
>>
>>107098991
Um sir did you do part 2 and 3?
>>
>>107099502
I mean the code is unwash ass but that is indeed 3 my good duck.
>>
>>107098153
Sorry, I'm kinda retarded anon. I'll try to get better
>>
where's the /g/derboard
>>
>>107100024
4151e976-7b9f-4fda-bb33-fa7c70fdceea
>>
File: file.png (82 KB, 1207x626)
82 KB
82 KB PNG
>only 75% of people who opened the puzzle solved all three parts
is it the great filter?
>>
File: ec2025-01a.png (126 KB, 576x999)
126 KB
126 KB PNG
>>107097373
Cleaned it up and possibly made it less readable
>>107097438
>>107097454
F# yes
>>
File: ec_day1_unified.rs.jpg (77 KB, 796x391)
77 KB
77 KB JPG
>>107098229
Happy now?

bravo to >>107099368 I couldn't get part 3 to work without making the closure ugly as shit
>>
At the end of the page there's a link that searches for reddit threads on EC:

https://www.reddit.com/r/everybodycodes/search/?q=title%3A%22%5B2025+Q1%5D+Solution+Spotlight%22

If we ask nicely will the duck guy add a /g/ link? We could standardise the thread title so a catalog search always finds it.
>>
File: q1p3.png (137 KB, 1084x834)
137 KB
137 KB PNG
I am still learning Haskell so I'm sure this is dogshit but it was fun.
>>
https://everybody.codes/event/2024/quests/10

part 3 has me felted. I had an extremely neat solution but partially sharing between grids ruins it.
>>
>we have advent of code at home
>>
>>107102118
AoC is too easy, except a lot of anons to get filtered by part 3. Which is p concerning since we have a couple dozen entrants max.
>>
File: 1739977520162285.jpg (40 KB, 447x534)
40 KB
40 KB JPG
don't die
>>
>>107104437
cancer music
>>
>>107101832
what's the puzzle in part 3

I did part 1 by hand, and now I don't want to write the code to do part 2
>>
>>107105005
swappy swap instead of moving
>>
File: part2.png (332 KB, 3760x1988)
332 KB
332 KB PNG
>>107105005
I cocked it up
>>
>>107105047
no not the one for today, that was trivial, look what I was replying to
>>
File: 2024-10-3.png (717 KB, 1880x5172)
717 KB
717 KB PNG
>>107105005
surely this time I got it right
>>
File: 1733451578195162.jpg (43 KB, 424x509)
43 KB
43 KB JPG
>>107105087
I'm way too lazy to do something from last year
Maybe after aoc runs out this year
>>
ah fuck, i heard about this last week and did about half of the last one but didn't remember to get on for the new one yesterday. the top 100 leaderboard is extremely do-able if the guy in 100 took 40 minutes
>>
How common is it for part 2/part 3 to just add extra input/parsing bullshit? Got to day 7 of the 2024 challenge and got pretty annoyed by the extra shit that got added there. I'm not autistic enough to care if your puzzle input isn't exactly the same for each part, but just adding completely new shit to parse is annoying

that said, the fact that this shit drops at 5 PM for me instead of 11 PM with weekend breaks makes it better than AOC by default
>>
>>107103287
>except a lot of anons to get filtered by part 3
you mean today's or just in general?
>>
>For every user who completes this event fully by the end of November,
Everybody Codes will donate $1 to #TeamWater

you are literally killing a poor african child if you get filtered
>>
>>107105297
I will make sure to "get filtered" then.
>>
File: 1750480931970987.png (1.41 MB, 2460x1384)
1.41 MB
1.41 MB PNG
>>107105297
You think if I finish I can email and ask that my $1 be withheld and not sent to africa?
>>
>>107105297
Leave one answer blank until Dec 1st, fuck them kids
>>
>>107105251
It's no overly common but I know there's a few. Quest 10, which was mentioned previously, for example. There's also a number of puzzles that change things around slightly or add a new kind of symbol, but if your parsing code's so brittle it can't handle that then it's a you problem,
>>
>>107105251
One nice feature EC has over AoC is that the leaderboard features a "local time" page. Here you can compare how long it took each person to solve the problem from the moment they opened up the puzzle, so this is time-zone agnostic.

Now of course cheaters can easily circumvent this by peaking early at a thread or with an alternate account, but for the most part, it's useful to see how you'd really place.
>>
>>107105297
(water)filtered
>>
>>107105768
Hopefully AI kills off cheating. Why bother copying someone's code when a bot could solve the whole thing in 30 seconds?
>>
25 minutes until day 2
>>
2024 day 7 is down to 28ms. Still aiming for sub 1ms.
>>
>>107107130
OH FUG 15 MINUTES
>>
File: 1733519959671212.jpg (42 KB, 462x516)
42 KB
42 KB JPG
>>
It's out
>>
FUCK
>>
Oh shoot. This started yesterday.
I forgot about it.
>>
What the hell is part 2 even asking? you multiply [35300,-64910] by [1000,1000] thats fine and easy but then its asking to divide it into a 101x101 grid? And you somehow get that crazy map? I don't understand.. wouldn't it just be [359, -633] over and over?
>>
>part 3
brutebros?
>>
>wasted a bunch of time on part 1 because i misunderstood that x2 was the first number of the second set instead of the second number of the first set
>this part 2
wtf i don't get how to decide on the "area"
>>
how the fuck is [35300,-64910] the "top left" corner if the opposite corner is [36300,-63910]? wouldn't that be bottom left?
>>
File: file.png (868 KB, 900x675)
868 KB
868 KB PNG
>>107107842
>>
File: 1556107209751.png (17 KB, 882x758)
17 KB
17 KB PNG
>>107096381
I'm still solving the 2024 ones, I only started a couple of days ago. I don't feel like interrupting my run right now and starting the 2025 ones. I should've waited and have fun with anons here.
>>
File: 1739902799812738.png (210 KB, 1326x1125)
210 KB
210 KB PNG
They really are going for the AoC-tier clarity with these descriptions.
>>
File: EC-02.png (105 KB, 865x1222)
105 KB
105 KB PNG
Lazy broot after wasting 20 minutes over a stupid bug. I'll try put something better in place at some point.
>>
>solved it in 10 mins
>but spent 50 mins hunting down a bug (using i32 instead of i64)

I hate my life
>>
>>107107874
>y increasing goes down
what is this gay bullshit
>>
>6 off in the part 2 example
well shit
>>
>>107107952
https://en.wikipedia.org/wiki/Scan_line
>>
>>107107942
I tripped up handling division, which somehow worked for part1. Ran out of time, had to run some errands, before realizing what went just as I sat down. Now to make it quick I guess...
>>
File: ec_day2.rs.png (312 KB, 792x1306)
312 KB
312 KB PNG
Too easy
>>
>>107107647
Step in increments of 10, covering 1000 in total. So your first x numbers are

35300
35310
35320
35330
...

That's 101 numbers to reach from the start to 1000 units away.
>>
>>107108059
>before realizing what went just as I sat down

Stuff like this is a reminder that only a tiny fraction of your brain is conscious, and the rest of it enjoys fucking with (You).

>why yes I have the solution, I'll wait for you to give up, or maybe reveal it in a dream
>>
>>107107969
fencepost error nigga
>>
File: ec2025-02.png (229 KB, 667x1705)
229 KB
229 KB PNG
I sure got fooled by those dang 32 bit integers
>>
>>107108115
*went wrong

Exactly. It was some non-local consciousness calling me a retard for not recalling that Quotient rounds negative numbers down by taking a floor.
>>
>>107108165
i don't think so, i verified that the correct number of points are being checked (10201) and the first/last five coordinates from the example are right
>>
>>107108226
>>107107969
I think I had a similar error, check division example 4 from part 1.
>>
>>107108059
>I tripped up handling division, which somehow worked for part1
oh fuck, thanks, i just noticed that i'm doing the same thing. i thought "//" in python just drops the remainder but it does "floor" instead, which fucks up the negative numbers
>>
File: fractal.png (317 KB, 900x899)
317 KB
317 KB PNG
P3 picture
>>
>>107108258
yep it was division, negative numbers were getting floor'd instead of ceil'd >>107108259
>>
thought part 3 was gonna be one of those "brute force wont finish til the heat death of the universe" problems, even my shitty code ran in like a minute
>>
File: pattern.png (208 KB, 1001x1001)
208 KB
208 KB PNG
>>107108286
If you didn't gen an image did you really solve it?
>>
File: file.png (94 KB, 1001x1001)
94 KB
94 KB PNG
>>107108286
>>107108488
yeah, good idea
here's mine
>>
I don't know how to make images
>>
https://everybody.codes/event/2025/leaderboards/time/ranking/everybody/total

>#3 is Hannah Lenk
>github url is Philipp Lenk

Huh, must be a brother-sister team.
>>
>>107108718
ChatGPT does
>>
>>107108735
sir what if it's a troon
>>
>>107108718
https://oceancolor.gsfc.nasa.gov/staff/norman/seawifs_image_cookbook/faux_shuttle/pgm.html

Once you make a .pgm you can imagemagick it into a .png for upload
>>
>>107108757
nta but cool format. thanks!
>>
>>107108735
>>107108739
Now I'm legitimately curious. Has a blog and YouTube with no updates in 4 years, GitHub is just AoC etc, signed up to EC as Hannah but happily linked the "Philipp" repo. Trains are usually sensitive about names.
>>
>>107108735
The real news is /our guy/ tenth got cucked out of top spot by a Canuck
>>
File: file.png (8 KB, 1001x1001)
8 KB
8 KB PNG
>hmm, I wonder what it would look like if you zoomed out?
>pic related
oh, it's just a mandelbrot set
>>
>>107108866
https://www.hu-berlin.de/de/hu/verwaltung/ccww/career-center/lehrveranstaltungen/dozent-in/hannah_lenk

https://www.chessprogramming.org/Philipp_Lenk

It's official: C++ is the language of the neofoid, Rust is for chvds
>>
This is actually the first time I've done a mandelbrot. Cool thanks /g/!
>>
>>107108993
> it didn't upload
embarassing :-(
>>
File: quest2.png (533 KB, 1708x3540)
533 KB
533 KB PNG
Quest2 code. Fun with mathematica's new compiler functions.
>>
uhh guys this is too hard for day 2, my python is too slow
>>
File: unemployed_victory.png (5 KB, 522x186)
5 KB
5 KB PNG
rust-cels, our response?
>>
File: quest2alt.png (476 KB, 1687x3163)
476 KB
476 KB PNG
>>107109096
Same again but using built-in complex numbers. Because I'm retarded, it just occurred to me that despite the examples, we only ever apply scalar division, which makes things easier.
>>
>fractals
Use case?
>>
>>107109220
Are you cutting off the cycles as soon as they go out of range? If you’re waiting until the end, those numbers could become arbitrarily large.
>>
>>107109549
This, you want to break the loop as soon as +/-1000000 is exceeded

Fwiw my singlethreaded python on a Pi4 finishes in less than 60sec
>>
>>107109549
oh yeah, that was it, thanks
>>
File: 2.png (1.21 MB, 5278x4232)
1.21 MB
1.21 MB PNG
>>
wtf is #TeamWater? Africans really need people halfway across the world to buy them water?
>>
File: teamwater.png (1.09 MB, 930x951)
1.09 MB
1.09 MB PNG
>>107110044
Ugh
>>
>>107110044
it's purely performative ofc. probably required something like this to apply for more sponsorships
>$1 per person who solves every problem
That's probably like 10000 zlotys for him, but Jane Street will cover it
>>
File: lol.png (1.38 MB, 1464x1447)
1.38 MB
1.38 MB PNG
>>107110119
>Bangladesh, Cambodia, Kenya, Mozambique, Nigeria, Rwanda and Tanzania
Pay up white man. It's your fault these people cannot drink their water after they pollute it.
>>
>>107110125
I mean, at least there are three countries where white(french) companies are still fucking everything up, but given >>107110119
it just looks like the usual jew bullshit to me.
>>
File: 1747443466991137.jpg (37 KB, 1024x989)
37 KB
37 KB JPG
>>107096381
> missed the start
Too late for me to join?
>>
>>107110227
Not at all. Plus it'll even time you when you open the puzzle, so you can compare your time to complete against others, regardless of when they began.
>>
>>107110125
I have a hot take. If there's a bunch of humans living in an area where water has to be flown in they should move.
>>
Day 2 was too EZ
>>
>>107110297
I have another hot take: They aren't humans.
>>
>>107109585
>60 sec
Fuck, I knew Python was slow but that is just horrible.
>>
>>107110484
Well, I did say it was on a raspberry pi. Also I'm doing some retarded shit that makes it slower. But I placed top 30, so whatever. Python is suitable for this stuff at the non-champion level
>>
File: 1758352138481632.png (510 KB, 639x640)
510 KB
510 KB PNG
>>107110285
Cool thanks, I'll give it a go later today.
How's the difficulty compared to aoc?
>>
>>107110537
You can do some problems from 2024 first to get an idea of the format and what's expected (how the inputs work, how many parts the problems have, and the type of feedback you get when your answer is wrong).

I would say it is close to AoC stylistically and the difficulty has been like AoC on one of the "easier" or less-frustrating years.
>>
File: cool.gif (36 KB, 1001x1001)
36 KB
36 KB GIF
>>
>>107110531
Not blaming you, I'm blaming Python
>>
>>107110563
>gif
Was half expecting a jump scare.
>>
>>107110484
>Fuck, I knew Python was slow but that is just horrible.
Truth.
#CPU: Intel i5-6300U (4) @ 3.000GHz
#Memory: 6951MiB / 15874MiB
#real 1m22.677s
#user 1m22.636s
#sys 0m0.022s
>>107110531
Why is your rapberry pi faster than my thinkpad?
def mult(c1,c2):
x1, y1 = c1
x2, y2 = c2
return [x1 * x2 - y1 * y2, x1 * y2 + y1 * x2]
def add(c1,c2):
x1, y1 = c1
x2, y2 = c2
return [x1 + x2, y1 + y2]
def div(c1,c2):
x1, y1 = c1
x2, y2 = c2
return [int(x1 / x2), int(y1 / y2)]
a=[35300,-64910] # 406954
r = [0,0]
res = 0
for y in range(0,1001):
for x in range(0,1001):
r = [0,0]
included = True
for _ in range(100):
r = mult(r,r)
r = div(r,[100000,100000])
r = add(r, add(a,[x,y]))
if not (-1000000 < r[0] < 1000000 and -1000000 < r[1] < 1000000):
included = False
break
if included:
res += 1
print(res)
>>
>>107110226
>still fucking everything up
Without the white man, these nations wouldn't even have basic transportation infrastructure. There would be no airport, harbour, rail roads or roads. Even viewed as exploiting, you cannot deny the immense technology transfer these nations benefit from. The real problem is probably that they still retain too much autonomy, failed states should be run by an international body until they can get it together.
>>
Can't believe I wrote a complex number library and it turns out you only do one calculation
>>
File: 1760257248266977.jpg (48 KB, 492x449)
48 KB
48 KB JPG
>>107110630
A classic.
>>
>>107110621
My unwashed c++ code executes in milliseconds and I just wrote the first sloppy shit that came to mind this morning before coffee. Unless I somehow blacked out after running the program and woke up minutes later. That is a possibility, will check when I get home
I don’t know what to tell you, man.
>>
File: ec2025-02a.png (170 KB, 592x1416)
170 KB
170 KB PNG
cleaner
>>
is it worth it? I haven't even opened day one.
>>
>>107111865
Depends if ur a faget or no. U faget?
>>
Looks neat, will give it a go tonight
>>
>needs email
w-why?
>>
>>107112077
From reading comments on reddit..
He was going to make it so you could have one EC account, and even if you forgot which service you used to log in, if you picked another one with the same email, it would log you into the same account.
But he gave up on that.
So now it just uses the part before the "@" as one of the possible default name signals if it can't find another.
As it stands now, I think he should remove it as it's pretty annoying.
>>
>>107111865
>your answer for part2 is wrong
>it's a different fucking input file
what the fuck is this niggerlicious bullshit?
>>
>>107112330
>he can't read
>>
>>107112366
AoC always used the same input file for p1 and p2. this sucks in comparison
>>
>>107112374
the thread op clearly states that this thread is about "everybody codes".
why did yo u bring up aoc?
>>
>>107112366
your right, I can't. still fucking gay. I literally wasted all my time on p2 because of this shit. even p3 got me only because the example didn't match up, til I realized that changed too. whatever. I'll try quest 2, but I'm probably self filtering. this is gay in comparison.
>>
>>107112386
because it's clearly inspired by and derivative of aoc
>>
>>107112448
If you hadn't realised by part 3 you can't pattern match. Hate to break this to you anon, but you're retarded.
>>
Free fractal maker

```
fn read(filename: &str) -> (i64, i64) {
let raw = std::fs::read_to_string(filename).unwrap();
raw[3..raw.len() - 1]
.split_once(',')
.map(|(x, y)| (x.parse().unwrap(), y.parse().unwrap()))
.unwrap()
}

fn step(x: i64, y: i64, d: i64, px: i64, py: i64) -> (i64, i64) {
((x * x - y * y) / d + px, (2 * x * y) / d + py)
}

fn part1(filename: &str) {
let (px, py) = read(filename);
let (mut x, mut y) = (0, 0);
for _ in 0..3 {
(x, y) = step(x, y, 10, px, py);
}
println!("[{x},{y}]");
}

fn check(px: i64, py: i64) -> u8 {
let (mut x, mut y) = (0, 0);
for i in 0_u8..100 {
(x, y) = step(x, y, 100_000, px, py);
if x.abs() > 1_000_000 || y.abs() > 1_000_000 {
return i;
}
}
255
}

fn part23(filename: &str, diff: usize) {
let (x0, y0) = read(filename);
let mut ans = 0;
let d = if diff == 10 { 101 } else { 1001 };
let mut pixels = Vec::<u8>::with_capacity(d * d);
for py in (y0..=y0 + 1000).step_by(diff) {
for px in (x0..=x0 + 1000).step_by(diff) {
let result = check(px, py);
if result == 255 {
ans += 1;
}
pixels.push(result);
}
}
let imagefile = format!("pattern_{d}.pgm");
save_pgm(&imagefile, d, d, 255, &pixels);
println!("{ans}");
}

fn save_pgm(filename: &str, width: usize, height: usize, max_val: u8, pixels: &[u8]) {
use std::fs::File;
use std::io::{BufWriter, Write};
let mut file = BufWriter::new(File::create(filename).unwrap());
writeln!(file, "P2 {} {} {}", width, height, max_val).unwrap();
for row in pixels.chunks(width) {
for &pixel in row {
write!(file, "{} ", pixel).unwrap();
}
writeln!(file).unwrap();
}
}

fn main() {
part1("in1.txt");
part23("in2.txt", 10);
part23("in3.txt", 1);
}
```
>>
>>107112581
LOL
>>
>>107112581
don't run this, it creates mustard gas
>>
File: animated.gif (45 KB, 1001x1001)
45 KB
45 KB GIF
How does the formula for the animated mandelbrot stuff work? From what I remember they usually just have it zooming in?
>>
File: carbon.png (927 KB, 1970x5100)
927 KB
927 KB PNG
I fucked up in reading comprehension on part 1 and 2 but at least I've finished it. Still trying to learn rust
>>
File: image.png (75 KB, 2560x1440)
75 KB
75 KB PNG
Its fun to play around with the size and the coordinates
>>
don't forget to join the /g/derboard

4151e976-7b9f-4fda-bb33-fa7c70fdceea
>>
>>107113412
Learning Rust is easy.
>Step 1. Cut off your dick
>Step 2. Go to Github and look for some stressed out maintainer for some obscure FOSS project
>Step 3. Make angry demands that he rewrites it in Rust and introduces a tranny friendly Code of Conduct
>Step 4. ???
>Step 5. Neck yourself
>>
>>107096381
I'm sorta getting rationalist fanfic meets eragon vibes and it's making me puke
>>
>>107114708
>reading the "story"
cringe
>>
>>107111405
>>107110621
Just checked. Like I said, unwashed shit, still 250 ms. WTF are you doing?
>>
>>107097176
>.max().min()
ok, that was based. I didn't know this was a thing. thanks rust bros.
now I wish there was a .between(0..n) as well.
>>
>>107114992
see >>107099368
>>
>>107115038
oh, I see the Ord trait has clamp. cool. thanks.
>>
>>107113445
Kino desu
>>
File: m.png (792 KB, 2001x2001)
792 KB
792 KB PNG
>>
>>107097176
In BQN this is just
  name Is { max Is Length names
i Is LastElementOf BoundSum numbers
i Index names
}
>>
>>107115604
>>107115711
OH NO!!!! RIGHT IN THE HORMONES, RUST-SISTERS!!!
>>
>>107114643
It has some really cool shit. Other things are weird like the loop keyword and not having a ++ operator. But don't worry I always have a C book at hand



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.