New Features In Rust Include Generic Associated Types (GATs) After Six-Year Wait

The newest stable version of Rust, 1.65.0 includes generic associated types (GATs) — the ability to declare lifetime, type, and const generics on associated types. “It’s hard to put into few words just how useful these can be,” writes the official Rust blog.

An earlier post pointed out that “There have been a good amount of changes that have had to have been made to the compiler to get GATs to work,” noting that the request-for-comments for this feature was first opened in 2016.

And Rust’s types team also created a blog post with more detail:
Note that this is really just rounding out the places where you can put generics: for example, you can already have generics on freestanding type aliases and on functions in traits. Now you can just have generics on type aliases in traits (which we just call associated types)….

In general, GATs provide a foundational basis for a vast range of patterns and APIs. If you really want to get a feel for how many projects have been blocked on GATs being stable, go scroll through either the tracking issue: you will find numerous issues from other projects linking to those threads over the years saying something along the lines of “we want the API to look like X, but for that we need GATs” (or see this comment that has some of these put together already). If you’re interested in how GATs enable a library to do zero-copy parsing, resulting in nearly a ten-fold performance increase, you might be interested in checking out a blog post on it by Niko Matsakis.

All in all, even if you won’t need to use GATs directly, it’s very possible that the libraries you use will use GATs either internally or publically for ergonomics, performance, or just because that’s the only way the implementation works…. [A]ll the various people involved in getting this stabilization to happen deserve the utmost thanks. As said before, it’s been 6.5 years coming and it couldn’t have happened without everyone’s support and dedication.
Rust 1.65.0 also contains let-else statements — a new kind of let statement “with a refutable pattern and a diverging else block that executes when that pattern doesn’t match,” according to the release announcement.

And it highlights another new feature:

Plain block expressions can now be labeled as a break target, terminating that block early. This may sound a little like a goto statement, but it’s not an arbitrary jump, only from within a block to its end. This was already possible with loop blocks, and you may have seen people write loops that always execute only once, just to get a labeled break.

Now there’s a language feature specifically for that! Labeled break may also include an expression value, just as with loops, letting a multi-statement block have an early “return” value.

Read more of this story at Slashdot.

$80M Fund Backs OrangeDAO’s Revolutionary Plan to Mentor and Invest in Web3 Enterpreneurs

An anonymous reader shared this report from long-time tech pundit Robert X. Cringley. “A Distributed Autonomous Organization (DAO) called OrangeDAO is cooperating with a small seed venture fund called Press Start Capital to establish the OrangeDAO X Press Start Cap Fellowship Program for new Web3 entrepreneurs.

“Successful applicants get $25,000 each plus 10 weeks of structured mentorship plus continued access to the more than 1200-member OrangeDAO network. In exchange, OrangeDAO and Press Start get to invest in the resulting companies, if any, produced by the class.” Cringley likens it to the American tech startup accelerator Y Combinator — but on steroids.

Cringley also explains why he thinks this “middle class VC” model “will replicate and grow unconstrained,” ultimately exporting itself from Silicon Valley to cities around the world.

There are many DAOs around and hardly anybody understands them or knows what they are good for. Mainly they have seemed to be involved in the NFT market. But OrangeDAO is different. It has 1200+ members and every one of those members is a graduate of the Y Combinator startup accelerator. They are verified Y Combinator company founders, so they’ve all had similar entrepreneurial experiences and see business much the same way as a result. OrangeDAO seems to have big plans and to make those plans happen in August the DAO, itself, raised $80 million in venture capital, with their first use of that capital being these Fellowships.

I think this will change forever venture capital and the world economy.

It represents a new stage in the evolution of venture capital. In many senses it is the democratization of VC….

The DAO members all have similar backgrounds, similar values, and similar risk tolerances. THERE ARE MORE OF THEM, so they can do bigger deals. And — here’s the important bit — THEY ARE ALL Y COMBINATOR-EDUCATED and connected globally through the blockchain. They not only know many of the same things, they have a sense of where this knowledge comes from and why it is useful…. In the YC-based DAO we have people who want the next generation of entrepreneurs to be even better-educated. It’s not some egalitarian goal, either: they see it as key to success for the whole thing.

Smart people with good ideas will self-identify, be funded at a subsistence level to allow them to develop those ideas and prove their worth, then they can participate on a truly level playing field for the first time…. Gone is the Tycoon, gone is the professional VC who doesn’t understand his tech, gone soon will be the angels (subsumed into the DAO model), and gone for the most part are the asshole VCs whom entrepreneurs grow to hate (not all of them, but a lot).

Done correctly, this model is essentially Meritocratic VC. If the idea is good, the market is ready, and the people know what they are doing, the capital will be there.

