Need A New Programming Language? Try Zig

Maybe you’ve heard of it, maybe you haven’t. Zig is a new programming language that seems to be growing in popularity. Let’s do a quick dive into what it is, why it’s unique, and what sort of things you would use it for. (Ed Note: Other than “for great justice“, naturally.)

What Is It?

You’ve likely heard of Rust as it has made significant inroads in critical low-level infrastructures such as operating systems and embedded microcontrollers. As a gross oversimplification, it offers memory safety and many traditional runtime checks pushed to compile time. It has been the darling of many posts here at Hackaday as it offers some unique advantages. With Rust on the rise, it makes sense that there might be some space for some new players. Languages like Julia, Go, Swift, and even Racket are all relative newcomers vying for the highly coveted mindshare of software engineers everywhere.

So let’s talk Zig. In a broad sense, Zig is really trying to provide some of the safety of Rust with the simplicity and ease of C. It touts a few core features such as:

  • No hidden control flow
  • No hidden memory allocations
  • No preprocessor, no macros
  • First-class support for optional standard library
  • Interoperable by design
  • Adjustable Runtime Safety
  • Compile-time code-execution

Continue reading “Need A New Programming Language? Try Zig”

Counting Down To The Final Atlas Rocket

The Atlas family of rockets have been a mainstay of America’s space program since the dawn of the Space Age, when unused SM-65 Atlas intercontinental ballistic missiles (ICBMs) were refurbished and assigned more peaceful pursuits. Rather than lobbing thermonuclear warheads towards the Soviets, these former weapons of war carried the first American astronauts into orbit, helped build the satellite constellations that our modern way of life depends on, and expanded our knowledge of the solar system and beyond.

SM-65A Atlas ICBM in 1958

Naturally, the Atlas V that’s flying today looks nothing like the squat stainless steel rocket that carried John Glenn to orbit in 1962. Aerospace technology has evolved by leaps and bounds over the last 60 years, but by carrying over the lessons learned from each generation, the modern Atlas has become one of the most reliable orbital boosters ever flown. Since its introduction in 2002, the Atlas V has maintained an impeccable 100% success rate over 85 missions.

But as they say, all good things must come to an end. After more than 600 launches, United Launch Alliance (ULA) has announced that the final mission to fly on an Atlas has been booked. Between now and the end of the decade, ULA will fly 28 more missions on this legendary booster. By the time the last one leaves the pad the company plans to have fully transitioned to their new Vulcan booster, with the first flights of this next-generation vehicle currently scheduled for 2022.

Continue reading “Counting Down To The Final Atlas Rocket”

The Coming Copper Shortage: Aluminium Or Carbon Nanotubes To The Rescue?

The use of aluminium in wiring is unlikely to bring a smile to the face of anyone who has had to deal with it in a 1960s, or early 1970s-era house. The causes behind the fires and other accidents were myriad, including failure to deal with the higher thermal expansion of aluminium, the electrically insulating nature of aluminium oxide, and the general brittleness of aluminium when twisted.

Yet while copper is superior to aluminium in terms of electrical conductivity and ease of installation, copper prices have skyrocketed since the 1970s, and are on the verge of taking off to the moon. A big part of the reason is the increased use of copper in everything from electronics and electrical motors to generators, driven by large-scale deployment of wind turbines and electrical vehicles.

As the world moves to massively expand the use of electrical cars and installation of wind turbines, copper demand is predicted to outstrip current copper supply. With aluminium likely to make a big return as a result, it’s worth taking a look at modern-day aluminium-based wiring, including copper-clad aluminium and the use of carbon-based replacements. Continue reading “The Coming Copper Shortage: Aluminium Or Carbon Nanotubes To The Rescue?”

101 Uses For An Everready — Flashlight History

For some reason, I’m always interested in why things are called what they are. For example, I’ve been compelled in the past to research what Absorbine Senior is. Not that it is important, but Absorbine Junior is a smaller size of horse liniment, so you don’t have to buy a drum of ordinary Absorbine just to rub down your sore thumb. So it isn’t a mystery that I would find myself musing over why we call a flashlight a flashlight.

