WebProNews

Tag: Ruby

  • The NSA Pushes for Adoption of Memory Safe Coding Languages

    The NSA Pushes for Adoption of Memory Safe Coding Languages

    The National Security Agency (NSA) is pushing for the adoption of memory safe coding languages in an effort to improve security.

    Software memory issues constitute one of the biggest sources of vulnerabilities for bad actors to exploit. Older, more established programming languages often lack automated means of managing memory, putting additional burdens on programmers to ensure no memory errors creep in.

    “How a software program manages memory is core to preventing many vulnerabilities and ensuring a program is robust,” writes the NSA in its Cybersecurity Information Sheet. “Exploiting poor or careless memory management can allow a malicious cyber actor to perform nefarious acts, such as crashing the program at will or changing the instructions of the executing program to do whatever the actor desires. Even un-exploitable issues with memory management can result in incorrect program results, degradation of the program’s performance over time, or seemingly random program crashes.”

    The NSA is now pushing for the adoption of languages that offer better memory management features, so-called “memory safe languages.” Memory safe languages include C#, Go, Java®, Ruby™, Rust®, and Swift.

    “Using a memory safe language can help prevent programmers from introducing certain types of memory-related issues,” the NSA adds. “Memory is managed automatically as part of the computer language; it does not rely on the programmer adding code to implement memory protections. The language institutes automatic protections using a combination of compile time and runtime checks. These inherent language features protect the programmer from introducing memory management mistakes unintentionally. Examples of memory safe languages include C#, Go, Java, Ruby, Rust, and Swift.”

    Rust, in particular, has gained publicity and adoption for being a memory safe language. Rust has been making its way into the Linux kernel and was chosen by System76, makers of the popular Pop!_OS Linux distro, to create their new COSMIC desktop environment.

  • Visual Studio Code Updated With M1 Support

    Visual Studio Code Updated With M1 Support

    Microsoft has updated Visual Studio Code, adding support for Apple’s new Macs running on its M1 custom silicon.

    Visual Studio Code is a free, open source programming text editor available for Windows, Mac and Linux. It’s based on Electron and supports a variety of programming languages, including Java, Python, C++, C#, Ruby, Go, Dart, JavaScript and more. In fact, Microsoft says Visual Studio Code supports virtually every major programming language.

    The latest release, version 1.54 adds support for Apple’s new custom silicon.

    We are happy to announce our first release of stable Apple Silicon builds this iteration. Users on Macs with M1 chips can now use VS Code without emulation with Rosetta, and will notice better performance and longer battery life when running VS Code. Thanks to the community for self-hosting with the Insiders build and reporting issues early in the iteration.

    The default download of VS Code for macOS is now a Universal build that runs natively on all Macs. On the Downloads page, you can find more links to architecture-specific builds for Intel or Apple Silicon, which are smaller downloads compared to the Universal package.

    Visual Studio Code is already a popular option for developers. This latest update will will be a welcome improvement for developers running Apple’s newest machines.

  • iOS 14.2 Features JIT Compilation, Aiding Emulation Apps

    iOS 14.2 Features JIT Compilation, Aiding Emulation Apps

    iOS 14.2 features Just-In-Time (JIT) compilation, which should significantly speed up emulation app performance.

    JIT compilation involves compiling code while the application is running, as opposed to building the application ahead of time, as in Ahead-Of-Time (AOT) compilation. This gives developers more flexibility, as JIT compilation has some of the advantages of an interpreted language, such as Perl, Ruby, PHP and others. At the same time, JIT offers performance on par, or nearly on par, with AOT compilation, making it a much better option for apps that emulate other operating systems.

    Riley Testut, the creator of Apple App Store alternative AltStore, found the change in iOS 14.2 that enables JIT compilation. Testut’s work focuses on allowing iOS users to sideload apps without jailbreaking their devices. The AltStore does this by using a method Apple created to allow developers to load their own apps on to devices.

    Testut was quick to point out that JIT compilation will allow iOS users to run emulators without jailbreaking.

    Apple has yet to formally announce JIT compilation in iOS 14.2, so it remains to be seen what their plans are. It’s entirely possible this is simply a developer tool that Testut has figured out how to exploit. Or Apple may have some long-term plans for the future.

  • Salesforce Acquiring Heroku – Major Platform for Social Apps

    Salesforce Acquiring Heroku – Major Platform for Social Apps

    It’s only Wednesday, but it’s already been a huge week for Salesforce. The company is hosting its Dreamforce conference, and has already introduced a free version of its "Facebook for the Enterprise" Chatter product, and launched Database.com to go head to head in the Database space with Oracle. 

    Now, Salesforce has announced that it is acquiring Heroku for about $212 million. Heroku is a cloud application platform powered by Ruby. In fact, according to Salesforce, it’s the fastest growing platform of its type. 

    The acquisition would make perfect sense for the company given its increased focus on social cloud-based enterprise apps. The platform powers over 106,000 social and mobile cloud apps. In fact, the company claims that developers added 2,600 new apps to the platform last week alone. 

    The company points out that there are over a million developers developing on Ruby, and that the language was used to write things like Groupon, Hulu, and Twitter. 

    Heroku - Ruby Dev Platform Bought by Salesforce

    "The next era of cloud computing is social, mobile and real-time. I call it Cloud 2," said Salesforce CEO Marc Benioff. "Ruby is the language of Cloud 2, and Heroku is the leading Ruby application platform-as-a-service for Cloud 2 that is fueling this growing community. We think this acquisition will uniquely position salesforce.com as the cornerstone for the next generation of app developers."

    "We have a service that developers really love, and salesforce.com has the trust and credibility the most demanding customers expect," added Heroku CEO Byron Sebastian. "Together, we will provide the best place to run and deploy Cloud 2 apps. We believe this is the winning combination to bring cloud application platforms into the mainstream of the enterprise."

    The acquisition is expected to be completed by the end of January, and is subject to customary closing conditions.