Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

DELETE CASCADE posted:

materialized views: cool and also good

gently caress yeah

Adbot
ADBOT LOVES YOU

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

CRIP EATIN BREAD posted:

do all the project euler puzzles in x86 assembly. you'll be a bit flipping wizard in a few days.


jesus I can't even imagine coding a sieve of eratosthenes in assembly

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
cool! thanks for the effort, I'll study it carefully tomorrow to see if I learn anything

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
going through the Design Patterns book as a p-langer is very masochistic imo, I'd save that for later, preferably after you at least dabbled into java a bit.

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
a couple of online courses that made a huge impression on me:

CS212 Design of Computer Programs by Peter Norvig is probably my favorite course ever. it's kind of a unique course on algorithms/data structures but a lot more pragmatic.

he also introduces a lot of design patterns in a sneaky way, if you plan to really get into that it'll definitely help to already have the general intuition that Norvig gives you here.

if that's a heavy course to you maybe give it a pause and try CS101 Intro to Computer Science, it's a way more basic course but it touches on a lot of intermediate topics that you may not be familiar with.


Programming Languages by Dan Grossman is a great intro to PLT. It's about learning 3 languages and their key ideas (SML, Racket and Ruby). it forces you to think about a lot of stuff you never really think about in introductory p-lang courses (typing, mutability, scoping, dispatch etc)

compared to CS212 this is hella formal and academic so it may or may not be your cup of tea. Starting with SML may be a huge shock but is totally worth it. I really like this course better than just learning just one fp language in isolation because it puts other paradigms side by side to give you a better perspective.

Symbolic Butt fucked around with this message at 16:52 on Aug 18, 2018

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
now someone should post about SICP and the smart dog book and we're cool

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

my new dog posted:

whats the point of tests
if nothing works anyway
somehow i get paid

I need a shirt of this

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

pangstrom posted:

Whoa. If that guy ever asked me if I had kissed a girl I would kill myself.

edit: unless kissing a girl means something about error handling to him

what

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
that's a good analogy

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
there's so many questions, like how is it harder to parse arrays than json objects :psyduck:

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

gonadic io posted:

b+c always. Its a lifestyle choice

also brute forcing a solution may lead you to a more optimal path to refactoring

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

MALE SHOEGAZE posted:

people doing the emulator 101 thing: what's the ac flag in the condition codes?

nm: auxiliary carry, apparently. also this manual is the best resource i've found:

http://altairclone.com/downloads/manuals/8080%20Programmers%20Manual.pdf

I thought it stood for adjust carry

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
lmao

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Slurps Mad Rips posted:

This is actually pretty neat. setjmp/longjmp error handling in stuff like lua means you need to compile these C libraries as C++ just so destructors run and that's a nightmare. That said, this code is deffo c++11/c++14. result_of_t was deprecated in c++17 and removed for c++20.

A more "modern" code example would look like this. i probably hosed up the perfect forwarding for returning a value but who cares you get the idea

this is me reading this:

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Schadenboner posted:

How can I get myself to a place where any of what you guys are talking about makes any sense?