You don’t think of a flashlight as flashing, under normal circumstances, at least. Turns out the answer lies in the history of the device, its poor beginnings, and our willingness to treat imperfect components as though they were much better than they are. That last point, by the way, still has ramifications today, so even if you aren’t a fan of flashlight history, keep reading.

Portable Lighting

Ever since people learned to use fire, there’s been a desire for portable lighting. Torches, candles, and even oil lamps have all had their place. But burning things for light in small cramped spaces leaves a lot to be desired. It isn’t surprising that people quickly turned to electricity when that seemed to be feasible.

Continue reading “101 Uses For An Everready — Flashlight History”

Gopher, The Competing Standard To WWW In The ’90s Is Still Worth Checking Out

The 30th anniversary of the World Wide Web passed earlier this year. Naturally, this milestone was met with truckloads of nerdy fanfare and pining for those simpler times. In three decades, the Web has evolved from a promising niche experiment to being an irreplaceable component of global discourse. For all its many faults, the Web has become all but essential for billions around the world, and isn’t going anywhere soon.

As the mainstream media lauded the immense success for the Web, another Internet information system also celebrated thirty years – Gopher. A forgotten heavyweight of the early Internet, the popularity of Gopher plummeted during the late 90s, and nearly disappeared entirely. Thankfully, like its plucky namesake, Gopher continued to tunnel across the Internet well into the 21st century, supported by a passionate community and with an increasing number of servers coming online.

Continue reading “Gopher, The Competing Standard To WWW In The ’90s Is Still Worth Checking Out”

Image of CFS's SPARC reactor

Commonwealth Fusion’s 20 Tesla Magnet: A Bright SPARC Towards Fusion’s Future

After decades of nuclear fusion power being always ten years away, suddenly we are looking at a handful of endeavours striving to be the first to Q > 1, the moment when a nuclear fusion reactor will produce more power than is required to drive the fusion process in the first place. At this point the Joint European Torus (JET) reactor holds the world record with a Q of 0.67.

At the same time, a large international group is busily constructing the massive ITER tokamak test reactor in France, although it won’t begin fusion experiments until the mid-2030s. The idea is that ITER will provide the data required to construct the first DEMO reactors that might see viable commercial fusion as early as the 2040s, optimistically.

And then there’s Commonwealth Fusion Systems (CFS), a fusion energy startup.  Where CFS differs is that they don’t seek to go big, but instead try to make a tokamak system that’s affordable, compact and robust. With their recent demonstration of a 20 Tesla (T) high-temperature superconducting (HTS) rare-earth barium copper oxide (ReBCO) magnet field coil, they made a big leap towards their demonstration reactor: SPARC.

A Story of Tokamaks

CFS didn’t appear out of nowhere. Their roots lie in the nuclear fusion research performed since the 1960s at MIT, when a scientist called Bruno Coppi was working on the Alcator A (Alto Campo Toro being Italian for High Field Torus) tokamak, which saw first plasma in 1972. After a brief period with a B-revision of Alcator, the Alcator C was constructed with a big power supply upgrade. Continue reading “Commonwealth Fusion’s 20 Tesla Magnet: A Bright SPARC Towards Fusion’s Future”

NYT Crossword Decision Puzzles Many

Over at the New York Times (NYT) crossword puzzle desk, newly-appointed Games Editorial Director Everdeen Mason has caused a bit of a ruckus and hubbub (both six letter words with U as the 2nd and 5th letter) among digital puzzle solvers. In a short article published in early August, Ms. Mason announced the end of support for the crossword-solving program Across Lite, abruptly terminating a relationship between the two organizations spanning 25 years. But the ramifications extend much deeper than just one application.

The NYT first published its now-famous crossword puzzle back in 1942, appearing every Sunday, and in 1950 it became a daily feature. In 1993, Will Shortz was chosen as the fourth Crossword Puzzle Editor, a position he still holds today. The NYT online crossword puzzles first appeared in 1996 — puzzle files could be downloaded by modem and solved offline using the program Across Lite.

Modems aside, this basic method has continued until now, and a variety of programs and apps have sprung up over the years that allow not only offline play, but with tailored feature sets, such as support for the visually impaired, puzzle fanatics, puzzle creators, team playing, etc. Naturally the NYT joined the party as well, offering the crossword puzzles online and via smart phone apps.

Continue reading “NYT Crossword Decision Puzzles Many”