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
DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

gonadic io posted:

honestly the biggest issue i have is that rust has "match foo {" and scala has "foo match {"

omg yes every time.

also typing `case Some(x)` instead of `Some(x)`

Adbot
ADBOT LOVES YOU

Ellie Crabcakes
Feb 1, 2008

Stop emailing my boyfriend Gay Crungus

DONT THREAD ON ME posted:

perhaps if performance mattered to you you should choose a language with zero cost abstractions, like rust :smug:
Weren't you defending clojure in another thread?

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Fatty Crabcakes posted:

Weren't you defending clojure in another thread?

i didnt defnd it i just said it was better than groovy.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
my point was dumb though anyhow.

it's odd to me though because i've never used a dynamic lang for anything that wasn't mostly IO bound. if i reach a point where i'm swapping out semantically equivalent language constructs due to the performance of their implementations, then i kinda want to use something...closer to the metal.

DONT THREAD ON ME fucked around with this message at 00:55 on Feb 19, 2019

Ellie Crabcakes
Feb 1, 2008

Stop emailing my boyfriend Gay Crungus

DONT THREAD ON ME posted:

i didnt defnd it i just said it was better than groovy.
Oh, that's right. I mean, it's true, but that's what they call "damning with faint praise"

Soricidus
Oct 21, 2010
freedom-hating statist shill

DONT THREAD ON ME posted:

my point was dumb though anyhow.

:justpost:

anyone who cares about quality posts containing well-reasoned arguments won't be reading this forum without me on ignore

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

cinci zoo sniper posted:

about twice faster iirc. i sometimes have this problem at the scale of 10^7 lists, where that is an appreciable improvement

yeah on this kinda scale you can just surrender to numpy arrays and pray

one case I kinda remember chain being faster was when I was using it together with itertools' combinatoric generators, it was faster than doing a double comprehension


fake edit: here's a super dumb unreadable example of what I mean

$ python3 -m timeit 'import itertools; (3, 3) in [x for sg in (itertools.permutations(range(i)) for i in range(7)) for x in sg]'
10000 loops, best of 3: 76.3 usec per loop

$ python3 -m timeit 'import itertools; (3, 3) in list(itertools.chain.from_iterable(itertools.permutations(range(i)) for i in range(7)))'
10000 loops, best of 3: 67 usec per loop

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
stuff like pypy usually optimize lists better than iterators so maybe that's where you got the performance boost actually

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

DONT THREAD ON ME posted:

my point was dumb though anyhow.

it's odd to me though because i've never used a dynamic lang for anything that wasn't mostly IO bound. if i reach a point where i'm swapping out equivalent language constructs due to the performance of their implementations, then i kinda want to use something...closer to the metal.

yeah, I totally agree with you, I just wanna be pedantic here. yospos birch

cinci zoo sniper
Mar 15, 2013




Symbolic Butt posted:

yeah on this kinda scale you can just surrender to numpy arrays and pray

one case I kinda remember chain being faster was when I was using it together with itertools' combinatoric generators, it was faster than doing a double comprehension


fake edit: here's a super dumb unreadable example of what I mean

$ python3 -m timeit 'import itertools; (3, 3) in [x for sg in (itertools.permutations(range(i)) for i in range(7)) for x in sg]'
10000 loops, best of 3: 76.3 usec per loop

$ python3 -m timeit 'import itertools; (3, 3) in list(itertools.chain.from_iterable(itertools.permutations(range(i)) for i in range(7)))'
10000 loops, best of 3: 67 usec per loop

oic. my problems usually are getting to the point where i can operate on arrays, so rip

Soricidus
Oct 21, 2010
freedom-hating statist shill
please don’t write comprehensions with more than one for in them. the weird backwards syntax is bad and confusing and your code will be bad and confusing. thank you

cinci zoo sniper
Mar 15, 2013




c database structure s: let foo be a json containing object baz with N named objects with M identically named objects in each N. the query im looking at right now, which used to be simple left join on 3 fields in the old database version, now has me parse foo.baz so that i sort Ns by name in ascending order, find last name(N)::int that is <= input A, and then find underlying name(M)::int that is equal to input parameter B, and fetch value(M) for that

cinci zoo sniper fucked around with this message at 11:07 on Feb 19, 2019

cinci zoo sniper
Mar 15, 2013




some days i just get my faithful box of tissues, bottle of hand moisturiser, and think what it’s like to have a team that actually does things to achieve specific goals in a manner that considers not only themselves, and not just to show that they are “doing work”

cinci zoo sniper fucked around with this message at 11:08 on Feb 19, 2019

Maximum Leader
Dec 5, 2014
just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code

AggressivelyStupid
Jan 9, 2012

Maximum Leader posted:

just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code

are you sure you're not having a stroke?

cinci zoo sniper
Mar 15, 2013




Maximum Leader posted:

just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code

what

Beamed
Nov 26, 2010

Then you have a responsibility that no man has ever faced. You have your fear which could become reality, and you have Godzilla, which is reality.


Maximum Leader posted:

just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code

I honestly have no idea how you can prevent VS Code from indenting code.

Maximum Leader
Dec 5, 2014

AggressivelyStupid posted:

are you sure you're not having a stroke?


Beamed posted:

I honestly have no idea how you can prevent VS Code from indenting code.

its surreal, i think he's begrudgingly going to make an attempt at indentation though

dick traceroute
Feb 24, 2010

Open the pod bay doors, Hal.
Grimey Drawer
I always mash ctrl alt f in vscode

Chalks
Sep 30, 2009

Maximum Leader posted:

just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code

this but with new lines

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Maximum Leader posted:

its surreal, i think he's begrudgingly going to make an attempt at indentation though

is he super old or something, I think the closest I've seen that kinda attitude was with some cobol programmer once

raminasi
Jan 25, 2005

a last drink with no ice

gonadic io posted:

i'm interviewing at a company that claims to be doing HFT ...in f#

im really curious about the company

Zlodo
Nov 25, 2006
yeah I recently caught up with an old friend who is maintaining legacy pacbase (antiquated thing that generates cobol code and was originally designed for punch cards) code for an insurance company and he works on 80*25 terminals

That's a world where indention was probably a luxury

like the code is divided up into columns with fixed widths and stuff, it sounded pretty nightmarish

cinci zoo sniper
Mar 15, 2013




Beamed posted:

I honestly have no idea how you can prevent VS Code from indenting code.

i assume you can maybe define ‘’ as custom tab separator?? but why????

fisting by many
Dec 25, 2009



Maximum Leader posted:

just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code

you can configure the indent size by language in vscode, this programmer must have manually set it to 0

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


gonadic io posted:

i'm interviewing at a company that claims to be doing HFT ...in f#

you can absolutely do high frequency trading with f#

the tricky bit is doing it fast enough

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

Zlodo posted:

yeah I recently caught up with an old friend who is maintaining legacy pacbase (antiquated thing that generates cobol code and was originally designed for punch cards) code for an insurance company and he works on 80*25 terminals

That's a world where indention was probably a luxury

like the code is divided up into columns with fixed widths and stuff, it sounded pretty nightmarish

our closest partner company maintains an as/400 db schema that dates all the way back to the 80s and has been growing ever since

last time i looked at it their primary schema alone (out of a few hundred schemas) had about 70k tables with close to 600k columns in total

the kicker: eight chars for table names, seven for columns. hope you're consistent with your aliases for ZVDAST0F

gonadic io
Feb 16, 2011

>>=

Maximum Leader posted:

its surreal, i think he's begrudgingly going to make an attempt at indentation though

I think you met Rob Pike


raminasi posted:

im really curious about the company

I'm currently interviewing with them but if you email me at contact@gonadic.io I'll tell you the company name etc
I don't have any internal details yet, still early in the process.

Boiled Water posted:

you can absolutely do high frequency trading with f#

the tricky bit is doing it fast enough
Well they didn't call it LFT :shrug:

Doom Mathematic
Sep 2, 2008
Set up a pre-commit hook which automatically formats everybody's code consistently and have done with it?

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?
no, just fail the commit

