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
Soricidus
Oct 21, 2010
freedom-hating statist shill

Notorious b.s.d. posted:

http://cr.openjdk.java.net/~jrose/pres/201502-JVMChallenges.pdf

this is a cool slide deck about what they want to do with the jvm now

tl;dr: what they want to do is have value types and something equivalent to reified generics by, uh, 2030.

Adbot
ADBOT LOVES YOU

ultramiraculous
Nov 12, 2003

"No..."
Grimey Drawer

pseudorandom name posted:

hopefully on iOS

react native 2.0: 'gently caress it' edition

BONGHITZ
Jan 1, 1970

Bloody posted:

cool shitpost about a thing from like two weeks ago this was relevant good work

i am slow

Peanut and the Gang
Aug 24, 2009

by exmarx
Cool CSS effects using SVG:
http://css-tricks.com/gooey-effect/

Shaggar
Apr 26, 2006

Notorious b.s.d. posted:

i am pretty sure this is why eclipse has a splash screen

eclipse is made up of a billion plugins and that load screen is where it reads and loads each one. uis are created on demand which is why the first time you open certain dialogs it will be slow while it loads the classes but then be fast afterwards

Shaggar
Apr 26, 2006

Soricidus posted:

swing is ok, swing performance is fine as long as it's done properly with worker threads and stuff. slower than native guis, faster than 100% of web apps i've ever had the misfortune of using.

the swing api is pretty lovely though, i'm not gonna defend that.

the two major gui apis for java (swing and eclipse swt) haven't changed since java 1.4.

Shaggar
Apr 26, 2006
eclipse rcp looks kind of nice until you realize you have to use swt and then it really sucks

CPColin
Sep 9, 2003

Big ol' smile.

Shaggar posted:

the two major gui apis for java (swing and eclipse swt) haven't changed since java 1.4.

Hey, they added generics to things like JList.

So now you can pass a Vector<? extends E> to the JList constructor. :downs:

Progressive JPEG
Feb 19, 2003

So is it Java 8 or Java 2 1.8??

Notorious b.s.d.
Jan 25, 2003

by Reene

Progressive JPEG posted:

So is it Java 8 or Java 2 1.8??

the version numbers go like this:

java 1.1
java 2 se 1.2
java 2 se 1.3
java 2 se 1.4
java 5
java 6
java 7
java 8

this is from the same vendor who gave us this version series for their operating system:
4.0
1.1 (4.1)
2.0 (5.0)
2.2 (5.2)
2.3 (5.3)
2.5.1 (???)
2.6 (5.6)
7 (5.7)
8 (5.8)
10 (5.10)
11 (yep, 5.11)

Notorious b.s.d.
Jan 25, 2003

by Reene
this video is great fun and will piss off shaggar

https://www.youtube.com/watch?v=RnqAXuLZlaE

triple sulk
Sep 17, 2014



Notorious b.s.d. posted:

this video is great fun and will piss off shaggar

https://www.youtube.com/watch?v=RnqAXuLZlaE

this is my favorite programming video

Peanut and the Gang
Aug 24, 2009

by exmarx

Notorious b.s.d. posted:

this video is great fun and will piss off shaggar

https://www.youtube.com/watch?v=RnqAXuLZlaE

tef
May 30, 2004

-> some l-system crap ->

Peanut and the Gang
Aug 24, 2009

by exmarx

Majestic coding.

Sapozhnik
Jan 2, 2005

Nap Ghost
https://issues.apache.org/jira/browse/DIRMINA-678

loljava

e: there's some bug in that apache project but apparently a tightloop in jdk7's epoll library is a real thing which i may or may not be getting hit by in production atm

Sapozhnik fucked around with this message at 17:48 on Feb 5, 2015

Bloody
Mar 3, 2013

i think i found a compiler bug in avr-gcc or at least if not a bug then weird/unexpected behavior

Bloody
Mar 3, 2013

the crux of it is the following pseudocode:
code:
char flag = 0
ISR(interrupt trigger)
    flag = 1

main()
    while(1)
        if(flag == 1)
            do a thing
            flag = 0
       else do nothing
i would expect flag to get set in the isr then, at some point, checked in the main loop and the conditional code there executed

it does not do this

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

