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
Wirth1000
May 12, 2010

#essereFerrari


all those moments will be lost in time... like tears in rain... time to sniiiiiiiipe

Adbot
ADBOT LOVES YOU

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
Use qt. All the power of c++, plus more ownage on top

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

0xB16B00B5 posted:

good job spending all your time targeting one platform when you could just as easily target android, iOS, windows, mac, etc.. all at once
yes sir the last portability layer is juuuuuust over the next hill

abraham linksys
Sep 6, 2010

:darksouls:
zero to app in like 5 hours



(thx for the api elgruntox)

poo poo is easy. the hardest part was configuring xcode to use an external library, which was a p huge pain.

i mean i won't pretend i like "know" objective-c now, but it wasn't like it was really difficult to get the hang of. still kinda figuring out some parts of the syntax and the whole delegates thing which seems to be kinda key, but its fun

now i just need $100 to run the app on my phone :s

tef
May 30, 2004

-> some l-system crap ->

MrMoo posted:

I love with 0mq you can start with inter-thread sockets, move to inter-process, then cross-network with only a configuration change. That's putting power into operations hands.

I tended to use cross-network from the outset, rather than moving code from one to the other. I guess I am lucky in that I can live with the latency of tcp for the most part.

quote:

I'm using 0mq in a hedge fund project to distribute big data queries, it gives a nice simple low learning curve API which is a nice change after looking at many other APIs in the industry.

It's nice to hear some success stories. :3:

I get that 0mq has its plus points - reasonable low-latency message passing library, that allows you to move code between different transports, with reasonable cross platform support.

unfortunately, multipart support is manual, some connections require extra synchronisation to prevent message loss, as well as heartbeats to detect failure.

the biggest thing 0mq doesn't do is define your message format, It just handles the framing for you. the content of messages is opaque to 0mq, and so if you want any middleware, you have to write it yourself.

"did you just tell me to go gently caress myself?"

this is where the tight coupling happens - without a common message format, it is hard to build reusable middleware. without self descriptive messages, it is hard to build loosely coupled components.

I like caches. I quite like redirects and urls too. I like transparent gzip, and arbitrary message bodies.

don't get me wrong: the use of HTTP is also a tradeoff, but for the software I build, loose coupling is more important than latency.

tl;dr 0mq smells of wee.

MrMoo
Sep 14, 2000

tef posted:

this is where the tight coupling happens - without a common message format, it is hard to build reusable middleware. without self descriptive messages, it is hard to build loosely coupled components.

A platform is built by picking a transport and a message format, this isn't exactly very different from TCP, HTTP, RV, RSSL, and many other APIs. Tightly coupling a message format to 0mq makes the API larger and more limiting: everyone has their own preferred messaging format.

"did you just tell me to go gently caress myself?"

Connection handling and reliability is a difficult direction. A lot of the problems stem from the underlying transports and thus heartbeats become a requirement. 0mq is a thin API and not a big super message queuing system which does provide this additional functionality. This is why 0mq is in active development to carve out the required features for application developers.

Caches, compression, filtering, are all value added functionality that big message middleware provides. Not everyone wants a 600MB minimal MQ install (IBM), and the technologies are rapidly changing with many different choices.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

MrMoo posted:

Caches, compression, filtering, are all value added functionality that big message middleware provides. Not everyone wants a 600MB minimal MQ install (IBM), and the technologies are rapidly changing with many different choices.
lol

you can get http proxies that do all that for free and way less than 600mb

Joyent will even lease you one

Sapozhnik
Jan 2, 2005

Nap Ghost

tef posted:

this is where the tight coupling happens - without a common message format, it is hard to build reusable middleware. without self descriptive messages, it is hard to build loosely coupled components.

Neither ZMQ nor HTTP has a defined payload format, what makes them different?

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

abraham linksys posted:

zero to app in like 5 hours



(thx for the api elgruntox)

poo poo is easy. the hardest part was configuring xcode to use an external library, which was a p huge pain.

i mean i won't pretend i like "know" objective-c now, but it wasn't like it was really difficult to get the hang of. still kinda figuring out some parts of the syntax and the whole delegates thing which seems to be kinda key, but its fun

now i just need $100 to run the app on my phone :s

Change the ui. You used MVC right

MrMoo
Sep 14, 2000

Cocoa Crispies posted:

you can get http proxies that do all that for free and way less than 600mb

Joyent will even lease you one

They don't however support 400,000 requests per second per core using cheap commodity hardware and you have to add an expensive load balancer to get a half rear end fault tolerance with a fundamentally single point of failure device.

Our hosted operations guys & gals are terrible though, they sell on pairs of servers that have maximum capacity of 300,000 cached items. My project requires 20 million cached items, which would work fine on a single pair of servers with only 32GB ram.

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

Zombywuf posted:

Turns out that's probably illegal text in my country, I just got arrested jerk.

is that really a thing

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice
pls publish goonsay that poo poo cheers me up when I feel like I wasted my life

