Bitcoin Forum
November 14, 2024, 03:13:29 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: done  (Read 1867 times)
genpayne
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
April 27, 2013, 02:28:39 PM
 #21



You are right, but it was just an example, and it doesn't look too different...

Anyway, I didn't take this thread serious. Who would need a useless app, and who will do it for $3?

To my mind it doesn't even worth time of discussing it, though there is some fun in it.

Haha. I know! He would have been better off asking if anyone would do it for free! I mean because he mentioned a fee I suggested a sensible one but considering it was 10 minutes work tops I would have been happy to do it in exchange for a favour owed.

In my view any discussions worth while. If nothing else you learn about other people!
alberthrocks
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
April 27, 2013, 03:54:34 PM
 #22

You need the virtual machine yes, but there are portable versions. All it is in effect is a run time compiler. Take this byte-code and transfer it to machine code... byte-code being just a "fake" machine language anyway
How do you think python works? The interpreter is just a much higher-level version of the same thing.
Yes, Python and Java are very similar in that aspect. I'm not too sure about having the JRE be portable, though... the JRE is around 96+ MBs. (I know since I am working on a project that requires a portable Java - I use jPortable to provide the portable JRE implementation - basically just a specially extracted MSI.)

Which is why python is generally slower than Java. Since Java byte-code is far closer to machine language the conversion is faster.
Ehh... what makes you say that? It's hard to say which language is faster because there's multiple factors that can be used to judge that. (I can't say which one is faster, though I'm rooting towards Python, heh...)

The solutions for both languages AFAIK package a version of the virtual machine/interpreter in with the executable.
You then have a wrapper so when you double click the exe it runs the contained virtual machine/interpreter for the program.
There are also ways to compile Java (and probably python) to machine-language but they are rare and kind of defeat the purpose of the languages.
For Java, the JRE EXE running might be the case.
For Python, usually there's a loader that hooks into libpython to launch the code.
In addition, if you're referring to AoT, there are probably more Python AoT compilers than Java. (For Java, nearly all AoT compilers out there are extremely expensive.) Some AoT compilers even compile Python to C! (Sorta. The resulting program still requires libpython, but it's much faster.)

Whatever works, I guess. I like Python due to its simplistic syntax and plethora of tools. As always, YMMV!

I really ought to look into Qt. Its catching on like wildfire!
Im a Swing guy generally, although its limitations are frustrating.
And C/C++ for non-GUI stuff.
Qt is so freaking awesome. Cheesy See below for more details!
Qt also is native C++, so you can mush your code together. The only warning I will have is that you need to use Q* everything. QString, QChar, QFile, etc. (That's why I usually like to write GUI apps in Python, since you don't have to deal with that mess...)

Fun fact. Learnt C# in 24 hours to impress a girl.
Nice! Every programmer's wet dream, eh? Cheesy



Anyway, I've PM'ed OP with file and address 1KsySqfN4tmbLBznowjam8qvbsQ5twKVZP. Here's hoping that OP is a bit more serious about this offer... Tongue (If not, it was a quick fun job, and I got more experience in Qt, yay!)

You guys can take a peek of my result here:
http://www.mediafire.com/?va50w6yriwup6tr

One of the reasons I love Qt is because of its really awesome Qt Designer! Just drag and drop, then hit a button to line them all up and make it look pretty! Wink

There's also awesome CSS theming as well! I used a dark orange CSS theme to skin the application and make it look "pro".

Screenshots: (also can be found here):
https://i.imgur.com/bk5ekYk.png
https://i.imgur.com/XOLOUcn.png
genpayne
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
April 27, 2013, 05:30:07 PM
 #23

See, I was equally Lazy. Used Netbeans for drag and drop Swing.

Just associated mine with the system theme.
So it comes out as below.
Easy enough to change it to something else by altering one line in the code. Or just changing the system colours!

