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
gonadic io
Feb 16, 2011

>>=

FamDav posted:

if you want a saner restart loop replace your '--rm' with 'restart --always'

EDIT: also whats your durability story? you might want to turn off "deleteOnTermination" if you want your ebs volume to hang around in the event that your instance gets destroyed

this is perfect thanks. and yeah i already set that, as well as protection from accidental termination.

too bad i skipped logging other than the odd println so now i'm going to go back and add a proper framework to figure out what is asking for infinite memory and causing the crash

gonadic io fucked around with this message at 15:51 on Jan 9, 2018

Adbot
ADBOT LOVES YOU

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

gonadic io posted:

this is perfect thanks. and yeah i already set that, as well as protection from accidental termination.

too bad i skipped logging other than the odd println so now i'm going to go back and add a proper framework

what'd you do for the discord part of it? the last time i tried to look into it (not rust specifically, just discord's api in general) their documentation was impenetrable.

gonadic io
Feb 16, 2011

>>=

carry on then posted:

what'd you do for the discord part of it? the last time i tried to look into it (not rust specifically, just discord's api in general) their documentation was impenetrable.

i used the rust library https://github.com/zeyla/serenity and read approximately zero discord docs. the odd blog post (linked in my bot's README) to talk about how to set up a bot once you have the code, and the one talking about discord embedded messages (although I found that one fairly useless).

i plan to put some aws stuff in the readme too, so somebody can just clone the repo, follow the instructions and get their own working bot. in the entire four at most dominions 5 discord servers that are out there...

Workaday Wizard
Oct 23, 2009

by Pragmatica
gonadic io have you looked at flame? there is a compiler plugin to make using it even easier called flamer.

i don’t think it will help you but its cool anyways

Workaday Wizard fucked around with this message at 16:02 on Jan 9, 2018

gonadic io
Feb 16, 2011

>>=

Shinku ABOOKEN posted:

gonadic io have you looked at flame? there is a compiler plugin to make using it even easier called flamer.

i don’t think it will help you but its cool anyways

that looks cool, but seems more for performance optimisation which is the least of my concerns rn. i'll keep it in mind though for future

DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof

carry on then posted:

eclipse is hands down the most feature complete piece of software i've ever used that's just completely artless

that's a really good way to describe it

eclipse was my primary ide for years and today i'm much happier doing 90% of my dev work in vs and vscode

HoboMan
Nov 4, 2010

so i want to check in a placeholder config file, but then have git ignore future changes to it. is there a way to do this? can't find anything on goog

cinci zoo sniper
Mar 15, 2013




HoboMan posted:

so i want to check in a placeholder config file, but then have git ignore future changes to it. is there a way to do this? can't find anything on goog

in local repository

git update-index --assume-unchanged too.bar

Luigi Thirty
Apr 30, 2006

Emergency confection port.

hmm, it looks like GCC 4 might be the best I can do unless I want to see how bad Solaris 10 runs on an Ultra10 with half a gig of ram

- GCC dropped support for 9 and the tgcware version is buggy
- Sun CC 11 doesn’t support C++11 so I can’t use it to compile LLVM

alas

I did find a copy of Sun Studio if I want to make desktop applications for CDE though

I know clang does work on sparc v9 though. could I cross-compile clang for a sparc target in Linux somehow?

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:

I know clang does work on sparc v9 though. could I cross-compile clang for a sparc target in Linux somehow?

yeah, cross-compiling should be entirely possible, you can do it in stages:

1. build an LLVM/clang cross-compiler to run on your Linux box and target Solaris 9 on SPARCv9

2. copy your Sun’s /usr/include and /usr/lib to your Linux box to use as -isysroot in the next stage

3. on your Linux box, build an LLVM/clang native compiler to install in /opt/LLVM or someplace like that and run on your Sun

then you should be able to install the built binaries on your Sun and just use them with C++17 etc. (assuming you built the C++ stdlib too)

you could always skip step 3 and just do all your compilation on Linux but what fun is that?

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer
c tp s: when mvn package works fine but eclipse is really sure that dependency doesn't exist

Shaggar
Apr 26, 2006
make sure your maven settings and cache are the same for eclipse and w/e instance you're running from the command line. if you have internal repos eclipse may not be able to find them.

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer
yeah all that stuff is good, it's just sometimes eclipse says it's rebuilding or cleaning the workspace but then it doesn't actually do that is you have to do a special dance to cajole it. v annoying.

DELETE CASCADE
Oct 25, 2017

i haven't washed my penis since i jerked it to a phtotograph of george w. bush in 2003
yeah i always have some kind of issue with the m2e connector thing

Luigi Thirty
Apr 30, 2006

Emergency confection port.

eschaton posted:

yeah, cross-compiling should be entirely possible, you can do it in stages:

1. build an LLVM/clang cross-compiler to run on your Linux box and target Solaris 9 on SPARCv9

2. copy your Sun’s /usr/include and /usr/lib to your Linux box to use as -isysroot in the next stage

3. on your Linux box, build an LLVM/clang native compiler to install in /opt/LLVM or someplace like that and run on your Sun