:(

Symbolic Butt posted:

Programming Languages by Dan Grossman is a great intro to PLT. It's about learning 3 languages and their key ideas (SML, Racket and Ruby). it forces you to think about a lot of stuff you never really think about in introductory p-lang courses (typing, mutability, scoping, dispatch etc)

compared to CS212 this is hella formal and academic so it may or may not be your cup of tea. Starting with SML may be a huge shock but is totally worth it. I really like this course better than just learning just one fp language in isolation because it puts other paradigms side by side to give you a better perspective.

I don't recall if it goes through historical stuff like lisp-2 namespaces, but it definitely puts you into a place to understand what tef is rambling about

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

meatpotato posted:

just wanna thank symbolic butt for posting about that programming languages coursera class earlier in this thread. i'm learning to weird via sml and liking it a lot

:tipshat:

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I agree on point one, C++ exceptions are atrociously bad

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

DONT THREAD ON ME posted:

i'm learning about quaternions now because i'm thinking seriously about game dev. they're cool imo.

btw 3b1b just started releasing a series of videos on quaternions, it's some amazing stuff

https://www.youtube.com/watch?v=d4EgbgTm0Bg

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
maybe in 30 years someone will find a neat application of octonions in programming, it'll be rad

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
the1percent/the99percent

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
in my opinion the all_tiles_connected method is just begging to be broken into at least 3 methods there

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

animist posted:

jonathan blow is mad about rust:

https://www.youtube.com/watch?v=4t1K66dMhWk

dont watch the video. it's way too long. it sucks

I'm the voice he does here:

https://www.youtube.com/watch?v=4t1K66dMhWk&t=711s

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I watched almost all of it, around 30min he finally gets to the main point which is this:

Jonathan Blow posted:

it seems like a little bit of Stockholm's syndrome to me where it's like "oh the borrow checker is so good because it made me program in this certain pattern. but the real reason the borrow checker is not complaining anymore is just that I managed to turn it off but I didn't realize that that's what I did"

and he isn't 100% sure if that's what's really going on, which is fine but I'm not sure why he is wrapping this query in an 1 hour long video rant

btw this is a pattern that I noticed about rust programmers before and in the end maybe he kinda has a point here but just lol at jblow

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

comedyblissoption posted:

the only way you "turn off" the static borrow checker is wrapping your stuff in abstractions like RC (like reference-counted smart pointers) though, and rust idioms typically don't require you to do this

I don't really see how jblow's paraphrased criticism is applicable, and I'm not willing to watch an hour long rant to see him ignore all the benefits of the system

edit: i guess the other interpretation here is i guess he means you start programming in a style you don't need to constantly borrow poo poo in the first place like you might in other languages? i really don't see anything wrong with this

his thesis is something like "she unwittingly wrote an arena-style memory allocator to fool the borrow checker" which seems to be the usual way to go in games written in C++ anyway.

but anyway I still didn't watch the original video by the rust programmer yet but I'm beginning to suspect that she didn't really imply what he's saying she implied, that the "righteous borrow checker guided her to do the right design".

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Sapozhnik posted:

What is an ecs

entity component system

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

crazypenguin posted:

blowhard is mad because Rust got lots of attention, and he feels he deserves all that attention because he feels he's the hottest poo poo ever.

in the end that's really the gist of it

it clearly hit a nerve. a rust programmer talking about game programming, oh my, time to be a condescending rear end in a top hat to this woman, nitpicking a strawman argument.

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

CPColin posted:

Edit: Beaten because I was trying to figure out what the gently caress font that was. It's either Kabel or Koblenz, apparently.

oh cool I'm not the only one feeling bugged by the font

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Finster Dexter posted:

yeah wow this http status code discussion sure is riveting

please don't httpshame in the terrible programming thread

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
well tbf c++ is kind of bad so that may have been a good call

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
"#pragma once" used to be a bit problematic on GCC so people avoided it for a while iirc

fake edit: from https://gcc.gnu.org/gcc-3.4/changes.html

quote:

File handling in the preprocessor has been rewritten. GCC no longer gets confused by symlinks and hardlinks, and now has a correct implementation of #import and #pragma once. These two directives have therefore been un-deprecated.

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I'm learning Q now

https://twitter.com/symbolicbutt/status/1049358129987801088

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Zlodo posted:

phonetically Q is butt in french so it makes sense

lol

current q report: working with dates feels really nice but q is hella weakly typed so this is biting me a lot

like check this out

code:
q) handle_variable:hopen `:localhost:5010     / connects to a q server at localhost:5010 and assigns to handle_variable
q) handle_variable "2i+2i+2i"                 / you can execute q code at the server this way
6i
q) handle_variable                            / it's... actually just an int32?
428i
q) 428i "2i+2i+2i"                            / so you can also execute at the server this way. applying a string to the int32.
6i

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

ColTim posted:

Is that the one where if you negate it the code gets run async?

yes!

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Doom Mathematic posted:

You're in luck! Parsing C++ source code is famously straightforward.

this is one cruel post

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Peeny Cheez posted:

Srsly. Perl has at least one protobuf implementation.

it would be really weird if it hadn't to be honest, that's a totally perl thing to have an implementation of everything

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
lol gently caress newtonsoft.json, it was one of my constant headaches from my C# days

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Soricidus posted:

it’s ok if you’re rigorous with type annotations and don’t try to do “clever” things

spent the day ripping out some pointless metaclass bs someone was far too proud of that ultimately did nothing whatsoever. like we literally had a config file that contained all the necessary information to get exactly the same result with fewer classes and no magic

everyone seems to get a bit crazy when they first learn about some metaclass bs

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I'm trying to learn of good ways to debug embedded C lately, it's kicking my rear end

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

hackbunny posted:

you can add a c++ wrapper in front of a c library/api, and express lots of constraints that are left implicit in c, and make them explicit and enforced at compile time, again with zero overhead compared to handwritten code

this sounds like a neat idea but I never encountered something like this, most of the time I see is just a shallow wrapper to make everything more OOP or something

I'm familiar with a couple of instances where c++ forces you to be more explicit than c and I'm not sure how I feel about that. like you have to be a little more pedantic with casting and type signatures have to be more precise because of overloading

Adbot
ADBOT LOVES YOU

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I solved every AOC problem in less than 24h this year! :toot:

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply