New around here? Register your SA Forums Account here!

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
Zlodo
Nov 24, 2006

suffix posted:

love the key feature of skein

i'm the pervasive json flavor

Adbot
ADBOT LOVES YOU

abigserve
Sep 13, 2009

this is a better avatar than what I had before
one of the open source bits of monitoring infrastructure I run recently updated a Django library in their debian packages

course, they didn't update any of their code to handle those libraries (??) in the same package so all of it immediately fell over.

track down the change on github -> raise issue via mailing list (lol) that current Debian package is literally totally broken without manually rolling back the library -> no response

Finster Dexter
Oct 20, 2014

Beyond is Finster's mad vision of Earth transformed.

Yeah, that's what I'm using... but I have to do it in the context of the event-based json decoder like it's 1998. You can't just "Unmarshal" (the ~idiomatic~ term for deserializing) the json string and then call Number.String on it.

The alternative (that I might end up switching to) is to just Unmarshal into a map[string]map[string]string or whatever and grab priceMessage["turd"]["price"] (but a few levels deeper).

Shaggar posted:

incredible. why does anyone use go?

My boss gets SUPER excited about our production service docker containers that are like 10-20MB.

gonadic io
Feb 16, 2011

>>=

Finster Dexter posted:

My boss gets SUPER excited about our production service docker containers that are like 10-20MB.

my Rust discord bot has an 8mb image and it's not like I've tried to minimise it too much other than using alpine :shrug:

https://github.com/djmcgill/dominions-5-status (the code is poo poo please don't judge me)

Finster Dexter
Oct 20, 2014

Beyond is Finster's mad vision of Earth transformed.

gonadic io posted:

my Rust discord bot has an 8mb image and it's not like I've tried to minimise it too much other than using alpine :shrug:

https://github.com/djmcgill/dominions-5-status (the code is poo poo please don't judge me)

Rust programs are fully compiled, right? Can you drop it into a `FROM scratch` image?

Shaggar
Apr 26, 2006

Finster Dexter posted:

Yeah, that's what I'm using... but I have to do it in the context of the event-based json decoder like it's 1998. You can't just "Unmarshal" (the ~idiomatic~ term for deserializing) the json string and then call Number.String on it.

The alternative (that I might end up switching to) is to just Unmarshal into a map[string]map[string]string or whatever and grab priceMessage["turd"]["price"] (but a few levels deeper).


My boss gets SUPER excited about our production service docker containers that are like 10-20MB.

"we spent 100x as much time in development but we saved $.00000000009/year on our aws bill!"

bob dobbs is dead
Oct 8, 2017

I love peeps
Nap Ghost
the real benefit is to make "works on my machine, bub" unacceptable to say. of course, "works on my machine" may happen a lot still with docker, but it will happen in brave new ways and therefore you get to yell at the devs

Fiedler
Jun 29, 2002

I, for one, welcome our new mouse overlords.
docker is orthogonal to golang.

.net core, for example, runs just fine in containers.

redleader
Aug 18, 2005

Engage according to operational parameters
docker? i hardly knew 'er!

Bloody
Mar 3, 2013

Fiedler posted:

docker is orthogonal to golang.

.net core, for example, runs just fine in containers.

ya i built a webapi thing and got it running in a docker on a rancher with absolutely zero understanding of what i was doing in like 20 minutes

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?

Boiled Water posted:

SQL does

and the guy who set up the SQL server at work used the type to produce large zero precision numbers, i.e. numbers with up to 18 decimals, with none after the decimal place.

so just write a decimal class that implements all of the normal operators but calls out to your database for the actual math





…and if you put the implementation directly in the class declaration, the compiler can inline it!

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

eschaton posted:

so just write a decimal class that implements all of the normal operators but calls out to your database for the actual math

uh oh somebody leaked epics custom webforms implementation

Finster Dexter
Oct 20, 2014

Beyond is Finster's mad vision of Earth transformed.