Oh, and those browse buttons open up file choosers.
Also, if you click start when any of the three text boxes are empty it pops up an error message! 10 minutes work, and if I'm not the one to get paid then it was good revision for my HCI exam on Monday!

http://www2.picturepush.com/photo/a/12794860/img/12794860.png


genpayne
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
April 27, 2013, 05:59:59 PM
 #24

Quote
Yes, Python and Java are very similar in that aspect. I'm not too sure about having the JRE be portable, though... the JRE is around 96+ MBs. (I know since I am working on a project that requires a portable Java - I use jPortable to provide the portable JRE implementation - basically just a specially extracted MSI.)
You can get versions smaller than 20mb! It depends what exactly you need! And considering you can get a 16GB USB drive for £5 size isn't the limitation nowadays.

Quote
Ehh... what makes you say that? It's hard to say which language is faster because there's multiple factors that can be used to judge that. (I can't say which one is faster, though I'm rooting towards Python, heh...)
Very bad choice of wording on my part.
It depends on the implementation of the virtual machine or python interpreter, and how you compare things. IE Python could be implemented in C so technically it is as fast.
But Java tends to be quicker at runtime. ie if you have a program built in python and kept as uncompiled python (.py) as opposed to java bytecode, usually the bytecode will win out. However things get blurry considering python can also be compiled to its own bytecode. It really depends what you are doing!
Both are very different entities. And for something as basic as this, speed is not really the issue. Especially considering we both used drag and drop so the code will be nowhere near optimal!
Quote

For Java, the JRE EXE running might be the case.
For Python, usually there's a loader that hooks into libpython to launch the code.
In addition, if you're referring to AoT, there are probably more Python AoT compilers than Java. (For Java, nearly all AoT compilers out there are extremely expensive.) Some AoT compilers even compile Python to C! (Sorta. The resulting program still requires libpython, but it's much faster.)
At the end of the day unless AoT is used both are either stored as bytecode or in pythons case occassionally just the language.
So somewhere at run time the bytecode has to be converted to machine code. If you want truly portable code (ie the system does not have to have any python or java related entities at all) you need to take the whole lot with you. There will not be an AoT that compiles to C! Because that wouldn't be compiled! Only translated / ported!
There might be a AoT compiler written in C! or that ports it to C THEN compiles it?
These are all really the same comparisons as languages and machine code directly. The very best code could be written in machine code because no compiler can optimise perfectly. But, for a large project most of us just are not clever enough / don't have decades to do it!

Personally Im at heart a low level C guy! I like being able to abuse a machine Wink

Code:
Qt also is native C++, so you can mush your code together.
Fun fact 2, you can do it with python too! Had to write a paper on Games Engines where its incredibly common.
http://www.boost.org/doc/libs/1_53_0/libs/python/doc/index.html

Quote
Nice! Every programmer's wet dream, eh? Cheesy

It worked. No wet dreams were required Wink
My dreams don't tend to include C#. Ew... Microsoft... Thats the fat chick in the corner of the club drinking a pint of cider and picking her nose...
*Edit. After realising it sounds like it I shall point out this is not referencing the initial girl. I'm not that desperate Wink *
alberthrocks
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
April 27, 2013, 08:44:37 PM
 #25

See, I was equally Lazy. Used Netbeans for drag and drop Swing.

Just associated mine with the system theme.
So it comes out as below.
Easy enough to change it to something else by altering one line in the code. Or just changing the system colours!

Oh, and those browse buttons open up file choosers.
Also, if you click start when any of the three text boxes are empty it pops up an error message! 10 minutes work, and if I'm not the one to get paid then it was good revision for my HCI exam on Monday!
(redacted image)
Ah, nice! I didn't add any interactivity to mine... it was just a quick "design and throw out" job.
I revised it to add interactivity, just for fun:
http://www.mediafire.com/download.php?0wd8sfcvv4zo7vd



