E Amazings
  • Home
  • Automotive
  • Business
  • CBD
  • Crypto
  • Education
  • Entertainment
  • Fashion
  • Finance
  • Health
  • Home Improvement
  • Law \ Legal
  • News
  • Shopping
  • Sports
  • Technology
  • Travel

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot

Wealth Guide: Real Estate – 5-point guide by expert for buying right home for your family

July 5, 2022

The Warm Glow Of A Luminous Clock

July 5, 2022

UP TGT, PGT Recruitment 2022: Last date of application for 4163 posts extended, check official notification and full details here

July 5, 2022
Facebook Twitter Instagram
E Amazings
  • Home
  • Automotive
  • Business
  • CBD
  • Crypto
  • Education
  • Entertainment
  • Fashion
  • Finance
  • Health
  • Home Improvement
  • Law \ Legal
  • News
  • Shopping
  • Sports
  • Technology
  • Travel
Facebook Twitter Instagram
E Amazings
You are at:Home»Technology»Blinking An Arduino LED, In Julia
Technology

Blinking An Arduino LED, In Julia

Paul EasterBy Paul EasterJune 21, 2022No Comments2 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
Share
Facebook Twitter Pinterest WhatsApp Email


The Julia programming language is a horrible fit for a no-frills microcontroller like the ATMega328p that lies within the classic Arduino, but that didn’t stop [Sukera] from trying, and succeeding.

All of the features that make Julia a cool programming language for your big computer make it an awful choice for the Arduino. It’s designed for interactivity, is dynamically typed, and leans heavily on its garbage collection; each of these features alone would tax the Mega to the breaking point. But in its favor, it is a compiled language that is based on LLVM, and LLVM has an AVR backend for C. Should just be a simple matter of stubbing out some of the overhead, recompiling LLVM to add an AVR target for Julia, and then fixing up all the other loose ends, right?

Well, it turns out it almost was. Leaning heavily on the flexibility of LLVM, [Sukera] manages to turn off all the language features that aren’t needed, and after some small hurdles like the usual problems with volatile and atomic variables, manages to blink an LED slowly. Huzzah. We love [Sukera’s] wry “Now THAT is what I call two days well spent!” after it’s all done, but seriously, this is the first time we’ve every seen even super-rudimentary Julia code running on an 8-bit microcontroller, so there are definitely some kudos due here.

By the time that Julia is wedged into the AVR, a lot of what makes it appealing on the big computers is missing on the micro, so we don’t really see people picking it over straight C, which has a much more developed ecosystem. But still, it’s great to see what it takes to get a language designed around a runtime and garbage collection up and running on our favorite mini micro.

Thanks [Joel] for the tip!



Source link

Paul Easter

Related Posts

The Warm Glow Of A Luminous Clock

By Paul EasterJuly 5, 2022

Hacker Camps Post-Pandemic, Electromagnetic Field 2022

By Paul EasterJuly 5, 2022

Tiny Berlin Clock Replica Also Counts Seconds

By Paul EasterJuly 5, 2022

Companies Rumored To Harvest Washing Machines For ICs

By Paul EasterJuly 5, 2022
Add A Comment

Comments are closed.

Our Picks

Wealth Guide: Real Estate – 5-point guide by expert for buying right home for your family

By Paul EasterJuly 5, 2022

The Warm Glow Of A Luminous Clock

By Paul EasterJuly 5, 2022

UP TGT, PGT Recruitment 2022: Last date of application for 4163 posts extended, check official notification and full details here

By Paul EasterJuly 5, 2022
Recent Posts
  • Wealth Guide: Real Estate – 5-point guide by expert for buying right home for your family July 5, 2022
  • The Warm Glow Of A Luminous Clock July 5, 2022
  • UP TGT, PGT Recruitment 2022: Last date of application for 4163 posts extended, check official notification and full details here July 5, 2022
  • Good news for Textile importers! Government extends exemption of import duty and agri cess till 31 October July 5, 2022
  • Videsh Mey Nivesh Ke Pathshala: Want to invest in foreign markets? Anil Singhvi explains how to do it July 5, 2022
  • FinTech Acquisition Corp Mutually Terminates Merger Agreement With eToro July 5, 2022
  • Arbitrations – Worth the Supposed Savings? July 5, 2022
Archives
  • July 2022
  • June 2022
Facebook Twitter Instagram Pinterest TikTok
  • Home
© 2022 E Amazings - All Rights Reserved.

Type above and press Enter to search. Press Esc to cancel.