keeps things in perspective ya know

abraham linksys
Sep 6, 2010

:darksouls:

vapid cutlery posted:

Change the ui. You used MVC right

if by mvc you mean "shoved everything into viewcontroller.m" sure

i don't really know any sort of architectural poo poo for this; i just designed my interface w the builder and did the connect to outlet thing and put some extra UI code in viewcontroller.m to better style it (what you can't make fuckin rounded corners in interface builder??? weird apple!!)

i dunno i mean i have like a single extra class for each entry that restkit binds the API data to is that "MVC" enough for you

Cold on a Cob posted:

pls publish goonsay that poo poo cheers me up when I feel like I wasted my life

keeps things in perspective ya know

i dont think apple would allow it there's some real horrible quotes in this :stonk:

tef
May 30, 2004

-> some l-system crap ->

Mr Dog posted:

Neither ZMQ nor HTTP has a defined payload format, what makes them different?

0mq has 'length:content'. http has 'verb location headers content'

http can answer 'what format is the body of this message in', 'can I cache this message', 'this this request safe/idempotent?'

0mq can answer 'how long is this message fragment'

tef fucked around with this message at 21:33 on Aug 4, 2012

salted hash browns
Mar 26, 2007
ykrop

abraham linksys posted:

if by mvc you mean "shoved everything into viewcontroller.m" sure

i don't really know any sort of architectural poo poo for this; i just designed my interface w the builder and did the connect to outlet thing and put some extra UI code in viewcontroller.m to better style it (what you can't make fuckin rounded corners in interface builder??? weird apple!!)

i dunno i mean i have like a single extra class for each entry that restkit binds the API data to is that "MVC" enough for you


i dont think apple would allow it there's some real horrible quotes in this :stonk:

post it on github

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano
gently caress me on github

abraham linksys
Sep 6, 2010

:darksouls:

salted hash browns posted:

post it on github
already there

https://github.com/thomasboyt/goonsay-ios

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano
srs q why dont you do some interesting programming cos that thing looks like a shitload of crap around whats essentially grab data from url + display on screen. i mean its not even an interesting problem from a architectural pov if you buggered the mvc up

Sweeper
Nov 29, 2007
The Joe Buck of Posting
Dinosaur Gum

Milkie Galore posted:

srs q why dont you do some interesting programming cos that thing looks like a shitload of crap around whats essentially grab data from url + display on screen. i mean its not even an interesting problem from a architectural pov if you buggered the mvc up

interesting things are hard to come up with because most of programming is boring as hell. maybe i feel this way because i like designing things and i only program to see if my idea works

abraham linksys
Sep 6, 2010

:darksouls:

Sweeper posted:

interesting things are hard to come up with because most of programming is boring as hell

this

also did you miss the part where i had never touched objective-c before (or c, or c++, for that matter), or xcode, or any sort of mobile development?

this was my hello world

now if you have other great suggestions for sick appz feel free to post them but i'll probably just do a to-do app to learn more complex/dynamic interfaces and coredata

Alligator
Jun 10, 2009

LOCK AND LOAF
to-do app. the first and last app you'll ever make in anything.

Apocadall
Mar 25, 2010

Aren't you the guitarist for the feed dogs?

