Advent of Code 2018

A little more than 10 days until the AoC. Last year's was really fun, a lot of Anons managed to complete every challenge and one even managed to get the first place!
So here's this year's private leaderboard. I will kick anyone who's been inactive for more than 5 days. Feel free to also create you own if this one's full or if you don't want to kick people.
Here's the code to join: 368748-e33dcae3

Protips: you can create an account on r****t without an e-mail
You can also log in with a github, google or twitter account
Your account can (and frankly should) be Anonymous
This is a great way to learn a new language
The longest prompts aren't always the hardest


Use this thread to discuss the previous year's challenges, recommend each other new languages to try and get ready for the first day.

Attached: 1535526766807.png (3282x2475, 3.35M)

Other urls found in this thread:

adventofcode.com/2017/
google.com/amp/s/gweb-cloudblog-publish.appspot.com/products/gcp/an-in-depth-look-at-googles-first-tensor-processing-unit-tpu/amp/
twitter.com/SFWRedditImages

What kind of coding challenges did you have last year?

And here's a fuckhuge calendar template

All sort of things, cellular automatons, trees, graphs simple string manipulations, etc.
See for yourself adventofcode.com/2017/

Attached: 1515173579835.png (10000x10000, 357K)

Why should I make my account anonymous?

Because we're posting on an anonymous imageboard.

Attached: 1524498999282.png (975x847, 305K)

>tfw deleted my old github account without realizing it was linked to 3 years of AoC

Can't wait, last year AoC threads were comfy as fuck.

this year if there is some interpreter task, I'll actually try to write JIT compiler and outputs byte code and jumps to it

What's the minimum knowledge needed to participate on this?

minimal knowledge is required there are usually 2 to 4 hard tasks and rest is easy as fuck even for complete beginner

use a 1337 haxx0r font for the title and you might as well write-out advent of code.

Iosevka Slab IS a 1337 h4xx0r font.

Is this better?

Attached: 1531065944472.png (10000x10000, 378K)

Just finished 2017 a couple days ago. Hopefully I'll keep up with this all 25 days this year.

Attached: Capture.png (628x688, 36K)

Nice, congrats.

i didn't even understand the first 2017 challenge

>tfw massive brainlet but i deluded myself into wanting to be a programmer and now i have to prove myself against the likes of Jow Forumsentoomen that actually like to do shit like this
>get nervous and start losing my breath when people start talking about their successful CS related careers
>applied for a job at Google, cause why not, and threw up as the recruiter was explaining the interview process
Guys I just wanted to build computers, my degree focus was in CPU design where did it all go so fucking wrong?

Read the examples, how can you not understand them?

do what i did. get good at math, or just study it. then you can always delude yourself that being proficient in an obstenibly harder and purer subject justifies your lack of skill in programming

>CPU design
>google

try softbank, amd, or something else.

>not letting me use my gitlab account
cucked and bluepilled

What is the code in OP's post for?

Is this hard?
I am an automotive engineer but i was responsible of the control system for my uni's electric FSAE car, so i did a lot of "coding" in matlab. I also aced the CS course (C programming) and I am getting into python now.
Would this require more specific knowledge?
I will mainly do it to learn more python

You can do anything with C or Python most people struggle with the problem solving part not with the programing itself

Not really, there are a couple of difficulty spikes but overall it's quite accessible.

+1 for gitlab account.

I would do it in python just because it's quicker. This is mostly a test in problem solving so it doesn't matter that it's not the most efficient option

For joining a private leaderboard.

I'm so pumped, anons. Last December was great. This year I'm going to take a systematic TDD approach, with actual test files rather than just hardcoding in one of the examples and manually checking the result.

I was even thinking about setting it up to automatically submit the output right from the command line if all tests pass, but I don't think it would be as satisfying without seeing the success screen.

Attached: 1532677502377.gif (432x324, 3.38M)

Just did the first one of 2017, didn't need anything beyond basic python - lists, strings and integers. Seems like they are trying to test brainpower more than coding ability.

oh fuck I'm the only one that's using my stupid github account, sorry guys

Where do we go to participate in advent of code?

And speed. The fastest guys are usually done in under 2 minutes.

>these are the kind of people who will be bogging down our leaderboard

Adventofcode(dot)com

Please do not help people that refuse to help themselves. It will only lead to more and more people asking stupid questions where they do not belong

if i roll an even i'll go for haskell just for this aoc
best of luck to you anons

Really lucked out on that one user

I made a plot showing how long it took (in seconds) to get the second star for each day in 2017. The data is from the microsounds private leaderboard. Also I eliminated the points which took more than 2 hours to make the graph more readable.

Attached: 1540588825770.png (9216x6912, 3.18M)

And limited to 30 minutes.

Attached: 1523662753293.png (9216x6912, 3.33M)

>automotive engineer
How does one go about becoming a car engineer?
I'd like to switch careers and also make a car that my home nation can be proud of.

Install gentoo

Google has custom silicon, see TPUs and the pixel visual core.

google.com/amp/s/gweb-cloudblog-publish.appspot.com/products/gcp/an-in-depth-look-at-googles-first-tensor-processing-unit-tpu/amp/

(Of course, one of the authors here is a Turing winner so...... Might be hard to get a job)

What does the winner get? Are there any guaranteed job offers?

