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
Brain Candy
May 18, 2006

MALE SHOEGAZE posted:

scala's paren free syntax is seriously gross

it would maybe be acceptable if `foo bar` was not equivalent to `foo.bar()` for arity 1 functions.

It Begins

Adbot
ADBOT LOVES YOU

the talent deficit
Dec 20, 2003

self-deprecation is a very british trait, and problems can arise when the british attempt to do so with a foreign culture






no kidding. if this is shocking to you i can't wait until you have to deal with implicit based di

fritz
Jul 26, 2003

MALE SHOEGAZE posted:

scala's paren free syntax is seriously gross

confirm

VikingofRock
Aug 24, 2008




"arity" is such a weird word. I occasionally feel the same way about "tuple" as well

gonadic io
Feb 16, 2011

>>=

VikingofRock posted:

"arity" is such a weird word. I occasionally feel the same way about "tuple" as well

two-tuple

AggressivelyStupid
Jan 9, 2012

I pronounce tuple like two-ple. It feels right and I'm not sorry.

Athas
Aug 6, 2007

fuck that joker
Was Scala always such a mess or did they just never say no? I mean the type system has to be complicated to interop with Java (see also F#), but it seems to have a lot of other gratuitous superficial complexity.

leper khan
Dec 28, 2010
Honest to god thinks Half Life 2 is a bad game. But at least he likes Monster Hunter.

AggressivelyStupid posted:

I pronounce tuple like two-ple. It feels right and I'm not sorry.

it is right and you shouldn't be

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
you guys are allergic to cool math words

Internet Janitor
May 17, 2008

"That isn't the appropriate trash receptacle."

VikingofRock posted:

"arity" is such a weird word. I occasionally feel the same way about "tuple" as well

The APL community uses the much cooler word "valence". Functions which accept a variable number of arguments are, naturally, "ambivalent".

Shaggar
Apr 26, 2006
tuple is pronounce tuh-pul.

ulmont
Sep 15, 2010

IF I EVER MISS VOTING IN AN ELECTION (EVEN AMERICAN IDOL) ,OR HAVE UNPAID PARKING TICKETS, PLEASE TAKE AWAY MY FRANCHISE

Shaggar posted:

tuple is pronounce tuh-pul.

That's not right, either for tuple itself (via Oxford) or for the analogous quintuple and sextuple via Merriam-Webster.

https://en.oxforddictionaries.com/definition/tuple
https://www.merriam-webster.com/dictionary/quintuple
https://www.merriam-webster.com/dictionary/sextuple

xref https://www.merriam-webster.com/dictionary/tuple

Shaggar
Apr 26, 2006
those are all incorrect.

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

as long as no one says "libe" for lib we're good

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

thank christ i have never had to say the word tuple out loud

Slurps Mad Rips
Jan 25, 2009

Bwaltow!

carry on then posted:

as long as no one says "libe" for lib we're good

Or "enoom" for enum

triple sulk
Sep 17, 2014



MALE SHOEGAZE posted:

scala's paren free syntax is seriously gross

it would maybe be acceptable if `foo bar` was not equivalent to `foo.bar()` for arity 1 functions.


this is unfortunately what happens when you don't get a feel for the language you'll be using in a new job prior to accepting said job

CPColin
Sep 9, 2003

Big ol' smile.
or "char"

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Wheany posted:

thank christ i have never had to say the word tuple out loud

i like to say sextuple out loud

AggressivelyStupid
Jan 9, 2012

Also, ~ is teal-day

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

AggressivelyStupid posted:

Also, ~ is teal-day

its till-duh and i will fight you

jony neuemonic
Nov 13, 2009

till-dee, you maniacs.

Slurps Mad Rips
Jan 25, 2009

Bwaltow!

AggressivelyStupid posted:

Also, ~ is teal-day

over my dead body, vato. till-day

AggressivelyStupid
Jan 9, 2012

Slurps Mad Rips posted:

over my dead body, vato. till-day

Look, esé, you can't bastardize the two versions into one only half wrong version!!!

LeftistMuslimObama posted:

its till-duh and i will fight you

you'll need to learn BUMPS when I'm done w/ you

Shaggar
Apr 26, 2006

LeftistMuslimObama posted:

its till-duh and i will fight you

this is correct

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

Athas posted:

Was Scala always such a mess or did they just never say no? I mean the type system has to be complicated to interop with Java (see also F#), but it seems to have a lot of other gratuitous superficial complexity.

i think it actually started out completely insane and then got somewhat saner over time as they realized what a bad idea a bunch of its features were

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

triple sulk posted:

this is unfortunately what happens when you don't get a feel for the language you'll be using in a new job prior to accepting said job

i didn't accept until today so getting a feel for the language before accepting is exactly what i was doing.

im very happy to use scala because i want functional programming experience.

also, all of my professional experience is in ruby so i am thrilled to have an opportunity to never touch ruby again

dick traceroute
Feb 24, 2010

Open the pod bay doors, Hal.
Grimey Drawer

Slurps Mad Rips posted:

over my dead body, vato. till-day

squiggly line

AggressivelyStupid
Jan 9, 2012


This is acceptable

MrMoo
Sep 14, 2000


They're still working on the WebSocket server examples, I'm not overly sure on the integration model either. Anyway I decided to be a bit smarter and flipped things around to make the C++ only a client so I can still use that gigantic turd of Node.js because it needs to integrate with other stuff.





I get about 3 hours of time to work on this every day, I've managed to waste a lot of it so far doing wonderful things like debugging Node.JS native code integration, upgrading from Fedora 23 to 25, fixing Fedora 25 and Wayland breaking the VM, moving everything to Fedora 24, and reviewing every WebSocket library code out there.

MrMoo fucked around with this message at 04:25 on Feb 1, 2017

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

Powaqoatse posted:

its so you can go

char *a = "this line is really long,"
" and continues here. "
"and still continues";

just learned a new use case of this

code:

#define STR_HELPER (x) #x
#define STR(x) STR_HELPER(x)

#define MAJOR_VERSION 3
#define MINOR_VERSION 4

...

printf("Version is " STR(MAJOR_VERSION) "." STR(MINOR_VERSION) "\n");

c is hosed up

Cybernetic Vermin
Apr 18, 2005

then on another level you also need to remember ## in the preprocessor, so you can do stuff like

#define CALL(obj, method) ((obj ## _vtable_lookup)(#method))(obj)

..
CALL(obj, method);
..


(been a solid 10 years since i wrote c so i may be off on the details)

Sapozhnik
Jan 2, 2005

Nap Ghost
You forgot the __VA_ARGS__

Xarn
Jun 26, 2015
Stop triggering me, assholes.

qntm
Jun 17, 2009

HappyHippo posted:

code:
#define STR_HELPER (x) #x
#define STR(x) STR_HELPER(x)

why can't you just do

C code:
#define STR(x) #x

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

qntm posted:

why can't you just do

C code:
#define STR(x) #x

because then STR(MAJOR_VERSION) will just expand to "MAJOR_VERSION" apparently

dont ask why cuz i dont know

HappyHippo fucked around with this message at 02:18 on Feb 2, 2017

tef
May 30, 2004

-> some l-system crap ->
lets macros get run over the arguments iirc

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

HappyHippo posted:

c is hosed up

qntm
Jun 17, 2009
there was a time when I would use PHP to dynamically generate JavaScript and that creeped me out even at a time when I was voluntarily using PHP and JavaScript

Adbot
ADBOT LOVES YOU

Athas
Aug 6, 2007

fuck that joker
There is something wrong with both PHP and Javascript, but there is nothing wrong with code generation.

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