Programming

Ask Slashdot: Configuring Development Environment On a Shared Workstation? 158

First time accepted submitter xyourfacekillerx writes "After a long hiatus of developing (ASP.NET), I decided to pick it up again. I need to learn .NET and SQL for my new job (GIS tech using ESRI software). Down the road they need a PHP website, tons of automation tasks, some serious data consolidation, they want mobile apps in theory. This is not my job description, but I'm sure I can do it. Long story short, I need to setup a development environment on my home desktop, so I can do all this in my spare time. Trouble is, I share the machine (Win 8.1, 2.7 dual core pentium something or other, with virtualization support.) I want to avoid affecting the other users profiles. I currently use my profile for music production (Reason) and photography (Photoshop, et al) so it's already resource intensive with RAM, CPU and VMM. I'll be needing to install all of your basic Microsoft developer suites, IIS, SQl Server, ANdroid SDK, Java SDK, device emulators, etc. etc. Plus AMP and finally GIS software. There will obviously be a lot of services running, long build times, and so on. To wit, I wouldn't be able to use my desktop for my other purposes like the music editing. So I need some advice. Would it help to set up all these tools under a different account on the same Win 8.1 install? Or should I virtualize my development environment (and how?), and run the virtual machine side by side? Or should I add a HDD or secondary partition and boot to that when I intend to develop? I am poor ATM, but is there a cheap very mini PC I can place next to my desktop and run all my development software off that, remote desktop into it? I've done a lot of googling the last week and haven't turned up anything, so I turn to Slashdot. Please help me get organized so I can start coding again."
Programming

Ask Slashdot: What's the Most Often-Run Piece of Code -- Ever? 533

Hugo Villeneuve writes "What piece of code, in a non-assembler format, has been run the most often, ever, on this planet? By 'most often,' I mean the highest number of executions, regardless of CPU type. For the code in question, let's set a lower limit of 3 consecutive lines. For example, is it:
  • A UNIX kernel context switch?
  • A SHA2 algorithm for Bitcoin mining on an ASIC?
  • A scientific calculation running on a supercomputer?
  • A 'for-loop' inside on an obscure microcontroller that runs on all GE appliance since the '60s?"
Graphics

Valve Working on GNU/Linux Native Open Source OpenGL Debugger 88

