Thanks to the work of @agraf, @KhaosT, @imbushuo, and others, we have Virtualization.framework working on M1 Macs. These [changes][1] have been merged with QEMU v5.2.0 RC3 (will rebase once the final release is out) and integrated with UTM, a brand new QEMU frontend designed in SwiftUI for iOS 14 and macOS 11.
I have been struggling to start a new project with Phoenix 1.3 and the new vue-cli 3 for Vue.js. There are tons of example already but none of them suited my needs, because:
- I want to use the new Vue-cli to select the features that I want,
- I do NOT want to setup Webpack (I know, what a shame!). The new Vue-cli includes the new vue-cli-service, which uses an instance of webpack-dev-server, so you don't have to import it manually in your project.
- I do not want to use Brunch.
Assuming that you have Elixir and Phoenix 1.3 are both installed, let's build our new App.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* UPDATE: this trick doesn't work here because when using 'asInstanceOf', Nothing is inferred as being the expected type, thus the conversion fails at run-time. | |
*/ | |
/** | |
* Let's say you have some ugly casting to do | |
*/ | |
// this doesn't compile with something like: "expected _, got Any" | |
function match { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor.{Actor, FSM} | |
import java.util.concurrent.TimeUnit | |
sealed trait Health | |
case object Stale extends Health | |
case object Alive extends Health | |
case object Dead extends Health | |
case object HeartBeat |