Read more of this story at Slashdot.

India Gambles On Building a Leading Drone Industry

The Indian government wants to develop a home-grown industry that can design and assemble drones and make the components that go into their manufacture. The BBC reports: “Drones can be significant creators of employment and economic growth due to their versatility, and ease of use, especially in India’s remote areas,” says Amber Dubey, former joint secretary at the Ministry of Civil Aviation. “Given its traditional strengths in innovation, information technology, frugal engineering and its huge domestic demand, India has the potential of becoming a global drone hub by 2030,” he tells the BBC. Over the next three years Mr Dubey sees as much as 50 billion rupees $630 million invested in the sector.

[…] However, despite the excitement and investment around India’s drone industry, even those in the sector advise caution. “India has set a goal of being a hub of drones by 2030, but I think we should be cautious because we at present don’t not have an ecosystem and technology initiatives in place,” says Rajiv Kumar Narang, from the Drone Federation of India. He says the industry needs a robust regulator that can oversee safety and help develop an air traffic control system for drones. That will be particularly important as the aircraft become larger, says Mr Narang. “Initiatives have to come from the government. A single entity or a nodal ministry has to take this forward if we want to reach a goal of being the hub by 2030,” he says.

India also lacks the network of firms needed to make all the components that go into making a drone. At the moment many parts, including batteries, motors and flight controllers are imported. But the government is confident an incentive scheme will help boost domestic firms. “The components industry will take two to three years to build, since it traditionally works on low margin and high volumes,” says Mr Dubey. Despite those reservations, firms are confident there will be demand for drones and people to fly them. Chirag Shara is the chief executive of Drone Destination, which has trained more than 800 pilots and instructors since the rules on drone use were first relaxed in August 2021. He estimates that India will need up to 500,000 certified pilots over the next five years.

Read more of this story at Slashdot.

Instagram Jumps Into NFTs With Minting and Selling Feature

Meta’s Instagram will soon allow artists to create and sell their own NFTs both right on the social media platform and off it. Axios reports: IG’s feature will roll out to a small group of select creators in the U.S. to start, according to Meta. The first creators tapped to test the feature include photographer Isaac âoeDriftâ Wright, known as DrifterShoots, and artist Amber Vittoria. Meta won’t charge fees for posting or sharing an NFT on IG, though, app store fees still apply. Separately, there will be a “professional mode” for Facebook profiles for creators to build a social media presence separate from their personal one. Artist royalties appear to be a part of the plan.

Minting or the creating of NFTs on IG will start on Polygon, a boon for the layer-2 blockchain (a separate blockchain built on top of Ethereum) given the potential onboarding of IG’s billion active users. The price of Polygon’s token MATIC jumped 17% from Wednesday evening to Thursday morning, boosted by IG news but also, because JPMorgan conducted its first live DeFi trade using that blockchain. The platform is adding support for Solana blockchain and Phantom wallet with the latest feature update, adding them to the list of already-supported wallets such as MetaMask, Coinbase Wallet, Dapper Wallet, Rainbow and Trust Wallet. Ethereum and Flow blockchains are already supported. Info for selected collections with OpenSea metadata, like collection name and description, will show up on IG.

Read more of this story at Slashdot.

New Hampshire Set To Pilot Voting Machines That Use Open-Source Software

According to The Record, New Hampshire will pilot a new kind of voting machine that will use open-source software to tally the votes. The Record reports: The software that runs voting machines is typically distributed in a kind of black box — like a car with its hood sealed shut. Because the election industry in the U.S. is dominated by three companies — Dominion, Election Systems & Software and Hart InterCivic — the software that runs their machines is private. The companies consider it their intellectual property and that has given rise to a roster of unfounded conspiracy theories about elections and their fairness. New Hampshire’s experiment with open-source software is meant to address exactly that. The software by its very design allows you to pop the hood, modify the code, make suggestions for how to make it better, and work with other people to make it run more smoothly. The thinking is, if voting machines run on software anyone can audit and run, it is less likely to give rise to allegations of vote rigging.

The effort to make voting machines more transparent is the work of a group called VotingWorks. […] On November 8, VotingWorks machines will be used in a real election in real time. New Hampshire is the second state to use the open-source machines after Mississippi first did so in 2019. Some 3,000 voters will run their paper ballots through the new machines, and then, to ensure nothing went awry, those same votes will be hand counted in a public session in Concord, N.H. Anyone who cares to will be able to see if the new machines recorded the votes correctly. The idea is to make clear there is nothing to hide. If someone is worried that a voting machine is programmed to flip a vote to their opponent, they can simply hire a computer expert to examine it and see, in real time.

Read more of this story at Slashdot.