did you mark flag as volatile?

havelock
Jan 20, 2004

IGNORE ME
Soiled Meat
make flag volatile?

Edit: ^^^^

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Bloody posted:

the crux of it is the following pseudocode:
code:
char flag = 0
ISR(interrupt trigger)
    flag = 1

main()
    while(1)
        if(flag == 1)
            do a thing
            flag = 0
       else do nothing
i would expect flag to get set in the isr then, at some point, checked in the main loop and the conditional code there executed

it does not do this

maybe it thinks flag is a string instead of an integer?

Bloody
Mar 3, 2013

Subjunctive posted:

did you mark flag as volatile?

volatile makes it work yeah but i dunno i feel like it shouldn't be necessary in this case

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Bloody posted:

volatile makes it work yeah but i dunno i feel like it shouldn't be necessary in this case

this is like the classic example of when to use volatile: there's a mutation that's not visible to the control flow. otherwise it could never hoist any loads, it'd have to rematerialize every time through the loop, you would cry yourself to sleep, etc.

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
tbh compilers targeting avr or msp or whatever should probably consider everything volatile and also aliased by everything else by default but yeah it's free to hoist poo poo out of loops unless you tell it not to (and even if you mark things as volatile, the spec allows a compiler to eliminates stores to a var where it can't find any loads but i don't think any compiler is petulant enough to actually do that)

gonadic io
Feb 16, 2011

>>=

prefect posted:

maybe it thinks flag is a string instead of an integer?

not trying to be mean here, and it's certainly something that I struggle with myself, but please don't give advice when you have at most a cursory understanding of the topic being discussed, especially when it's in as finicky a language as C

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

counterpoint: I've made a moderately successful career of it

Soricidus
Oct 21, 2010
freedom-hating statist shill

Subjunctive posted:

counterpoint: I've made a moderately successful career of it

yeah, the trick is to get it so that when the result of following your advice is a disaster, people think the problem is that they didn't listen to you enough

it works great for economists too

sarehu
Apr 20, 2007

(call/cc call/cc)

prefect posted:

maybe it thinks flag is a string instead of an integer?

Maybe it thinks it's a pokemon.

Brain Candy
May 18, 2006

Soricidus posted:

tl;dr: what they want to do is have value types and something equivalent to reified generics by, uh, 2030.

and they are driving away from OO as fast as they can (slowly)

suffix
Jul 27, 2013

Wheeee!

Bloody posted:

code:
atomic_bool flag = false
ISR(interrupt trigger)
    atomic_store(&flag, true)

main()
    while(1)
        if(atomic_load(&flag))
            do a thing
            atomic_store(&flag, false)
       else do nothing

fixed that for you, grandpa

Bloody
Mar 3, 2013

atmega

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

sarehu posted:

Maybe it thinks it's a pokemon.

an excellent point

have you tried holding down + B when you trigger the interrupt, OP

you have to press it on the third iteration or it doesn't always work

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

i'm going to acknowledge this cool effect.

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

gonadic io posted:

not trying to be mean here, and it's certainly something that I struggle with myself, but please don't give advice when you have at most a cursory understanding of the topic being discussed, especially when it's in as finicky a language as C

i should have included a goofy smiley face to indicate the intended humor; my apologies :blush:

Peanut and the Gang
Aug 24, 2009

by exmarx

Wheany posted:

i'm going to acknowledge this cool effect.

Ty. It's really cool.

newreply.php
Dec 24, 2009

Pillbug


P.S. 2015 not 2005, sorry

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

newreply.php posted:



P.S. 2015 not 2005, sorry

now there are two red squiggly lines :rant:

MononcQc
May 29, 2007

what the gently caress is this poo poo

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
a stock photo (intended to be artsy by being out of focus and having an anachronistic subject) with some bloom applied and dumb text added

Adbot
ADBOT LOVES YOU

Deacon of Delicious
Aug 20, 2007

I bet the twist ending is Dracula's dick-babies

gonadic io posted:

not trying to be mean here, and it's certainly something that I struggle with myself, but please don't give advice when you have at most a cursory understanding of the topic being discussed, especially when it's in as finicky a language as C

sarehu posted:

Maybe it thinks it's a pokemon.

:chloe:

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