then you should be able to install the built binaries on your Sun and just use them with C++17 etc. (assuming you built the C++ stdlib too)

you could always skip step 3 and just do all your compilation on Linux but what fun is that?

that doesn’t seem too hard

48 hours later: why is clang telling me my printer is on fire

Shaggar
Apr 26, 2006

cis autodrag posted:

yeah all that stuff is good, it's just sometimes eclipse says it's rebuilding or cleaning the workspace but then it doesn't actually do that is you have to do a special dance to cajole it. v annoying.

does it work if you do the same build via the maven build runner in eclipse?

m2e fucks up all the time and you just have to deal w/ it a lot of the time, but you should always be able to run a maven build via the build runner because all its doing is running the equivalent of mvn <your build options here> with an internal instance of maven.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
lmfao @ having to execute code in order to find out that a method does not exist

gonadic io
Feb 16, 2011

>>=

MALE SHOEGAZE posted:

lmfao @ having to execute code in order to find out that a method does not exist

yeah but this way you can override it at runtime!

:pram:

Ciaphas
Nov 20, 2005

> BEWARE, COWARD :ovr:


it's equal parts amusing and frustrating that i've been working on learning roslyn stuff so i could do a C# REPL for like a week--messing with syntax trees, emitting assemblies, reflecting on them, walking aforesaid trees, etc--when i realized yesterday there's a NuGet package that does it in like a dozen lines

C# code:
using Microsoft.CodeAnalysis.CSharp.Scripting;

                ScriptState state = CSharpScript.RunAsync(txtCode.Text, ScriptOptions.Default
                    .WithReferences(new MetadataReference[] {
                        MetadataReference.CreateFromFile (typeof(Logger).Assembly.Location)
                    })
                    .WithImports(
                        "ScriptingWindow"
                    )
                ).Result;

                Logger.Write("end of run");

                foreach (var x in state.Variables)
                {
                    Logger.Write($"Variable: {x.Type} {x.Name} = {x.Value}");
                }


:doh:

Luigi Thirty
Apr 30, 2006

Emergency confection port.

here's what happens when i try to build llvm/clang on the sun fyi

quote:

