Rust Move vs Copy

I’ve been looking at the Rust Ownership model . The skinny is that Rust has made mostly opposite decisions from C++. Copy vs Move An assignment in Rust is by default, a move. The original variable is declared as invalid and using it will net you a hard error at compile time. The example used in the docs is: lets1=String::from("hello");lets2=s1;println!("{}, world!",s1);That last line will not compile because s1 is no longer valid.

Read more »

Live on codevamping.com!

Now officially live on the new blog at codevamping.com! The new site uses: Hugo - site building Jeffprod - theme Netlify - hosting Zapier - automated build for scheduled posts Google - as domain registrar. GitHub - for repostory hosting. I still have posts to migrate from the old site. That is a bit of pain, since it wasn’t originally written in Markdown. One tool that has been indispensible is Dillinger.

Read more »

Chrome OS Linux Container (crostini) tips

The new Linux Containers available on some ChromeBooks are manna from heaven if you are a developer. Having a full blown Debian based distribution just a click away makes supported ChromeBooks very usable development platforms. And getting such a device can be cheap.

Here is a set of tips to help make things a little nicer.

Read more »

Dotfile Maintenance

Here is a party I’m a bit late in joining. And it is one of those ideas that makes you smack your head wondering why you didn’t think of it. Config file tweaks For years, I’ve maintained a tar.Z bundle that contains a .profile, .cshrc, .bashrc, .vimrc etc. You can tell how old it is by the fact that I still maintain it with compress rather than gzip. When I started it, gzip did not exist.

Read more »

Dairying in Mongolia

This will be a bit off from the normal fodder for this blog, but I thought it was interesting. Lets start with a bit of biology. Babies naturally produce an enzyme called lactase that allows them to digest the main sugar component of milk - lactose. Many (globally it would be most) people lose that ability near puberty. This leads to lactose intolerance and the GI issues it can cause. Many people of European heritage, however, are lactase persistent and maintain the ability to digest lactose - to the delight of the dairy industry.

Read more »

Musical Sensors

Vibrating cantilevers has a long history of being used as sensors, but almost always in the micro-domain. The cantilever is frequently etched into silicon or other substrate. The weight of even single molecules can be measured or detected. The idea is fairly simple. Change the distribution of weight on the cantilever, and the frequency of vibration will change. It can even be used as a motion detector since acceleration in the same plane as the natural vibration will either start the cantilever vibrating or will change the frequency of the vibration.

Read more »

Onyx Spec Page

I figured I better at least start the Onyx Spec page, so I did. You can find it in the Menu. Built in types are there now. Onyx Spec

Read more »

Onyx Specification

Built-in Types Integral: int - 32 bit signed integer byte - 8 bit unsigned integer bigint - 64 bit signed integer May need to add a few more but they will all have form intnn (e.g. int16 or int8) There are no unsigned versions except byte. implicit conversion can only widen, but cannot narrow. Narrowing conversion can be explicitly requested. Narrowing conversion will throw an exception if the source value is out of range.

Read more »