I fucking hate people who actually LIKE programming and releasing open source shit for free besides their day job.
I kinda like programming too don't get me wrong, otherwise I wouldn't be here, but what I like more is getting paid for it.
Do people REALLY need to go code shit on github after a long day of work looking at a fucking screen full of code? Just go do something else, fix old cars, mow your lawn, I dunno do something non tech related. Don't set the precedent that 90% of code should be free and the other 10% should be made by people who have open source projects on the side and ruin everybody else's life.

>Day 23: pen-n-paper
My best score of 2017, very cool memories
I'll do it again this year. Even if it means waking up before 6 AM everyday, it was super fun

>hardcoding in one of the examples
jesus christ they teach file i/o in high school, i'm honestly impressed by your autism, not even mad

The point isn't to complete the tasks, but make your programs efficient as possible.

I'm currently wondering how far I will get if I try to do them all in x86 assembly. There is only one way to find out

Imagine being THAT much of a buttmad corporate cuck wage faggot.

welp i guess this is how i learn rust finally

Well, usually there are university courses for thath. If you still can / want to apply you can do either mechanical or automotive eng and end up in the automotive world, but chances are you'll land a more interesting job as an automotive engineer because you will be more specialized. Obviously the drawback is that there are a lot less job possibilities than for Mech engs, but if you develop your skillset well it is a non issue. Also I suggest specializing in vehicle dynamics, as it is more niche ad interesting than structural work and doesn't risk to disappear in the future (sadly) like combustion engines. It is also complemented well by good CS and programming experience, as many companies are looking for someone who both understands the behavior of a car and is good at programming to develop control systems and self driving cars.
If you can't / don't want to follow an uni course you can still work in automotive if you are good at programming, as companies wll team you up with someone with more automotive knowledge for high level programming jobs in control systems and autonomous driving cars.
Sorry for my less than stellar english but it is my second language

>want to not have faggots coding programs for free that then the corporations use to avoid hiring half of the staff that they would've otherwise
>corporate cuck
pick one and only one lol. corps LOVE faggots coding for free and then using that software without spending a damn penny on it

Awesome! I really enjoyed last year's.
Unfortunately I don't get up in time for getting on the scoreboard but at least I'll have the fun of participating.

literally anti-eurofags times

00h CET isn't that bad

Fuck it, joined the leaderboard. Didn't last year, but I guess I have nothing to lose by showing I'm slow as fuck.

Nobody cared about the speed of others in the leaderboard last year. What's important is to laugh at CS graduates and discuss clever solutions in the thread.

>gchan in the naughty list
I wonder what this year's animation will be?
And the porn-quality plot...

Attached: output.webm (660x910, 2.24M)

>gchan in the naughty list
kek
Reddit is still mad they didn't win

because it's advent of math created by some circlejerk academia spergs. don't feel bad if you don't like academic non-problems because the only thing that matters is if you can solve real world problems.

nah, it's mostly stupid math puzzles for CS freshmen. not much CS in there. only stupid number puzzles

Nice bait

are the puzzles kinda like project euler where you answer with a number? also is it ok if i make everything in javascript?

>make two accounts
>log in with first account, see puzzle
>solve puzzle
>log in with second accound, fake some waiting, post solution
>score naive retards on Jow Forums will think you're a god

why?

>keep our secret reddit cocksuck club secret pls

Not always, you can solve them in pretty much any language. Some guy last year was doing them in APL.

The timer starts when the challenge is released.

yeah, the FOSS propaganda in the late 90s really did a job on programmer culture. programmers are the only profession who believe it's immoral to take money for the stuff they create. tell that to any baker or even musician and they will have a hearty laugh. but as soon as a programmer thinks about selling the utility he wrote over the last past months he's getting shamed and bullied because "it's immoral to make money". thanks, based stallman, for killing what could have been a vibrant small business economy

as a business owner I am soo glad about every idiot who wrote some open source library I use. I mean great, thanks for making something useful free. but the little secret is I would also have gladly paid $500 licensing fees for your library I'm using in my product (which I sell).
as a self interested business owner: sheeple working for free is great. keep doing it. you save me a lot of time and money.
as someone who red atlas shrugged: holy fuck you people are retarded, brainwashed idiots.

Just check the challenges of the previous years

Answers are usually a number, sometimes a fairly short string.

user, I want to make the world better, by giving people tools that are actually usable and not using GIMP-level UX. There is no money to be made in doing Linux shit, anyway.

I'm not even a programmer by profession. I just happen to program professionally, because I'm a sysadmin. And I fucking despise the usability of many tools and am sure that others feel the same.

Also the top reddit post from last year was straight up taken from Jow Forums

So will the tasks be actually posted openly somewhere or do I need to get an account for that shitty circlejerk fucksite that these fuckboys are apparently considering their secret club?

You need an account to participate unfortunately
You can use github, google or l*ddit if I remember correctly

The first part of the puzzle is readable without an account, but to verify or see the second half (only unlocked after submitting the correct answer), you need an account.
Just use a throwaway/alt and set it to anonymous.

I didn't post it, but I know I upvoted it.

Someone will probably post their puzzle inputs here.

Happens anyway at request for debugging. Everyone's answer is different to avoid cheating though, except for the reverse engineering one last year