|
also *tussles johny's hair, tells him he's a good lil boy*
|
# ? Feb 22, 2015 22:11 |
|
|
# ? May 27, 2024 02:25 |
|
Cybernetic Vermin posted:entirely meaningless clutter carrying the possibility that one of the 30,000 copies of the line is wrong somewhere (one obvious case being that the wrong class is sent and things don't get filtered as expected) i looked in FindBugs and I was kinda surprised not to find something that just checked this for you Barnyard Protein posted:you could do this to avoid the wrong class thing can't use it in static methods & slow as balls depending on impl e: always hitting a lock
|
# ? Feb 22, 2015 22:15 |
|
Brain Candy posted:i looked in FindBugs and I was kinda surprised not to find something that just checked this for you i usualyl get my IDE to generate logger.gtelogger(x.class) where x is the class ofc
|
# ? Feb 22, 2015 22:19 |
|
Brain Candy posted:i looked in FindBugs and I was kinda surprised not to find something that just checked this for you also deceptive as hell if you use concrete inheritance, not that that is usually a great idea anyway
|
# ? Feb 22, 2015 22:22 |
im gonna finish my class real soon and want to take one on data structures next. anyone know of any good free ones
|
|
# ? Feb 22, 2015 22:38 |
|
PokeJoe posted:im gonna finish my class real soon and want to take one on data structures next. anyone know of any good free ones hash tables are good
|
# ? Feb 22, 2015 22:44 |
|
freed data structures are the least interesting ones
|
# ? Feb 22, 2015 22:52 |
|
Necc0 posted:lol at caring about source code size ityool 2015 microcontrollers in debug builds
|
# ? Feb 22, 2015 22:56 |
|
do many microcontrollers use java?
|
# ? Feb 22, 2015 22:56 |
|
idk if any mcu's use java, but a debug build will have additional stuff in it like symbol information which is taken from the source code. in the case of PICs there is also an additional debug executive which takes up more space. although the debug executive is placed in test memory so thats not a big deal i guess.
|
# ? Feb 22, 2015 23:03 |
|
Valeyard posted:do many microcontrollers use java? there are some recent micros designed to use java bytecode, i dont think teh idea really took off though but i dont know for sure
|
# ? Feb 22, 2015 23:04 |
|
in terms of runnign java on embedded platforms though, it is very common
|
# ? Feb 22, 2015 23:04 |
|
Corla Plankun posted:python-pcyopg2 wants me to put a plaintext password in my python script to connect to a database This is from way back but I've done something like this in the past: Python code:
|
# ? Feb 22, 2015 23:22 |
|
Valeyard posted:do many microcontrollers use java? J2UCE
|
# ? Feb 22, 2015 23:22 |
|
the old argument for java on microcontrollers was that bytecode is a lot more compact than most "natural" assemblers for higher-level tasks. don't know if any of that movement survives though, would like to think that forth has a foothold in that niche still
|
# ? Feb 22, 2015 23:44 |
|
e: nm, brain failure
|
# ? Feb 22, 2015 23:45 |
|
Cybernetic Vermin posted:the old argument for java on microcontrollers was that bytecode is a lot more compact than most "natural" assemblers for higher-level tasks. don't know if any of that movement survives though, would like to think that forth has a foothold in that niche still basically all of the interface into our hardware is done thru forth, i try to just use the scripts that other people write to do it for me
|
# ? Feb 22, 2015 23:52 |
|
lol go doesn't have an exponentiation operator and the standard library only implements float exponentiation like rolling your own isn't hard but uh...
|
# ? Feb 23, 2015 05:32 |
|
bobbilljim posted:there are some recent micros designed to use java bytecode, i dont think teh idea really took off though but i dont know for sure iirc they wound up running native java slower than running a jvm lol
|
# ? Feb 23, 2015 05:41 |
|
Hed posted:This is from way back but I've done something like this in the past: Yeah, this is the way I do it. Any instance specific settings go into a config.env file, that I can even isolate to just the run with: code:
I dunno if there's a better way to do go about it, but hey, every programming lang has ways to get environment variables so no matter how a web framework or library implements their config, there's probably a way for me to get those environment variables in there. The config.env is just a simple line of environment variables: code:
Maluco Marinero fucked around with this message at 05:51 on Feb 23, 2015 |
# ? Feb 23, 2015 05:49 |
|
Bloody posted:iirc they wound up running native java slower than running a jvm lol sounds about right
|
# ? Feb 23, 2015 05:53 |
|
Bloody posted:iirc they wound up running native java slower than running a jvm lol iirc jazelle support is still mandatory in armv8 (defnitely is in armv7) except the only instructions required to be implemented are "enter jazelle mode" and "get me the gently caress out of jazelle mode"
|
# ? Feb 23, 2015 10:13 |
|
Bloody posted:iirc they wound up running native java slower than running a jvm lol like the JavaStations that were a microSPARC Jesus gently caress just give me a microSPARC (with SunOS 4.1.3 please) and leave this Java poo poo at the doorstep only plus about the JVM is server-side ubiquity, .war deployment is the only reason WebObjects 5 was a good idea
|
# ? Feb 23, 2015 10:15 |
|
fritz posted:basically all of the interface into our hardware is done thru forth, i try to just use the scripts that other people write to do it for me just build an LLVM back-end targeting your forth dialect, then you can use clang
|
# ? Feb 23, 2015 10:16 |
|
FamDav posted:i just annotate my classes with @Log same but my posts
|
# ? Feb 23, 2015 20:18 |
|
MALE SHOEGAZE posted:lol go doesn't have an exponentiation operator and the standard library only implements float exponentiation go is such a worthless language
|
# ? Feb 23, 2015 20:27 |
|
this is fun: in my system we have transactions that can have line items that are listed off in sequence ie: 1, 2, 3, etc. apparently there's no central component that handles this and in all the hundreds of different ways transactions can turn into other types of a transaction they're all generated on their own in their own unique snowflake way. turns out some programmer decided he didn't want to go through the effort of numbering these line items and instead used our global sequencing class meant for the database to number them so instead of 1, 2, 3 it's 23009876, 23009888, 23009912, etc. because at least those are guaranteed to be unique, right?
|
# ? Feb 23, 2015 20:53 |
|
MALE SHOEGAZE posted:lol go doesn't have an exponentiation operator and the standard library only implements float exponentiation this is like the most trivial complaint about a language that is filled with idiocies there are plenty of languages that are the same (c, java, everything descended from the two). the only languages i can think of that have exponentiation operators are either plangs or greybeard poo poo like ada and fortran int fit in doubles and long long fits in long double anyway
|
# ? Feb 23, 2015 21:02 |
|
rethink your life choices if you ever have to exponentiate anything other than 2 anyway, or at least stop trying to do math in integers and/or in a language that was not designed for math
|
# ? Feb 23, 2015 23:25 |
|
Soricidus posted:rethink your life choices if you ever have to exponentiate anything other than 2 anyway, or at least stop trying to do math in integers and/or in a language that was not designed for math this, literally "language X is no good because it doesn;t have an operator for something i will never use"
|
# ? Feb 23, 2015 23:34 |
|
bobbilljim posted:this, literally "language X is no good because it doesn;t have an operator for something i will never use" what would the operator be anyways, ^ is
|
# ? Feb 23, 2015 23:39 |
|
hobbesmaster posted:what would the operator be anyways, ^ is **
|
# ? Feb 23, 2015 23:40 |
|
the multiply by result of pointer dereference operator
|
# ? Feb 23, 2015 23:44 |
|
b0lt posted:the double pointer dereference operator
|
# ? Feb 23, 2015 23:44 |
|
b0lt posted:this is like the most trivial complaint about a language that is filled with idiocies yeah i dont really care and wouldn't have noticed except i was using it for project euler it's just funny since it's a language that literally bills itself as 'a plang but with static typing and maybe a little bit fast' the standard library is just very anemic for something that's supposed to be a sane alternative to ruby and python. the syntax is nice and goroutines are cool and i like interfaces and getting out of class hell. but if they want to be popular with ruby people it should provide more hand holding DONT THREAD ON ME fucked around with this message at 23:53 on Feb 23, 2015 |
# ? Feb 23, 2015 23:49 |
|
MALE SHOEGAZE posted:yeah i dont really care and wouldn't have noticed except i was using it for project euler does it really bill itself like that? cause it feels more like a c-lang with the edges rounded
|
# ? Feb 23, 2015 23:52 |
|
Uncomfortable Gaze posted:does it really bill itself like that? cause it feels more like a c-lang with the edges rounded https://www.youtube.com/watch?v=5kj5ApnhPAE loving bbcode go to 8 minutes or 11 minutes if you just want to hear rob pike say it outright i like the language a lot so far but i've only used it for like 3 hours DONT THREAD ON ME fucked around with this message at 23:58 on Feb 23, 2015 |
# ? Feb 23, 2015 23:55 |
|
MALE SHOEGAZE posted:
yea, I definitely think he's being disingenuous when he compares it to python. i've only used go for a few toy projects, but everything i've seen feels like a simplified take on a systems lang and nothing like a plang
|
# ? Feb 24, 2015 00:04 |
|
Uncomfortable Gaze posted:yea, I definitely think he's being disingenuous when he compares it to python. i've only used go for a few toy projects, but everything i've seen feels like a simplified take on a systems lang and nothing like a plang I mean, it's maybe somewhere in between? It's certainly not nearly as painful as C or C++. At least in terms of syntax. I haven't used it enough to be aware of any hidden horrors.
|
# ? Feb 24, 2015 00:14 |
|
|
# ? May 27, 2024 02:25 |
|
c is a beautiful language
|
# ? Feb 24, 2015 00:38 |