so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be
code:
var multiply = function(x,y){
	return x * y;
}
console.log(multiply(3,5);
how would i do this in java?

Alligator
Jun 10, 2009

LOCK AND LOAF

Apocadall posted:

so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be
code:
var multiply = function(x,y){
	return x * y;
}
console.log(multiply(3,5);
how would i do this in java?
http://ideone.com/gZMII

please don't try and learn java by writing javascript in it. get yourself a good book.

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano
actually do get a book don't just copy that and put static everywhere without knowing what it means

Apocadall
Mar 25, 2010

Aren't you the guitarist for the feed dogs?

yeah i wasn't really aiming to mimic the code in java, but more the idea of displaying the output of a function to the console and how i would go about doing that. seems one of the biggest things with differences in java by comparison to interpreted languages (python and javascript are interpreted, not compiled right?) is the extra words that need to be added to things like int, double, static, public, private, any of those. i get what most of them mean like the public/private having to do with whether a class can access functions from another class or that it can only be called from within a class that it's in, static is confusing though, i looked it up but i'm not really getting why it exists.

what are some of the alternatives used to static? if i had something to compare it to it would help understand what it does in relation.

abraham linksys
Sep 6, 2010

:darksouls:
read a book

i dont know what a good zero to java book is but please read a book

Alligator
Jun 10, 2009

LOCK AND LOAF

Apocadall posted:

yeah i wasn't really aiming to mimic the code in java, but more the idea of displaying the output of a function to the console and how i would go about doing that. seems one of the biggest things with differences in java by comparison to interpreted languages (python and javascript are interpreted, not compiled right?) is the extra words that need to be added to things like int, double, static, public, private, any of those. i get what most of them mean like the public/private having to do with whether a class can access functions from another class or that it can only be called from within a class that it's in, static is confusing though, i looked it up but i'm not really getting why it exists.

what are some of the alternatives used to static? if i had something to compare it to it would help understand what it does in relation.
it sounds like you probably need to go over oo from the ground up.

food for thought: notice now we create a class called main but never instantiate it, and yet stuff still happens.

Apocadall
Mar 25, 2010

Aren't you the guitarist for the feed dogs?

Alligator posted:

it sounds like you probably need to go over oo from the ground up.

food for thought: notice now we create a class called main but never instantiate it, and yet stuff still happens.

yeah i've been reading up on main from a few different sites (that's kind of how i've been going through this). when i come to something i don't know i'll spend time researching it from as many different locations as i can until i understand it and then poke and prod at it until it clicks as to what it does. main from what i've gathered is just the first class always called and the String [] args parameters is to allow it to store methods while it's processing?

i'm gonna poke it some more and see what happens

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano
the String[] parameter is like argv, its the array of arguments passed to your program on the command line http://docs.oracle.com/javase/tutorial/essential/environment/cmdLineArgs.html

main is the method which is invoked (statically!) when you run your program

static methods can: call other static methods, access static properties
non-static methods can: call both static and non-static methods, access both static and non-static properties
both types of method can instantiate new objects

learn the difference between classes and objects because the idea of static is closely related

Alligator
Jun 10, 2009

LOCK AND LOAF

Apocadall posted:

yeah i've been reading up on main from a few different sites (that's kind of how i've been going through this). when i come to something i don't know i'll spend time researching it from as many different locations as i can until i understand it and then poke and prod at it until it clicks as to what it does. main from what i've gathered is just the first class always called and the String [] args parameters is to allow it to store methods while it's processing?

i'm gonna poke it some more and see what happens
agh.

there are some languages you can sorta hack away at (perl, python) and get an understanding of, and some you need to know a little coming in otherwise you'll get lost very quickly.

dont end up writing everything inside one huge class and making everything static to get rid of those 'annoying' error messages plz.

at least read through this
http://docs.oracle.com/javase/tutorial/getStarted/application/index.html

and then look at the objects and classes lecture notes here:
http://ocw.mit.edu/courses/electric.../lecture-notes/

jony neuemonic
Nov 13, 2009

Milkie Galore posted:

the String[] parameter is like argv, its the array of arguments passed to your program on the command line http://docs.oracle.com/javase/tutorial/essential/environment/cmdLineArgs.html

main is the method which is invoked (statically!) when you run your program

static methods can: call other static methods, access static properties
non-static methods can: call both static and non-static methods, access both static and non-static properties
both types of method can instantiate new objects

learn the difference between classes and objects because the idea of static is closely related

this sounds like hell

Zombywuf
Mar 29, 2008

Otto Skorzeny posted:

is that really a thing

It's a depiction of acts "likely to cause serious injury to the breasts, genitals or anus." There's actually a case going on now that is determining whether anal fisting is illegal "extreme porn".

Apocadall
Mar 25, 2010

Aren't you the guitarist for the feed dogs?

Alligator posted:

agh.

there are some languages you can sorta hack away at (perl, python) and get an understanding of, and some you need to know a little coming in otherwise you'll get lost very quickly.

dont end up writing everything inside one huge class and making everything static to get rid of those 'annoying' error messages plz.

at least read through this
http://docs.oracle.com/javase/tutorial/getStarted/application/index.html

and then look at the objects and classes lecture notes here:
http://ocw.mit.edu/courses/electric.../lecture-notes/

thanks for these, one of the first things i did after you posted that code was to try putting the method into a class by itself and get it working as it was.

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano

fidel sarcastro posted:

this sounds like hell

its really not that bad (by java standards) ive just explained it terribly

static poo poo belongs to classes
non-static poo poo belongs to instances of classes, ie objects

the entry point being static means youre stuck in static land till you call new but im over analysing this

JawnV6
Jul 4, 2004

So hot ...

Apocadall posted:

so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be
code:
var multiply = function(x,y){
	return x * y;
}
console.log(multiply(3,5);
how would i do this in java?

:stare:

Toady
Jan 12, 2009

not to be all "loving google it", but how does someone not know how to get started with a programming language when there's google

tef
May 30, 2004

-> some l-system crap ->

Apocadall posted:

so i'm trying to learn some java by kind of taking the code academy lessons and trying to figure them out in java. how do you do functions though? example in javascript would be
code:
var multiply = function(x,y){
	return x * y;
}
console.log(multiply(3,5);
how would i do this in java?

don't do this. java hates functions.

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

TiMBuS
Sep 25, 2007

LOL WUT?

juts shove everything into a bunch of awful objects until java is happy.

Adbot
ADBOT LOVES YOU

abraham linksys
Sep 6, 2010

:darksouls:
ios dev, day 2:

added a continuous pagination feature. you can swipe horizontally between goonsay entries and it loads a new one if you swipe past the last loaded one. it owns

i wish i had $100 :smith:

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