Fiedler posted:

docker is orthogonal to golang.

.net core, for example, runs just fine in containers.

Oh I know, and I've spun up sets of .net core services in docker for my boss. He scoffed at the 175MB docker image size for a .net core image, a little. imho, that doesn't seem that bad but whatever.

Fiedler
Jun 29, 2002

I, for one, welcome our new mouse overlords.
find a new job.

Fiedler
Jun 29, 2002

I, for one, welcome our new mouse overlords.

eschaton posted:

so just write a decimal class that implements all of the normal operators but calls out to your database for the actual math

…and if you put the implementation directly in the class declaration, the compiler can inline it!

anything short of writing your own custom TDS client will have unacceptable performance.

here, this is a good place to start: https://github.com/dotnet/corefx/tree/master/src/System.Data.SqlClient/src/System/Data/SqlClient

Luigi Thirty
Apr 30, 2006

Emergency confection port.

woo my game engine's starting to actually work like a game engine and I've got glide texture mapping working yay

I need to actually get around to writing a lisp parser dll so I can set up my simulation through fancy scripts instead of hardcoding cube1, cube2, cube3

redleader
Aug 18, 2005

Engage according to operational parameters

Luigi Thirty posted:

I need to actually get around to writing a lisp parser dll so I can set up my simulation through fancy scripts instead of hardcoding cube1, cube2, cube3

yak_shaving.txt

Hunter2 Thompson
Feb 3, 2005

Ramrod XTreme

eschaton posted:

so just write a decimal class that implements all of the normal operators but calls out to your database for the actual math





…and if you put the implementation directly in the class declaration, the compiler can inline it!

this reminds me that the last product i worked on called into sqlite to minify json as a general utility function

so pretty much everything network related had a dependency on sqlite

Luigi Thirty
Apr 30, 2006

Emergency confection port.

redleader posted:

yak_shaving.txt

yeah scripting is p useful for a video game

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?

Luigi Thirty posted:

woo my game engine's starting to actually work like a game engine and I've got glide texture mapping working yay

I need to actually get around to writing a lisp parser dll so I can set up my simulation through fancy scripts instead of hardcoding cube1, cube2, cube3

or just figure out how to embed scheme48, it’s p deece

unless you just wanna implement read, eval, and apply of course

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?
you could use SQLite for your scripting

you can write custom functions, collations, etc. in C and do pretty much anything, it’s rather clever (that’s how I made it do fully Foundation-compatible Unicode sort/compare/index)

then you just write all of your scripts as queries!

Blinkz0rz
May 27, 2001

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

Finster Dexter posted:

Yeah, that's what I'm using... but I have to do it in the context of the event-based json decoder like it's 1998. You can't just "Unmarshal" (the ~idiomatic~ term for deserializing) the json string and then call Number.String on it.

The alternative (that I might end up switching to) is to just Unmarshal into a map[string]map[string]string or whatever and grab priceMessage["turd"]["price"] (but a few levels deeper).

can't you tag the field as json.RawMessage and parse the []byte as needed?

redleader
Aug 18, 2005

Engage according to operational parameters

Luigi Thirty posted:

yeah scripting is p useful for a video game

fair. it just seems like rolling your own lisp is the sort of thing that would be better served by using something off the shelf

Stringent
Dec 22, 2004

The internet is the universal sewer.

redleader posted:

fair. it just seems like rolling your own lisp is the sort of thing that would be better served by using something off the shelf

you do realize who you're talking to, right?

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 9 years!)

Finster Dexter posted:

Oh I know, and I've spun up sets of .net core services in docker for my boss. He scoffed at the 175MB docker image size for a .net core image, a little. imho, that doesn't seem that bad but whatever.

the base runtime image for what i'm working on is 1GB before actually adding any apps

it's a legacy appserver but still, lol

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


question: are image sizes ever an issue?

gonadic io
Feb 16, 2011