You can get versions smaller than 20mb! It depends what exactly you need! And considering you can get a 16GB USB drive for £5 size isn't the limitation nowadays.
Oh, didn't know that! I thought you had to carry the entire JRE with you...
As for the "16 GB USB drive argument", you probably wouldn't want the end user to download 100 MBs for a simple little app... Tongue

Very bad choice of wording on my part.
It depends on the implementation of the virtual machine or python interpreter, and how you compare things. IE Python could be implemented in C so technically it is as fast.
But Java tends to be quicker at runtime. ie if you have a program built in python and kept as uncompiled python (.py) as opposed to java bytecode, usually the bytecode will win out. However things get blurry considering python can also be compiled to its own bytecode. It really depends what you are doing!
Both are very different entities. And for something as basic as this, speed is not really the issue. Especially considering we both used drag and drop so the code will be nowhere near optimal!
Python's C implementation (the default) isn't exactly the prizeholder for fast, but like Java, it will compile the code into bytecode at runtime. For single scripts, this isn't obvious, but for programs that import multiple scripts, it's obvious with the new little *.pyc files that get created at startup.

At the end of the day unless AoT is used both are either stored as bytecode or in pythons case occassionally just the language.
So somewhere at run time the bytecode has to be converted to machine code. If you want truly portable code (ie the system does not have to have any python or java related entities at all) you need to take the whole lot with you. There will not be an AoT that compiles to C! Because that wouldn't be compiled! Only translated / ported!
There might be a AoT compiler written in C! or that ports it to C THEN compiles it?
AoTs exist for Python that compile to C, which (IIRC) compiles to machine code directly when doing the conversion. (See: Cython)

These are all really the same comparisons as languages and machine code directly. The very best code could be written in machine code because no compiler can optimise perfectly. But, for a large project most of us just are not clever enough / don't have decades to do it!
Yup.

Personally Im at heart a low level C guy! I like being able to abuse a machine Wink
Heh, same here. Wink

Fun fact 2, you can do it with python too! Had to write a paper on Games Engines where its incredibly common.
http://www.boost.org/doc/libs/1_53_0/libs/python/doc/index.html
Oh, I knew about the Python side of things. Smiley I used PyQt4 for my implementation, which uses SIP to create the binding from C++ to Python.

It worked. No wet dreams were required Wink
My dreams don't tend to include C#. Ew... Microsoft... Thats the fat chick in the corner of the club drinking a pint of cider and picking her nose...
C++ is in your dreams, sir? Wink

*Edit. After realising it sounds like it I shall point out this is not referencing the initial girl. I'm not that desperate Wink *
WOW... you're crazy! Tongue I'm going to look the other way... Wink
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
April 28, 2013, 01:50:44 AM
 #26


I can do it. I'll upload it when it's done. I will do that exact same style. Will take me a few hours since I'll do this in my spare time over the weekend.

The buttons won't do anything, as per your request.

A few hours!!?? Are you manually writing it in machine language or something!!??
If you need some pointers to tutorials give me a shout. What language are you using?

Yes. I'm manually writing it in Assembly. First I'm going to make a quick form thingie like all you guys did. Then I'm going to tweak it. Then I'm going to compress it. I should have the whole executable, with no dependencies required except Windows, at around less than 100 kilobytes.

I did say, I was going to do this in my spare time. I don't think I can even finish it this weekend.

For $3, it's not much financial motivation. But I've made lots of useless apps.

Of course, I could just do the whole thing in VB Classic (Version 6) and be done with it in 10 minutes too.

Mine will have a "donate" button. hehe. (won't do anything but show you my bitcoin address.)

Quartx
Hero Member
*****
Offline Offline

Activity: 1036
Merit: 504


Becoming legend, but I took merit to the knee :(


View Profile WWW
April 28, 2013, 04:36:05 AM
 #27

Pmed Op when he was online yesterday, got no reply at all, just wtf at manners

deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
April 28, 2013, 04:46:02 AM
 #28

Just make every button ftp you his wallet?
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!