jones_supa writes "OpenGL debugging has always lagged behind DirectX, mainly because of the excellent DX graphics debugging tools shipping with Visual Studio and GL being left with APITrace. Valve's Linux initiatives are making game companies to think about OpenGL, and the video game company wants to create a good open source OpenGL debugger to improve the ecosystem. AMD and Nvidia have already expressed interest in helping them out. Valve has been developing VOGL mostly on Ubuntu-based distributions under Qt Creator. The software currently supports tracing OpenGL 1.0 through 3.3 (core and compatibility), and is expected to eventually support OpenGL 4.x. Many more details on VOGL can be found at Valve's Rich Geldreich's blog." This looks much nicer than BuGLe. Valve is using Mercurial for version control and they plan to throw it up on bitbucket under an unspecified open source license soon. It works with clang and gcc, but debugging with gcc is currently very slow (hopefully something that can be fixed once the source is available and the gcc hackers can see what's going on). The tracer's internal binary log format can be converted into JSON for use with other tools as well.
Google

Google Releases Dart 1.1 161

rjmarvin writes "Google released version 1.1 of its Dart open-source web programming language today, with new features and improved tools. The Dart Editor is updated with improved debugging, code implementation and more descriptive toolkits, and new UDP (User Datagram Protocol) and documentation support command-line and server-side Dart applications. Google also highlighted benchmarks such as the Richards benchmark, where Dart 1.1 is running 25% faster than JavaScript, as part of the larger competition between Dart and JavaScript in creating more complex applications in the web development space."
GUI

Intel Dev: GTK's Biggest Problem, and What Qt Does Better 282

Freshly Exhumed writes "Phoronix has an article about how Dirk Hohndel of Intel's Open-Source Technology Center has stirred the hornet's nest with a talk at Australia's Linux.Conf.Au (MP4 file) about what he views as the biggest problem with the GTK: he finds dealing with upstream GTK/GNOME developers to be tough, with frequent abuse and flame-wars, with accusations from the developers that "you're doing it wrong." Conversely, he found the Qt development community to be quite the opposite: willing to engage and help, with plenty of application developer documentation and fewer communication problems than with their GTK counterparts."
Programming

Programmer Privilege 353

An anonymous reader writes "Philip Guo, an Asst. Professor of Computer Science at the University of Rochester, has written a thoughtful article on his education in programming. Guo explains that he was no particular coding wizard while growing up, but when he jumped into a CS major when he went to college at MIT, he received all sorts of passive and active encouragement — simply because he 'looked the part.' He says, 'Instead of facing implicit bias or stereotype threat, I had the privilege of implicit endorsement. For instance, whenever I attended technical meetings, people would assume that I knew what I was doing (regardless of whether I did or not) and treat me accordingly. If I stared at someone in silence and nodded as they were talking, they would usually assume that I understood, not that I was clueless. Nobody ever talked down to me, and I always got the benefit of the doubt in technical settings.' Guo compares this to the struggles faced by other minority groups and women to succeed in a field that is often more skeptical of their abilities. 'I want those people to experience what I was privileged enough to have gotten in college and beyond – unimpeded opportunities to develop expertise in something that they find beautiful, practical, and fulfilling.'"
Programming

GNU Guile Scheme Gets a Register VM and CPS-Based IL 42

In late November, Andy Wingo pushed a new register VM to Guile's (the GNU implementation of the Scheme language) master branch. It brought a number of performance improvements, but led to a bit of a conceptual mismatch between the compiler's direct-style intermediate language and the virtual machine. Earlier this week Andy Wingo announced a new continuation-passing style intermediate language for Guile. From the article: "To recap, we switched from a stack machine to a register machine because, among other reasons, register machines can consume and produce named intermediate results in fewer instructions than stack machines, and that makes things faster. To take full advantage of this new capability, it is appropriate to switch at the same time from the direct-style intermediate language (IL) that we had to an IL that names all intermediate values. ... In Guile I chose a continuation-passing style language. ... Guile's CPS language is composed of terms, expressions, and continuations. It was heavily inspired by Andrew Kennedy's 'Compiling with Continuations, Continued' paper. ... The optimizations I have currently implemented for CPS are fairly basic. Contification was tricky. One thing I did recently was to make all non-tail $call nodes require $kreceive continuations; if, as in the common case, extra values were unused, that was reflected in an unused rest argument. This required a number of optimizations to clean up and remove the extra rest arguments for other kinds of source expressions: dead-code elimination, the typical beta/eta reduction, and some code generation changes." The article describes the CPS language provided by Guile and explains the reasons behind choosing CPS over SSA or A-Normal Form. The Guile manual contains draft documentation. The new VM and Intermediate Language will be released with Guile 2.2, which should be out later this year.
Java

Oracle Seeking Community Feedback on Java 8 EE Plans 109

An anonymous reader writes with this quick bite from Info Q: "Oracle is seeking feedback from the Java community about what it should work on for the next version of Java EE, the popular and widely used enterprise framework. As well as standardizing APIs for PaaS and SaaS the vendor is looking at removing some legacy baggage including EJB 2.x remote and local client view (EJBObject, EJBLocalObject, EJBHome, and EJBLocalHome interfaces) and CORBA."
Education

Code.org: Give Us More H-1B Visas Or the Kids Get Hurt 271

theodp writes "Fresh off their wildly-hyped Hour of Code, Code.org headed to Washington last Thursday where H-1B visas were prescribed as the cure for U.S. kids' STEM ills. 'The availability of computer science to all kids is an issue that warrants immediate and aggressive action,' Code.org told Congress. "Comprehensive immigration reform efforts that tie H-1B visa fees to a new STEM education fund,' suggested Code.org co-founder Hadi Partovi, is 'among the policies that we feel can be changed to support the teaching and learning of more computer science in K-12 schools. We hope you can be allies in our endeavors on Capitol Hill.' Also testifying with Partovi was inventor and US FIRST founder Dean Kamen, who also pitched the benefits of H-1B visas (PDF). 'We strongly encourage Congress to pass legislation that directs H-1B visa fees to enable underserved inner-city and rural schools to participate in FIRST,' Kamen testified. 'Specifically, these fees should support efforts to enable underserved inner-city and rural schools to participate in FIRST.'"
Businesses

The Mystery/Myth of the $3 Million Google Engineer 173

jfruh writes "Recently Business Insider caused a minor stir among developers with dreams of riches with a story about a nameless Google engineer who's making $3 million a year. Who is this person, and how unusual are pay scales like this inside the Googleplex? Phil Johnson uses public information to try to figure out the answer. His conclusion: the $3 million engineer may exist, but is a rare bird indeed if so."
Government

Japan To Tax Online Sales Of Foreign-Made Content 59

Qedward writes with this except from CIO. "Japan is planning to tax sales of foreign online content such as e-books, apps and downloaded music by late 2015. Japanese who purchase electronic content from foreign firms like Amazon.com through overseas servers don't have to pay consumption tax, currently at 5% but slated to rise to 8% in April. That has made foreign content cheaper than apps, MP3 downloads, software, and e-books distributed domestically. Physical products purchased from abroad are hit with consumption tax when they clear customs in Japan, but no such levy exists for online goods. The government plans to close the loophole and make foreign vendors selling consumer goods register with tax authorities and pay the tax. Japanese corporations that buy foreign electronic content such as business software, however, will have to pay the tax directly to the Japanese tax authorities, Nikkei Asian Review reported this morning."
Movies

Programmer Debunks Source Code Shown In Movies and TV Shows 301

rjmarvin writes "Someone is finally pausing TV shows and movies to figure out if the code shown on screen is accurate or not. British programmer and writer John Graham-Cumming started taking screenshots of source code from movies such as Elysium, Swordfish and Doctor Who, and when it became popular turned the concept into a blog. Source Code in TV and Films posts a new screenshot daily, proving that, for example, Tony Stark's first Iron Man suit was running code from a 1998 programmable Lego brick."
The Almighty Buck

Lawsuit: Oracle Called $50K 'Good Money For an Indian' 409

jfruh writes "A former Oracle sales manager is suing the database company for what he called racially discriminatory salary-setting practices. Ian Spandow wanted to transfer a high-performing salesman from Oracle's India office to California. When he requested a salary of $60,000 a year or more for the employee, equivalent to what his white American counterparts received, he was told instead to offer $50,000, which was 'good money for an Indian.' When Spandow protested, he was himself summarily fired."
Wii

Behind the Scenes of Wii U Software Development 92

Sockatume writes "Digital Foundry has published an article from an anonymous but trusted developer outlining the challenges of developing for the Nintendo Wii U. The piece confirms some common perceptions of Nintendo, such as their attitude to third party developers, and presents a few surprises, like networking code not being made available to outside developers until the console was almost on sale."
Sun Microsystems

James Gosling Grades Oracle's Handling of Sun's Tech 223

snydeq writes "With the four-year anniversary of Oracle's Sun Microsystems acquisition looming, InfoWorld reached out to Java founder James Gosling to rate how Oracle has done in shepherding Sun technology. Gosling gives Oracle eyebrow-raising grades, lauding Oracle's handling of Java, despite his past acrimony toward Oracle over Java (remember those T-shirts?), and giving Oracle a flat-out failing grade on what has become of Solaris OS."
Programming

How Reactive Programming Differs From Procedural Programming 186

Nerval's Lobster writes "A recent post on Reactive Programming triggered discussions about what is and isn't considered Reactive Logic. In fact, many have already discovered that Reactive Programming can help improve quality and transparency, reduce programming time and decrease maintenance. But for others, it raises questions like: How does Reactive differ from conventional event-oriented programming? Isn't Reactive just another form of triggers? What kind of an improvement in coding can you expect using Reactive and why? So to help clear things up, columnist and Espresso Logic CTO Val Huber offers a real-life example that he claims will show the power and long-term advantages Reactive offers. 'In this scenario, we'll compare what it takes to implement business logic using Reactive Programming versus two different conventional procedural Programming models: Java with Hibernate and MySQL triggers,' he writes. 'In conclusion, Reactive appears to be a very promising technology for reducing delivery times, while improving system quality. And no doubt this discussion may raise other questions on extensibility and performance for Reactive Programming.' Do you agree?"
Programming

Regex Golf, xkcd, and Peter Norvig 172

mikejuk writes "A recent xkcd strip has started some deep academic thinking. When AI expert Peter Norvig gets involved you know the algorithms are going to fly. Code Golf is a reasonably well known sport of trying to write an algorithm in the shortest possible code. Regex Golf is similar, but in general the aim is to create a regular expression that accepts the strings in one list and rejects the strings in a second list. This started Peter Norvig, the well-known computer scientist and director of research at Google, thinking about the problem. Is it possible to write a program that would create a regular expression to solve the xkcd problem? The result is an NP hard problem that needs AI-like techniques to get an approximate answer. To find out more, read the complete description, including Python code, on Peter Norvig's blog. It ends with this challenge: 'I hope you found this interesting, and perhaps you can find ways to improve my algorithm, or more interesting lists to apply it to. I found it was fun to play with, and I hope this page gives you an idea of how to address problems like this.'"
Java

Oracle Promises Patches Next Week For 36 Exploits In Latest Java 154

An anonymous reader writes "Oracle is posting patches for all its products next Tuesday, which include 36 exploits for Java alone and over 140 for all Oracle products currently supported, included over 80 that require no authentication to execute.These patches look to be critical for any administrator. Java 6 users who use equipment or programs that rely on older versions are SOL unless they sign up for a very expensive support contract, as these patches are for Java 7 only."
Displays

4K Is For Programmers 520

An anonymous reader writes "The 4K television revolution is upon us, and nobody is impressed. Most users seem content to wait until there's actually something to watch on these ultra-high-res displays, and also for the price to come down. However, Brian Hauer has written an article promoting a non-standard use for these displays. His office just got a 39", 3840x2160 display for each of their programmers' workstations. He now confidently declares, 'For the time being, there is no single higher-productivity display for a programmer.' Hauer explains: 'Four editors side-by-side each with over a hundred lines of code, and enough room to spare for a project navigator, console, and debugger. Enough room to visualize the back-end service code, the HTML template, the style-sheet, the client-side script, and the finished result in a web browser — all at once without one press of Alt-tab.'"
Python

Why Do Projects Continue To Support Old Python Releases? 432

On Planet Python, Gregory Szorc asks why many projects continue to support Python releases prior to 2.7, when they are all EOLed (2.4 in 2008, 2.5 in 2011, and 2.6 last October), and Python 2.7 provides a clear upgrade path to Python 3. Quoting: "I think maintainers of Python projects should seriously consider dropping support for Python 2.6 and below. Are there really that many people on systems that don't have Python 2.7 easily available? Why are we Python developers inflicting so much pain on ourselves to support antiquated Python releases? As a data point, I successfully transitioned Firefox's build system from requiring Python 2.5+ to 2.7.3+ and it was relatively pain free." Shortly after posting, other developers responded with their reasons for using older Python releases. First, Rob Galanakis of CCP (EVE Online) explains the difficulties involved in upgrading a mature commercial project embedding Python. Nathan Froyd adds "I think this list of reasons to upgrade misses the larger point in providing software for other people: You do not get to tell your users what to do. ... Maybe those users don’t have sufficient control over their working environments to install a new version of Python. ... Maybe those users rely on certain APIs only available in older versions of Python and don’t wish to take an indeterminate amount of time to rewrite (retest, recertify, etc. etc.) their software. ... Maybe those users are just rationally lazy and don’t want to deal with downloading, configuring, and installing a new version of Python, plus dealing with inevitable fallout, when the old version has worked Just Fine for everything else."

Slashdot Top Deals