and don’t say why

Maximum Leader
Dec 5, 2014

Symbolic Butt posted:

is he super old or something, I think the closest I've seen that kinda attitude was with some cobol programmer once

I get the impression that he's self-taught and didn't have any technical guidelines or supervision during his 10 years of experience. not relevant but he looks like an ex-criminal and is shirtless on his linkedin profile picture

Arcsech
Aug 5, 2008

Maximum Leader posted:

not relevant but he looks like an ex-criminal

yo this is a really weird thing to say

what does an “ex-criminal” look like

shirtless on LinkedIn profile is pretty lol tho

Carthag Tuek
Oct 15, 2005

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



like a reformed citizen I suppose

DELETE CASCADE
Oct 25, 2017

i haven't washed my penis since i jerked it to a phtotograph of george w. bush in 2003
https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf are these openai guys actually doing something interesting, or is it just a glorified markov bot?

if my academese is still fresh, they appear to claim that they can summarize and translate things, but only because their training set full of reddit posts contains lots of tl;dr and quotes like "as they say in french, blahde blah blah, which means 'some english phrase'"

otherwise it looks like a pile of whatever-implementation-details-who-cares that just blindly tries to maximize the probability of its chosen next word given the previous words, then repeats until done

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


eschaton posted:

no, just fail the commit

and don’t say why

i added commit hooks to our main repos and now I keep getting asked why commits don't work because reading the output window in vs or the error message is apparently too hard

gonadic io
Feb 16, 2011

>>=
balena.io (formerly resin.io) have a cool thing where when you push to their remote (that's how you send them your code to build and flash onto devices) it'll run the docker build step as part of the commit hook and show you the stdout

honestly i'm pretty impressed with them. they started out as just an arm port of docker but now they offer a (v expensive) full rpi level hosted thing. they take care of: deploying code, updating devices, deploying secrets, OS setup (you base your dockerfile from one of their arm base images), ssh, public ip, logs, restarts, etc

saved us probably hundreds of manhours setting all this poo poo up.

i think they offer some kind of self-hosted poo poo too to cut down on costs but idk anything about that

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Powerful Two-Hander posted:

i added commit hooks to our main repos and now I keep getting asked why commits don't work because reading the output window in vs or the error message is apparently too hard

i wish github let you add hooks on their end. i bet gh enterprise does this, right?

Phobeste
Apr 9, 2006

never, like, count out Touchdown Tom, man

gonadic io posted:

balena.io (formerly resin.io) have a cool thing where when you push to their remote (that's how you send them your code to build and flash onto devices) it'll run the docker build step as part of the commit hook and show you the stdout

honestly i'm pretty impressed with them. they started out as just an arm port of docker but now they offer a (v expensive) full rpi level hosted thing. they take care of: deploying code, updating devices, deploying secrets, OS setup (you base your dockerfile from one of their arm base images), ssh, public ip, logs, restarts, etc

saved us probably hundreds of manhours setting all this poo poo up.

i think they offer some kind of self-hosted poo poo too to cut down on costs but idk anything about that

it’s ok. we used them but it was a bad idea because it flat out doesn’t function if you break the model of “100% of devices are or can easily be connected to the internet”. also it’s super expensive.

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


Blinkz0rz posted:

i wish github let you add hooks on their end. i bet gh enterprise does this, right?

idk we use gitlab and it let's you add all sorts of stuff

it's OK but it utterly loving sucks at merges so I always end up doing them locally and pushing then it gets all pissy about branches being unmerged

edit: to be fair I suck at merges too

Powerful Two-Hander fucked around with this message at 01:20 on Feb 20, 2019

Adbot
ADBOT LOVES YOU

VikingofRock
Aug 24, 2008




Just accepted my first programming job outside of academia! I'm really excited, and seriously a huge part of getting to this point was hanging around this thread and reading all of your thoughts and getting my questions answered in a friendly and helpful way. Just wanted to pop in and say thanks to everyone here. You all are great 🍻

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