Python vs Java - simple benchmark comparison

Hi all,
I recently posted a speed comparison of Python vs Java.
Following Xentac's suggestion, I imported Psyco to see if I could get any JIT benefits in the Python scripts. I then tried the latested Java JDK6 dev binaries too. This follow-up can be found here.
Please be aware that I'm totally aware of the vast limitations of micro-benchmarks like these. Still, although they are based on someone else's code, I like them because they represent the typical tasks I often carry out in both my Python and Java programming: IO, lists, hashes, for loops, etc.
Any comments welcome, especially on how to optimise the Python code. I can already see a couple of ways that ought to improve the Java tests.

I agree. I honestly am not trying to say that Java is better and Python is rubbish. I love em both. There's not a great deal of difference for the most part.
I just felt that people assumed that Java was slow because they've heard it's slow, or had prior experience of the old versions.
I have friend's saying "ugh, Java is sloowwww." And so avoid it. Yet, these same people rave about Perl and Python apps. My point was simply, hate Java for other reasons - not speed!
You may notice that the Java executable is only 63K. The bulk of Java comes from its extensive class library that ships with the runtime. People think that Java must load up all the classes or something before running, when in fact it only ever loads with it needs. So, whilst the package itself is large, any sure, it does require more memory than other languages, I just don't believe it's as bulky as some assume.
The motivation for those benchmarks was a comment on Frugalware's IRC channel where someone tried it out, said it was slow, removed it, and preferred the Python/gtk front-end they have instead. Followed with some insightful remark that Java only for web apps! I don't mind others prefering other front-ends. But is Jacman really slow? Please tell me, because it runs like a dream on my system. It would go even quicker if with pacman-optimize.