luigi:~/llvm-obj$ make
[ 0%] Built target LLVMDemangle
[ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
In file included from /home/luigi/llvm/include/llvm/ADT/SmallVector.h:20:0,
from /home/luigi/llvm/include/llvm/ADT/Twine.h:13,
from /home/luigi/llvm/lib/Support/AMDGPUMetadata.cpp:16:
/home/luigi/llvm/include/llvm/Support/MathExtras.h: In function 'double llvm::Log2(double)':
/home/luigi/llvm/include/llvm/Support/MathExtras.h:524:20: error: 'log2' was not declared in this scope
return log2(Value);
^
In file included from /home/luigi/llvm/include/llvm/Support/YAMLTraits.h:15:0,
from /home/luigi/llvm/lib/Support/AMDGPUMetadata.cpp:18:
/home/luigi/llvm/include/llvm/ADT/StringExtras.h: In function 'bool llvm::to_float(const llvm::Twine&, float&)':
/home/luigi/llvm/include/llvm/ADT/StringExtras.h:182:35: error: 'strtof' was not declared in this scope
return detail::to_float(T, Num, strtof);
^
/home/luigi/llvm/include/llvm/ADT/StringExtras.h: In function 'bool llvm::to_float(const llvm::Twine&, long double&)':
/home/luigi/llvm/include/llvm/ADT/StringExtras.h:190:35: error: 'strtold' was not declared in this scope
return detail::to_float(T, Num, strtold);
^
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:63: lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:591: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [Makefile:150: all] Error 2

those all exist in my tgcware gcc c++ includes folder

Luigi Thirty fucked around with this message at 01:44 on Jan 10, 2018

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

gonadic io posted:

yeah but this way you can override it at runtime!

:pram:

hurrayy!!!

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
e: kinda mean spirited

DONT THREAD ON ME fucked around with this message at 03:52 on Jan 10, 2018

redleader
Aug 18, 2005

Engage according to operational parameters

Ciaphas posted:

it's equal parts amusing and frustrating that i've been working on learning roslyn stuff so i could do a C# REPL for like a week--messing with syntax trees, emitting assemblies, reflecting on them, walking aforesaid trees, etc--when i realized yesterday there's a NuGet package that does it in like a dozen lines

C# code:
using Microsoft.CodeAnalysis.CSharp.Scripting;

                ScriptState state = CSharpScript.RunAsync(txtCode.Text, ScriptOptions.Default
                    .WithReferences(new MetadataReference[] {
                        MetadataReference.CreateFromFile (typeof(Logger).Assembly.Location)
                    })
                    .WithImports(
                        "ScriptingWindow"
                    )
                ).Result;

                Logger.Write("end of run");

                foreach (var x in state.Variables)
                {
                    Logger.Write($"Variable: {x.Type} {x.Name} = {x.Value}");
                }


:doh:

yeah, but what was more fun?

Ciaphas
Nov 20, 2005

> BEWARE, COWARD :ovr:


i mean I guess I did at least learn and finally absorb the Visitor pattern so that's pretty nice

theodop
Dec 30, 2005

rock solid, heart touching
dumbass question but you know there's a REPL in VS as well, right?

DELETE CASCADE
Oct 25, 2017

i haven't washed my penis since i jerked it to a phtotograph of george w. bush in 2003

MALE SHOEGAZE posted:

a bunch of people who don't know how to program have been writing our cucumber tests for a year

i can appreciate the awfulness described in the rest of your post, but this line stood out to me, because like... isn't that The Entire Point of cucumber tests

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

DELETE CASCADE posted:

i can appreciate the awfulness described in the rest of your post, but this line stood out to me, because like... isn't that The Entire Point of cucumber tests

that's the point of the feature specs, but the backing code still needs to be written by programmers.

Ciaphas
Nov 20, 2005

> BEWARE, COWARD :ovr:


theodop posted:

dumbass question but you know there's a REPL in VS as well, right?

Oh yeah, the REPL itself wasn't the point, just laying groundwork

Notorious b.s.d.
Jan 25, 2003

by Reene

Luigi Thirty posted:

hmm, it looks like GCC 4 might be the best I can do unless I want to see how bad Solaris 10 runs on an Ultra10 with half a gig of ram

- GCC dropped support for 9 and the tgcware version is buggy
- Sun CC 11 doesn’t support C++11 so I can’t use it to compile LLVM

alas

I did find a copy of Sun Studio if I want to make desktop applications for CDE though

I know clang does work on sparc v9 though. could I cross-compile clang for a sparc target in Linux somehow?

solaris 10 is fine on an ultra 10, at least insofar as Solaris 9 is fine on an ultra 10

the ultra 5 and 10 have the world’s worst ide controller, bar none, which makes them unbearably slow in their default configs, because the cpu is constantly interrupted for bullshit

with a scsi card, the u5/u10 feels 10x faster



p.s. sun studio is SUNWspro. the docs spend a lot of time talking about the ide but the compiler suite is the important thing.

roughly equal proportions of open source software assume Solaris = SUNWspro, or have a hard requirement for Gucci, you really need both installed :(

Notorious b.s.d. fucked around with this message at 06:07 on Jan 10, 2018

Luigi Thirty
Apr 30, 2006

Emergency confection port.

Huh. okay, maybe I’ll try upgrading to some version of 10 since that would make everything infinitely easier.

The Sun does have a SCSI card but it doesn’t seem to have an internal header? odd. I think I have an old adaptec scsi board somewhere.

9 runs fine on my system - it’s the 440MHz version.

Luigi Thirty
Apr 30, 2006

Emergency confection port.

hmm, the Solaris 10 update 8 DVD I have (the last version I could find that runs on 256MB) freezes up here:



I’m going to assume it’s out of memory despite Update 8 requiring 256MB and try again tomorrow when my other 256MB arrives

cinci zoo sniper
Mar 15, 2013




mysql's ExtractValue() for xml has hardcoded a single space as the only delimiter :eyepop: the idiot who thought this is a good idea should be sent to a labour camp

gonadic io
Feb 16, 2011

>>=

cinci zoo sniper posted:

mysql [...] the idiot who thought this is a good idea should be sent to a labour camp

you had me after the first word

comedyblissoption
Mar 15, 2006

DELETE CASCADE posted:

i can appreciate the awfulness described in the rest of your post, but this line stood out to me, because like... isn't that The Entire Point of cucumber tests
yah that is the point of cucumber tests, but you also have to be delusional to think writing tests isn't coding with all its associated pitfalls

Workaday Wizard
Oct 23, 2009

by Pragmatica
cucumber is the devops version of business rule engines lol

DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof
when i had to compare ruby test frameworks i just immediately assumed there was no way cucumber worked like it said on the box

like any attempt to use it in practice would just result in
1) a pile of user stories using gherkin format instead of "as a...i want...so"
2) no actual tests

Sapozhnik
Jan 2, 2005

Nap Ghost
"programming is a specialist activity. maybe if we refuse to call what we're doing programming it will magically become a generalist activity and i won't have to pay those lazy goodfornothings so much money"

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

DaTroof posted:

when i had to compare ruby test frameworks i just immediately assumed there was no way cucumber worked like it said on the box

like any attempt to use it in practice would just result in
1) a pile of user stories using gherkin format instead of "as a...i want...so"
2) no actual tests

i mean the idea is that the business folks write the ghkerin formatted "features" and QA (or developers) write the "step definitions." AFAIK cucumber never claims that you don't have to write actual code.

but I've worked at 3 places that use cucumber and in all of those places, the business folks write gherkin features for one or two sprints and then just give up and have QA convert user stories into features. in theory a BA could read the feature specs but that never happens so all the ceremony just seems like extra work. it would be easier, faster, and less error prone to just write the tests normally.

HoboMan
Nov 4, 2010

one of our exes is throwing an unhandled NullReferenceException, but i got all of main wrapped in a try catch?

Adbot
ADBOT LOVES YOU

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
probably coming from the runtime

  • Locked thread