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.
 
  • Locked thread
A Pinball Wizard
Mar 23, 2005

I know every trick, no freak's gonna beat my hands

College Slice
:bsdsnype:

----------------
This thread brought to you by a tremendous dickhead!

Adbot
ADBOT LOVES YOU

PokeJoe
Aug 24, 2004

hail cgatan


im taking a data structures class on the internet. p. much all my working programmer friends said that's as far into their cs degree as they ever use at work.

brap
Aug 23, 2004

Grimey Drawer
no you don't get it if it's not Java or c# it isn't really programming

Space Whale
Nov 6, 2014

PokeJoe posted:

im taking a data structures class on the internet. p. much all my working programmer friends said that's as far into their cs degree as they ever use at work.
aren't DFAs and NDFAs sometimes used 1% of the time lol

~TRIVIA ABOUT REGULAR LANGUAGES~

Joe Law
Jun 30, 2008

my school teaches java and then c, with some x86 in comp arc classes, which I actually think is a pretty good way to do ti

my only complaint is we have an upper level class that is basically just "memorize the POSIX api" which is an awful class everyone hates but is taught by an awesome professor who drops sex jokes all the time so its chill

karms
Jan 22, 2006

by Nyc_Tattoo
Yam Slacker

PokeJoe posted:

im taking a data structures class on the internet. p. much all my working programmer friends said that's as far into their cs degree as they ever use at work.

which one

Malcolm XML
Aug 8, 2009

I always knew it would end like this.

Joe Law posted:

my school teaches java and then c, with some x86 in comp arc classes, which I actually think is a pretty good way to do ti

my only complaint is we have an upper level class that is basically just "memorize the POSIX api" which is an awful class everyone hates but is taught by an awesome professor who drops sex jokes all the time so its chill

lmao @ ur terrible university

Malcolm XML
Aug 8, 2009

I always knew it would end like this.
the best systems computering course i know of just makes u write a kernel in like 10 weeks

Malcolm XML
Aug 8, 2009

I always knew it would end like this.

Malcolm XML posted:

the best systems computering course i know of just makes u write a kernel in like 10 weeks

no bootloader tho that's just gross

Valeyard
Mar 30, 2012


Grimey Drawer

Malcolm XML posted:

the best systems computering course i know of just makes u write a kernel in like 10 weeks

yeah that sounds ownage alright

hobbesmaster
Jan 28, 2008

Malcolm XML posted:

the best systems computering course i know of just makes u write a kernel in like 10 weeks

pffft you should have to write the verilog for the processor too

Valeyard
Mar 30, 2012


Grimey Drawer
also latex is still and always will be trash

distortion park
Apr 25, 2011


Valeyard posted:

also latex is still and always will be trash

On one of my internships they used word to do equations.


Not the equation editor, just normal characters. Latex is fine.

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

pointsofdata posted:

On one of my internships they used word to do equations.


Not the equation editor, just normal characters. Latex is fine.

I agree, much like bash scripting if you don't try to be fancy and use it just for simple and obvious poo poo (like a resume!) then latex will serve your needs

kitten emergency
Jan 13, 2008

get meow this wack-ass crystal prison
latex is great

Soricidus
Oct 21, 2010
freedom-hating statist shill
latex is bad, but so are all the alternatives. choose your poison

best thing about latex imo is you can put it in source control

Valeyard
Mar 30, 2012


Grimey Drawer

pointsofdata posted:

On one of my internships they used word to do equations.


Not the equation editor, just normal characters. Latex is fine.

The actual equation editor in Word is actually surprisingly good tho

my biggest gripe with Latex is trying to position images. Even when you set the right compiler flags or w/e (not something you should be saying about word processing jfc) it still barely works

distortion park
Apr 25, 2011


Soricidus posted:

latex is bad, but so are all the alternatives. choose your poison

best thing about latex imo is you can put it in source control

Nothing makes me happier when working on simulation stuff than seeing a latex doc in source control or a specific bit of a paper/book

(USER WAS PUT ON PROBATION FOR THIS POST)

PokeJoe
Aug 24, 2004

hail cgatan


KARMA! posted:

which one

http://www.cs.berkeley.edu/~jrs/61b/

e: all the lectures and assignments are online for the grabbing, you just won't get any outside support. hope you're self motivated.

Malcolm XML
Aug 8, 2009

I always knew it would end like this.

hobbesmaster posted:

pffft you should have to write the verilog for the processor too

theres that nand to tetris course somewhere

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

Shaggar posted:

java is probably the best language to use to teach data structures cause collections is easy to understand and extend/implement.

the collections are fundamentally flawed because they lack a super interface for immutable data structures. Scala got that right at least.

but I don't know that it's a deal breaker for teaching.

fritz
Jul 26, 2003

there is nothing like trying to get android stuff building to remind me that im a terrible programmer

Brain Candy
May 18, 2006

Janitor Prime posted:

the collections are fundamentally flawed because they lack a super interface for immutable data structures. Scala got that right at least.

how does a super interface help?

breaking everything into
{ access } -> { mutate }
still leaves you with const problem,. i.e. if I get a instance of {access} it's only immutable to me, I still have to defensively copy it

...

also, I went and looked and the type hierarchies seem disjoint, which is the smarter choice imho, so I don't know what you mean

Brain Candy fucked around with this message at 16:16 on Mar 15, 2015

lord funk
Feb 16, 2004

code:
#if defined(__x86_64__) || defined(_M_X64)

typedef signed int int32;
typedef unsigned int uint32;

#else

typedef signed long int32;
typedef unsigned long uint32;