Similar Messages

  • Unbiased Java versus C# comparison

    I found this feature-by-feature, unbiased and informatve Java versus C# comparison, and thought that perhaps a few of you may be interested in it:
    http://www.prism.gatech.edu/~gte855q/CsharpVsJava.html
    Every comparison that I've read up to this point has either been written by Java or MS evangelists, and this one is definitely refreshing break from the typical essay.

    Agreed. However, the decision may generalize even further in many cases, and become "Industry supported platform of technologies (Java) or Microsoft proprietarization (.NET)." I still have not seen an unbiased comparison of the platforms, rather than languages, that goes as in depth as this one... if anybody else has, I'd love to see a link to it?
    For those that will be using both technologies, such as myself, this paper helps bridge the language gaps between the two and make transitioning simple. It's more helpful at the post-decision (to use .NET) level, rather than pre-decision.

  • Simple signal comparison problems

    hi
    i am tying to do a simple singnal comparison.
    eventually i want to read in two square wave signals 0-5v signals from my usb6008 DAQ Card
    But for now i want to
    Get the simulated wavforms amplitudes, then decide which is bigger.
    and light up the correct LED.
    this is what i have come up with but it doesnt work any ideas??
    Attachments:
    comparison.vi ‏565 KB

    I Changed the way the Express Vi was configured from equals to greater than. and now it works. If you have any more questions let me know.
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    comparison[1].vi ‏801 KB

  • Apps written in Python or Java?

    Does anyone else get really disappointed when they see a really nice app (such as Deluge or ADeskbar, etc) that is written in python or java?
    They always use a lot of memory and cpu compared to apps written in a compiled language.
    So, why do people write apps in these languages? Is it for portability (in the case of Java) or just because it's easier than other languages? Or is it just because nobody cares because most peoples' computers are too fast to care?
    And can't you get a "compiled" python by using cython?
    I'm just wondering why one would even start a project in python?
    *Disclaimer: I have written python code, but not intended as an actual desktop app. Just number-crunching type stuff that you run once in a while.
    Last edited by pogeymanz (2011-03-07 14:20:59)

    pogeymanz wrote:Does anyone else get really disappointed when they see a really nice app that is written in python or java?
    No, I don't get really disappointed when I see a really nice application.
    In my opinion, a "really nice app" would be an application that looked and behaved rather natively (such as Qt or GTK, using my color and icon theme...), ran quickly and responsively, and does what I need it to do.
    Personally, I have found Python applications that meet those requirements. I haven't really found any Java applications that meet those requirements, but if I did, I'd still look for alternatives, because I'm dissatisfied with Oracle as a company.
    pogeymanz wrote:So, why do people write apps in these languages? Is it for portability (in the case of Java) or just because it's easier than other languages? Or is it just because nobody cares because most peoples' computers are too fast to care?
    I'm a computer science graduate, a master of software engineering student, and a professional software developer. I recently wrote my first application in Python. I was blown away with how incredibly easily and quickly I was able to write it. Python allowed me to spend time thinking about what I want my application to do instead of how I'm going to write it in code.
    I used a new (to me) language (Python), a new toolkit (wxPython), and a new GUI RAD application (wxGlade). My application may be faster in a compiled language, but I doubt anyone would notice. People have confirmed that it runs on Linux, Windows, and Mac, even though I only wrote it and tested it myself in Linux. Also, it uses the native toolkit, icons, and shortcuts on each platform. (GTK, Windows API, Cocoa)
    I don't believe Python applications are too slow. Instead, I believe bad code (in any language) is slow.
    Currently, I'm rewriting my application in C++, but am still using wxWidgets and wxGlade. (If anyone is interested why, please let me know) Development is going painfully slow.

  • Java concurrency benchmarks - need ideas

    Hi,
    I'm doing a little research about concurrency in Java for my University and have to make series of benchmarks.
    What is has to be done is a conclusions such like "yeah, ReentrantLock is good for more scalable locking, but if you need simple lock a non-nested block of code, it's better to use synchronized because of less overhead in today versions of JDK 5 and 6".
    In my benchmarks I'm trying to follow mostly JCIP book, doing for example performance measurements of concurrent collection classes by implementing for example producer-consumer pattern with various consumer load of work degree, various consumer threads number, etc. I've also measured overhead of locking (my previous post). I will also measure mean Thread creation and start() time taken.
    But I don't have idea for simple use-cases of concurrency, that will lead me to make conclusions like above. Have you got any ideas what should be measured?

    Find the "Java Concurrency in Practice" -book is has some of the performance discussion that you talk about. Might be some code samples on the books website http://jcip.net/

  • VMWare Fusion and Parallels Desktop Benchmark Comparison

    This is a quickie benchmark of VMWare Fusion and Parallels Desktop using Super PI, PC Mark 05, and Passmark.
    VMWare Fusion 36932
    Parallels Desktop 3094 Beta 2
    Notes:
    Both virtual machines were allocated with large 10+ GB virtual disks and 640MB of RAM. The VMWare CPU was configured with two processors. The Parallels CPU was configured with 1 (two is not available). VMWare reported the CPU as 1 physical, 2 logical processors running at 2.66 GHz while Parallels reported 1 physical, 1 logical processor running at 9.6 GHz (the combined speed of all four cores on the Mac Pro). The max observed CPU utilization in activity monitor when running under VMWare was 200% and max under Parallels was 173%.
    I chose not to compare 1 VMWare CPU vs. 1 Parallels CPU. While Parallels does not support SMP or multithreaded processes on multiple processors the CPU utilization on the Mac went well above 1 core (173%). For this comparison, I wanted to see results of max processing based on what the two vendors have delivered, as opposed to benchmarking the underlying "virtual or hypervisor cpu" on a 1:1 basis. This explains why VMWare was 2x faster than Parallels on some CPU tests.
    Both of these products are beta. VMWare is running in debug mode (can not be turned off in this beta).
    Caveat emptor on these stats. This was an unscientific exercise to satisfy my curiosity. Some of the extraordinary differences are highlighted with <--.
    Platform:
    Mac Pro 2.66 GHz, 2GB RAM, Nvidia 7300GT
    Disk 1 - OS X, 73GB Raptor
    Disk 2 - dedicated disk where each virtual machine image was created separate from the OS or any OS-related virtual memory files.
    VMWare and Parallels guest OS: Windows XP Professional, SP 2
    Comparison Benchmrk
    VMWare Fusion 36932 and Parallels Desktop 3094 Beta 2
    Super PI Parallels VMWare
    512K 8s 9s
    1M 20s 21s
    4M 1m 57s 2m 03s
    PC Mark 05 Parallels VMWare
    CPU Test Suite N/A N/A
    Memory Test Suite N/A N/A
    Graphics Test Suite N/A N/A
    HDD Test Suite N/A N/A
    HDD - XP Startup 5.0 MB/s 19.54 MB/s <--
    Physics and 3D Test failed Test failed
    Transparent Windows Test failed 69.99 Windows/s
    3D - Pixel Shader Test failed Test failed
    Web Page Rendering 3.58 Pages/s 2.34 Pages/s
    File Decrypt 71.73 MB/s 67.05 MB/s
    Graphics Memory - 64 Lines 179.92 FPS 111.73 FPS
    HDD - General Usage 4.82 MB/s 42.01 MB/s <--
    Multithread Test 1 / Audio Comp N/A N/A
    Multithread Test 1 / Video Encoding Test failed Test failed
    Multithread Test 2 / Text Edit 152.85 Pages/s 138.48 Pages/s
    Multithread Test 2 / Image DeComp 5.91 MPixels/s 35.4 MPixels/s <--
    Multithread Test 3 / File Comp 3.22 MB/s 6.03 MB/s
    Multithread Test 3 / File Encrypt 19.0 MB/s 33.26 MB/s <--
    Multithread Test 3 / HDD - Virus Scan 27.91 MB/s 25.49 MB/s
    Multithread Test 3 / Mem Lat - Rnd 16MB 5.34 MAcc/s 6.63 MAcc/s
    File Comp N/A N/A
    File DeComp N/A N/A
    File Encrypt N/A N/A
    File Decrypt N/A N/A
    Image DeComp N/A N/A
    Audio Comp N/A N/A
    Multithread Test 1 / File Comp N/A N/A
    Multithread Test 1 / File Encrypt N/A N/A
    Multithread Test 2 / File DeComp N/A N/A
    Multithread Test 2 / File Decrypt N/A N/A
    Multithread Test 2 / Audio DeComp N/A N/A
    Multithread Test 2 / Image DeComp N/A N/A
    Memory Read - 16 MB N/A N/A
    Memory Read - 8 MB N/A N/A
    Memory Read - 192 kB N/A N/A
    Memory Read - 4 kB N/A N/A
    Memory Write - 16 MB N/A N/A
    Memory Write - 8 MB N/A N/A
    Memory Write - 192 kB N/A N/A
    Memory Write - 4 kB N/A N/A
    Memory Copy - 16 MB N/A N/A
    Memory Copy - 8 MB N/A N/A
    Memory Copy - 192 kB N/A N/A
    Memory Copy - 4 kB N/A N/A
    Memory Lat - Rnd 16 MB N/A N/A
    Memory Lat - Rnd 8 MB N/A N/A
    Memory Lat - Rnd 192 kB N/A N/A
    Memory Lat - Rnd 4 kB N/A N/A
    Transparent Windows N/A N/A
    Graphics Memory - 64 Lines N/A N/A
    Graphics Memory - 128 Lines N/A N/A
    WMV Video Playback N/A N/A
    3D - Fill Rate Multi Texturing N/A N/A
    3D - Polygon Throughput Multiple Lights N/A N/A
    3D - Pixel Shader N/A N/A
    3D - Vertex Shader N/A N/A
    HDD - XP Startup N/A N/A
    HDD - Application Loading N/A N/A
    HDD - General Usage N/A N/A
    HDD - Virus Scan N/A N/A
    HDD - File Write N/A N/A
    Processor Intel Core 2 9653 MHz Processor Unknown 2661 MHz
    Physical / Logical CPUs "1 Physical, 1 Logical" "1 Physical, 2 Logical"
    MultiCore 1 Processor Core Multicore 2 Processor Cores
    HyperThreading N/A N/A
    Graphics Card Generic VGA Generic VGA
    Graphics Driver Parallels Video Driver VMWare SVGA II
    Co-operative adapters No No
    DirectX Version 9.0c 9.0c
    System Memory 640 MB 640MB
    Motherboard Manufacturer N/A Intel Corporation
    Motherboard Model N/A 440BX Desktop Reference Platform
    Operating System Microsoft Windows XP Microsoft Windows XP
    Passmark Parallels VMWare
    CPU - Integer Math (MOPS) 112.35 230.31 <--
    CPU - Floating Point Math (MOPS) 280.46 588.33 <--
    CPU - Find Prime Numbers (OPS) 446.37 676.99 <--
    CPU - SSE/3DNow! (MMPS) 2118.56 4737.13 <--
    CPU - Comp (KB/s) 2994.16 5952.34 <--
    CPU - Encrypt (MB/s) 18.09 36.27 <--
    CPU - Image Rotation (IRPS) 598.21 1184.41 <--
    CPU - String Sorting (TPS) 2118.81 3672.59 <--
    Graphics 2D - Lines (TPS) 220.71 25.15 <--
    Graphics 2D - Rectangles (TPS) 189.74 61.8 <--
    Graphics 2D - Shapes (TPS) 39.54 13.71 <--
    Graphics 2D - Fonts and Text (OPS) 190.39 75.88 <--
    Graphics 2D - GUI (OPS) 439.77 63.72 <--
    Memory - Allocate Small Block (MB/s) 2533.83 2526.21
    Memory - Read Cached (MB/s) 1960.5 1906.27
    Memory - Read Uncached (MB/s) 1871.79 1826.08
    Memory - Write (MB/s) 1687.81 1545.43
    Memory - Large RAM (OPS) 60.99 46.37
    Disk - Sequential Read (MB/s) 102.11 76.45 <--
    Disk - Sequential Write (MB/s) 58.33 50.9
    Disk - Rnd Seek + RW (MB/s) 51.4 40.4
    CPU Mark 711.08 1432.72 <--
    2D Graphics Mark 743.31 176.5 <--
    Memory Mark 599.94 580.38
    Disk Mark 766.11 606.7
    PassMark Rating 557.27 637.35<br>

    Thanks for posting these numbers - it's an interesting comparison.
    I would expect the final VMWare fusion performance numbers to be quite a bit better than that of Parallels - they have almost a decade's worth of experience more than the Parallels folks in this arena, and a much larger development team to boot.
    Once VMWare Fusion is released to the public, I think that you'll see a clearer distinction between the two products. VMWare will continue to appeal to the professional customer, with a more robust feature set and corporate-friendly features (and a correspondingly higher price tag); Parallels will fall more into the consumer/VirtualPC-replacement market. It will be interesting to see how Parallels will be affected when (and if) VMWare player is ported to OS X.
    Interesting about the Parallels performance stats on a native partition - looks like almost enough reason to avoid the bootcamp partition approach altogether. Sharing a native windows installation with a VM in parallels is a pretty scary situation in any case, as the two environments have entirely different hardware configurations. Do-able, but there is some black magic involved (if you want to see an example of what I mean, try to move a windows installation from one machine to another w/different hardware sometime - it ain't pretty); I wouldn't try this in a production scheme unless I had REALLY good backups.

  • Linking python and Java

    Hello there. im in need of a little help.
    I about to embark on a project where I have a cad program that has a built in python api, so the user can write a script and automate running a series of simulations in the program. My project is to write an equivalent java api from the python one. So basically i need to make and api for an api and call the python methods from my java api. What is the best way of linking the two languages? I have read a little into the JNI, is this the direction i need to be going in?
    Many thanks for any help.

    sorry for the rudeness.
    this topic has also been posted here http://www.java-forums.org/new-java/12669-python-api.html#post39942
    with regards to the jython comment, i should have mentioned the program requires python 2.5.2. Does this mean jython will not be usable?
    Thanks

  • Introduction and java simple editor

    Hi All,
    I am new here and with a determination to master in and out of java , which is only possible with the help of you guys. Sorry for the long message however I want you guys to know that I am making a new move in my life the company i was working here in India is closed down it was a finacial company and I have made up my mind to become jav programmer andset a target for myself please review my plan and let me know if I am going wrong or overtargeting.
    1 .month complete java basic and class library.
    2.appearing for SCJP.
    1 month completing J2EE.
    and start appling for Job.I am based in India.
    I will be posting thread and reading other thread on this forum if I have any problem and looking forward for a helping hand so that one day I will be like you .Today I am writing my first java program hello world .
    Just wanted one help a link to a simple java editor(I promise I will only ask for help after googling).
    Sorry if some one dosent like the thread.

    To confused_in_java:
    I use JEdit as well as NetBeans5.5 to write my programs and have found JEdit to be quite helpful with its' many plug-ings and most of all Syntax Highlight which makes the various Keywords, Classes, and other stuff very easy to see and distinguish. Here is the link:
    http://www.jedit.org/
    The Download link is on the right hand side near the middle of the page.
    I hope this works.
    If not try NotePad2:
    http://sourceforge.net/projects/notepad2/
    Oh one more
    This is a very good IDE which will also help you with J2EE
    http://www.activegrid.com/downloads/?gclid=COuTt-Tq84wCFRg-QAodMm698A
    If I can help you further with finding additional resources please email me at [email protected]
    Hope this helps
    Regards,
    Christopher Yelinek
    Cat 'N Moue Computers eSupport Team
    Let me know if these work

  • How to run python within Java?

    I want to run python command within java. Not sure how to do this.
    Seems like runtime.getRuntime.exec() is something that i can use.
    but all the examples were for unix platform and not any other.
    Can i run python command using getRuntime().. please let me know
    Thanx

    I want to run python command within java.I've created a project, "Java Embedded Python" that might work for you.
    Check out http://jepp.sourceforge.net . Maybe it'll work for you...

  • Call Python from java

    Hi,
    I want to call a python function from java (cannot use Jython) - I am currently using Jepp, however there is very little in terms of documentation (API). I am trying to use the jep.invoke() method to call a function in python script and add parameters.
    If this is not possible is there another way of doing this without using Jython? If so could you provide me with a hello world example or point me to a good example on the net?
    Any suggestions?
    Thanks in advance...

    cotton.m wrote:
    Multiple-post [http://forums.sun.com/thread.jspa?threadID=5368020]
    I thought so, too, but calling P from J != calling J from P. Of course, that doesn't address the fact that calling J from P probably belongs better in a P forum...

  • Python to Java Conversion

    I am looking to convert Python (.py) web server files to Java. Does anyone know of a conversion method, beside rewriting?

    I have heard there is a tool to compile Python code to Java bytecode, but I don't know any more than that. If there is such a tool, you would not have to rewrite the Python code as Java code, but simply compile it to Java bytecode.

  • Simple array comparison not working. Please HELP!

    I have been struggling to solve this problem for a few days now, and I'm slowly losing my mind.
    I am in Adobe Acrobat 10.
    I have a group of button fields called: btn0, btn1, btn2, etc.
    I have a group of text fields called: txt0, txt1, txt2, etc.
    I have a script that takes the value of txt0 and makes it the caption for btn0, and so on.
    I have a script that sets the MouseUp action of btn0 to setFocus to txt0, and so on.
    These scripts work fine.
    I have a script that takes the values of all the txt fields and puts them in an array, and sorts it.
    I have a script that takes the array[0] item and makes it the caption for btn0, and so on (alphabetizing my list of buttons).
    Those scripts work fine.
    I am trying to compare the value of the array[0] item to each of the txt fields to find the match, and then set the MouseUp action of btn0 to setFocus to the matching txt field, and so on (so my alphabetized list points to the correct locations).
    This is where I'm at a loss.
    Here is what I have:
    //specified the txt fields
    var txt0 = this.getField("Z name");
    var txt1 = this.getField("A name");
    //etc.
    //put their values into an array called rxArray
    var rxArray = [txt0.value, txt1.value]; //etc.
    //sorted the array
    rxArray.sort();
    //set the captions equal to the sorted array items
    for (var i = 0; i < 5; i++) {
        var b = ("btn" + i);
        this.getField(b).buttonSetCaption(rxArray[i]); //works fine; alphabetizes the list of buttons
        //below is what goes wrong
        for(var x = 0; x < 5; x++) {
            var r = ("txt" + x);
            if(rxArray[i] == r.value){
                var s = (r + ".setFocus();");
                this.getField(b).setAction("MouseUp", s);
    //end
    Here is what I know:
    The alphabetizing and labeling works fine, but the buttons' MouseUp scripts don't work at all. Nothing happens.
    If I change the following piece of the above script:
            if(rxArray[i] == r.value){
                var s = (r + ".setFocus();");
                this.getField(b).setAction("MouseUp", s);
    To this:
            if(rxArray[i] == txt1.value){
                var s = (r + ".setFocus();");
                this.getField(b).setAction("MouseUp", s);
    Because rxArray[0] does equal the value of txt1 ("A name"), then the MouseUp script for btn0 gets set to:
    txt4.setFocus();
    So I know that, each time the nested loop runs, the if statement is true, and the setFocus script updates. Until the end of the loop, leaving the setFocus as the last item run. So why doesn't my script work? It should only update the setFocus script IF the array item matches the txt field, and should set it to THAT txt field.
    Please please help. I know I'm missing something simple in there somewhere.

    @Try67:
    That's a good question. I was running into some other issues and have revamped my code. Here is what I have in my test file:
    A list of five buttons and a list of five text fields. One additional button that sets the focus to the next empty text field to add a new item, and two additional buttons, one that sorts my list alphabetically, and one that unsorts it.
    with the following field names
    The sort button calls function sortName and the unsort calls function sortNumber (the order of entry).
    Here are those scripts in final form:
    function sortName() {
    //first reset the captions for the buttons to blank
    for (var a = 0; a < 5; a++) {
        var b = ("btn" + a);
        this.getField(b).buttonSetCaption("");
    var txt0 = this.getField("t0");
    var txt1 = this.getField("t1");
    var txt2 = this.getField("t2");
    var txt3 = this.getField("t3");
    var txt4 = this.getField("t4");
    var rxArray = [txt0.value, txt1.value, txt2.value, txt3.value, txt4.value];
    for(var m = rxArray.length - 1; m > -1; m--){
        if(rxArray[m] == ""){
            rxArray.splice(m, 1);
    rxArray.sort();
    var newArray = [txt0, txt1, txt2, txt3, txt4];
    for(var n = newArray.length - 1; n > -1; n--){
        if(newArray[n].value == ""){
            newArray.splice(n, 1);
    for (var i = 0; i < rxArray.length; i++) {
        var b = ("btn" + i);
        this.getField(b).buttonSetCaption(rxArray[i]);
        for (var x = 0; x < newArray.length; x++) {
            if(rxArray[i] == newArray[x].value){
                var s = ("this.getField('" + newArray[x].name + "').setFocus();");
                this.getField(b).setAction("MouseUp", s);
    //end
    function sortNumber() {
    var txt0 = this.getField("t0");
    var txt1 = this.getField("t1");
    var txt2 = this.getField("t2");
    var txt3 = this.getField("t3");
    var txt4 = this.getField("t4");
    var newArray = [txt0, txt1, txt2, txt3, txt4];
    for (var x = 0; x < newArray.length; x++) {
        var b = ("btn" + x);
        this.getField(b).buttonSetCaption(newArray[x].value);
        var s = ("this.getField('" + newArray[x].name + "').setFocus();");
        this.getField(b).setAction("MouseUp", s);
    //end
    As you can see, I've used the array lengths rather than fixed numbers, except when clearing the button values. I use a number there because there is no array to reference and didn't feel like making an array just for that. The number of buttons won't change.
    I've also added in a splice() method to remove the blank entries from my arrays when appropriate (making using the array length even more important).
    The result of the sort is:
    The only quirk I've found in all this is with the Add New button, which calls function addNew, which is:
    function addNew() {
    var txt0 = this.getField("t0");
    var txt1 = this.getField("t1");
    var txt2 = this.getField("t2");
    var txt3 = this.getField("t3");
    var txt4 = this.getField("t4");
    var newArray = [txt0, txt1, txt2, txt3, txt4];
    for (var i =  newArray.length - 1; i > -1 ; i--) {
        if (newArray[i].value == "") {
            newArray[i].setFocus();
    //end
    For this, I would have though that running through the array from start to finish looking for the first empty text field and setting the focus to it would have been correct. But that resulted in the last empty text field being focused. So I reversed the for loop to run finish to start, and the result was that the first empty field was focused. Not sure why that is...

  • Java simple calculation involving double

    *public static void main(String[] args) {*
    System.out.println("Output "+300.025d100.0);*
    The above code is returning me 30002.499999999996 though I was expecting 30002.5

    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    public class Test {
    NumberFormat f = new DecimalFormat("0.0");
    System.out.println("Output "+new Float(f.format(300.025d*100.0)));
    }

  • Other simple question/comparison

    hello to the community again....
    so... apple did replace my MacBook Pro 5,1 for the new 6,2
    but i was wondering if theses specs are comparable...
    meaning what do you guys think?
    first MBP (5,1)
    2.8ghz intel core2duo, geforce 9400m (256mb) and geforce 9600GT (512mb)
    new MBP (6,2)
    2.53ghz i5 processor, intel HD graphics and geforce gt 330m (256mb).....

    i used it for a card reader (24 in 1)
    does this new one only do sd?
    thank you for the first answer though....
    so my thought that i received a great replacement from apple is confirmed!!! :-D
    Message was edited by: becks87

  • How to make a simple control value comparison a user event?

    Hey everyone,
    I am trying (with no luck) to figure out how to make an event out of a simple control comparison without having to put the controls inside a while loop to be polled or in the event structure.
    For example; how do I make an event when 'numerical control 1' equals 'numerical control 2'?
    I know that I could have these inside a while loop with the event structure and then wire the comparison to a boolean, then reference the boolean's value change event.  But rather, I would like to create an event for the comparison without the boolean and outside the while loop such that the loop doesn't have to run through the comparison each time, and doesn't have to poll the controls and bool.
    Thanks for the help

    Attached is a simple user event structure that I was thinking about.  Using this you can decouple the control from the comparison, it just works on valye comparisons.  Since it uses the event structure there is no polling and is very CPU friendly.  I have allowedfor the comparison to be linked to the "Value 1:value change event" and the compare button true event.  I hope this is what you were looking at.  Also since it is a user event which is dynamically registered you can register/unregister it at will durring execution making it a flexable event handler.  It might be alittle buggy because I have spent about 3 minutes developing it (particularry when passing values into the event structure there might be a state issue from the data flow so local variables are a better choice)
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA
    Attachments:
    CompareEventvi.vi ‏49 KB

Maybe you are looking for

  • How do I combine several clips to make one movie?

    The iPhone 6 doesn't have a video pause button (ingenious) so I recorded several clips.  I downloaded these clips to iMovie and put them all in one event.  When I play the event, the video jumps a little every time it goes from one clip to the next. 

  • Laserjet 6P and Windows 8.1 Driver

    The Laserjet 6P is not in the Printer list in Windows 8.1 and I don't see it as a supported OS at HP.com.  Does anyone know a driver in Windows 8.1 that I can use for my old, but sturdy Laserjet 6P?

  • Execute BI Query in Web Dynpro Java

    Dear All, I have a requirement where i have to display of traffic light that sets its color based on the outcome of a SAP BEx query using Web Dynpro Java. Please explain me the steps how to retrieve and execute the SAP BEx query  using WDJ. Thanks &

  • How to sync iTunes to iPhone

    Hi there, I'm having trouble syncing my iPhone 3G onto my iTunes. How do I copy ringtones, music and podcasts which are on my iPhone into iTunes??? I download podcasts directly onto my iPhone so there's always new podcasts on my iPhone which aren't o

  • Problems with flash 8

    I have installed flash8, and when I compile old version flash's files in flash 8 don't work the load of movies or sound. Somebody can help me, please? I think that problems are in projector (exe)....