>>=

Boiled Water posted:

question: are image sizes ever an issue?

lol no. they make docker slightly more expensive to use, and builds/deploys take slightly longer.

Luigi Thirty
Apr 30, 2006

Emergency confection port.

redleader posted:

fair. it just seems like rolling your own lisp is the sort of thing that would be better served by using something off the shelf

you know I'm writing an engine for glide right

redleader
Aug 18, 2005

Engage according to operational parameters

Stringent posted:

you do realize who you're talking to, right?

Luigi Thirty posted:

you know I'm writing an engine for glide right

we all tilt at our own windmills

Luigi Thirty
Apr 30, 2006

Emergency confection port.

anyway I found one of those tiny lisp interpreters in C with a compatible license and I’m going to extend it for my needs into something resembling a mission scripting system, so I’m writing a bunch of lovely lisp instead of a bunch of lovely C

Finster Dexter
Oct 20, 2014

Beyond is Finster's mad vision of Earth transformed.

Blinkz0rz posted:

can't you tag the field as json.RawMessage and parse the []byte as needed?


I... don't actually know. This isn't mentioned in any of the articles or examples I've read, so I'll have to look at it more closely.

Finster Dexter
Oct 20, 2014

Beyond is Finster's mad vision of Earth transformed.

gonadic io posted:

lol no. they make docker slightly more expensive to use, and builds/deploys take slightly longer.

The differences I've seen between dinky FROM scratch golang images and .net core images that are like 150-200MB is pretty negligible in our kubernetes cluster in AWS.

Luigi Thirty
Apr 30, 2006

Emergency confection port.

woo I got ECL built with VC6, now I have a lisp for my engine

https://twitter.com/LuigiThirty/status/1038966800900399110

akadajet
Sep 14, 2003

Luigi Thirty posted:

woo I got ECL built with VC6, now I have a lisp for my engine

https://twitter.com/LuigiThirty/status/1038966800900399110

still a better debugging experience than xcode

Night Shade
Jan 13, 2013

Old School

Finster Dexter posted:

The differences I've seen between dinky FROM scratch golang images and .net core images that are like 150-200MB is pretty negligible in our kubernetes cluster in AWS.

a lot of that size is going to be in the layers brought in by FROM microsoft/dotnet and so should be shared, assuming you have more than one .net core container

cinci zoo sniper
Mar 14, 2013




CRIP EATIN BREAD posted:

even our technical writer has git figured out and she has only started using it like a month ago.

that ETL contractor should be put up against the wall.

is this problem with all high level etl guys? ours is absolutely incapable to use ssh 10 months into working in a linux server shop. and by absolutely incapable i mean just connecting to server via ssh

cinci zoo sniper
Mar 14, 2013




mid-30s it consultant looking at a [putty] terminal - what is this program called

cinci zoo sniper
Mar 14, 2013




also im dumb and playing poe again so time to crack out my scala value counter for poe stash and finish it to some usable-ish state

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


cinci zoo sniper posted:

is this problem with all high level etl guys? ours is absolutely incapable to use ssh 10 months into working in a linux server shop. and by absolutely incapable i mean just connecting to server via ssh

learning and using version control doesn't give immediate value, and as such I doubt any boss would be willing to get that ball rolling

hell my current employer had no version control or code repository of any kind when I started

Adbot
ADBOT LOVES YOU

cinci zoo sniper
Mar 14, 2013




Boiled Water posted:

learning and using version control doesn't give immediate value, and as such I doubt any boss would be willing to get that ball rolling

hell my current employer had no version control or code repository of any kind when I started

dude is his own boss and reports directly to an executive who doesnt understand or manage any tech. this is like startup tier freedom and dude needs a support team to check how much ram is his poo poo taking up on server or what database processes are currently open and how much resources they consume

at least in 10 months he did learn how to commit and, to some extent, how gitignore works, so we only lost several weeks of work when his computer died

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