#endif
hello i am a terrible programmer but why would you ever do this?

edit: hang on there's more

code:
enum ValueTypeSizes{
    OSC_SIZEOF_INT32 = 4,
    OSC_SIZEOF_UINT32 = 4,
    OSC_SIZEOF_INT64 = 8,
    OSC_SIZEOF_UINT64 = 8,
};

Soricidus
Oct 21, 2010
freedom-hating statist shill

lord funk posted:

code:
#if defined(__x86_64__) || defined(_M_X64)

typedef signed int int32;
typedef unsigned int uint32;

#else

typedef signed long int32;
typedef unsigned long uint32;

#endif

hello i am a terrible programmer but why would you ever do this?

edit: hang on there's more

code:
enum ValueTypeSizes{
    OSC_SIZEOF_INT32 = 4,
    OSC_SIZEOF_UINT32 = 4,
    OSC_SIZEOF_INT64 = 8,
    OSC_SIZEOF_UINT64 = 8,
};

if only c had something like stdint.h

lord funk
Feb 16, 2004

one more:
code:
    // sanity check integer types declared in OscTypes.h 
    // you'll need to fix OscTypes.h if any of these asserts fail
    assert( sizeof(osc::int32) == 4 );
    assert( sizeof(osc::uint32) == 4 );
    assert( sizeof(osc::int64) == 8 );
    assert( sizeof(osc::uint64) == 8 );
gee thanks

Valeyard
Mar 30, 2012


Grimey Drawer

lord funk posted:

one more:
code:
    // sanity check integer types declared in OscTypes.h 
    // you'll need to fix OscTypes.h if any of these asserts fail
    assert( sizeof(osc::int32) == 4 );
    assert( sizeof(osc::uint32) == 4 );
    assert( sizeof(osc::int64) == 8 );
    assert( sizeof(osc::uint64) == 8 );
gee thanks

C is whacky, you never know whats gonna happen!!

Jerry Bindle
May 16, 2003

lord funk posted:

code:
#if defined(__x86_64__) || defined(_M_X64)

typedef signed int int32;
typedef unsigned int uint32;

#else

typedef signed long int32;
typedef unsigned long uint32;

#endif
hello i am a terrible programmer but why would you ever do this?

edit: hang on there's more

code:
enum ValueTypeSizes{
    OSC_SIZEOF_INT32 = 4,
    OSC_SIZEOF_UINT32 = 4,
    OSC_SIZEOF_INT64 = 8,
    OSC_SIZEOF_UINT64 = 8,
};

say one arch has 32 bit signed ints, and another has 32bit signed longs?

Bloody
Mar 3, 2013

types not of the form (u)int(#bits)_t suck

MeruFM
Jul 27, 2010
in the short time using C seriously, i appreciate typedefs ending with _t

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Bloody posted:

types not of the form (u)int(#bits)_t suck

no intptr_t? no ssize_t?

pseudorandom name
May 6, 2007

lord funk posted:

code:
#if defined(__x86_64__) || defined(_M_X64)

typedef signed int int32;
typedef unsigned int uint32;

#else

typedef signed long int32;
typedef unsigned long uint32;

#endif
hello i am a terrible programmer but why would you ever do this?

edit: hang on there's more

code:
enum ValueTypeSizes{
    OSC_SIZEOF_INT32 = 4,
    OSC_SIZEOF_UINT32 = 4,
    OSC_SIZEOF_INT64 = 8,
    OSC_SIZEOF_UINT64 = 8,
};

long is 32 bits on Windows.

Also, Windows doesn't have stdint.h.

MrMoo
Sep 14, 2000

pseudorandom name posted:

long is 32 bits on Windows.

Also, Windows doesn't have stdint.h.

It does since MSVC2010SP1.

Valeyard
Mar 30, 2012


Grimey Drawer
so ive got some images laid out in a latex doc. I edited one of the images to have a small inside stroke, its the same dimension as before. Now the image isnt working in the pdf. same scale as before is now breaking the image and making it super huge, and its also breaking the image AFTER it aswell

wtf

Jerry Bindle
May 16, 2003

Valeyard posted:

so ive got some images laid out in a latex doc. I edited one of the images to have a small inside stroke, its the same dimension as before. Now the image isnt working in the pdf. same scale as before is now breaking the image and making it super huge, and its also breaking the image AFTER it aswell

wtf

yeah sounds like you're using latex

Bloody
Mar 3, 2013

Subjunctive posted:

no intptr_t? no ssize_t?

sorry for not writing the ebnf grammar of what i consider to be an acceptable type :jerkbag:

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

Bloody posted:

sorry for not writing the ebnf grammar of what i consider to be an acceptable type :jerkbag:

lol if your acceptable types don't constitute a regular language, just lol

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

Brain Candy posted:

how does a super interface help?

breaking everything into
{ access } -> { mutate }
still leaves you with const problem,. i.e. if I get a instance of {access} it's only immutable to me, I still have to defensively copy it

...

also, I went and looked and the type hierarchies seem disjoint, which is the smarter choice imho, so I don't know what you mean

it's me I'm the terrible programmer :downs:

I could have sworn they were super interfaces but you're right

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Bloody posted:

sorry for not writing the ebnf grammar of what i consider to be an acceptable type :jerkbag:

well, I thought your point was that types should explicitly indicate their storage size and not their intended role.

Adbot
ADBOT LOVES YOU

Bloody
Mar 3, 2013

nah my complaints mostly involve numeric types and that their size is significantly important to their functionality and also very poorly conveyed

  • Locked thread