19
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[翻蚳] ④Web3DID゚ッゞコンピュヌティングBrooklyn Zelenka and The Exciting World of Edge Computing

19
Last updated at Posted at 2022-02-16

piacere です、ご芧いただいおありがずございたす :bow:
I'm piacere, the 4 Elixir communities founder/organizer, thank you for reading! :bow:

前回に続き、今回もElixir界の゚ッゞコンピュヌタず惑星間ファむルシステム、DIDの専門家、Brooklyn ZelenkaのPodcast翻蚳をお届けしたす䞋図はElixir.LDN 2017より
image.png

このPodcast翻蚳シリヌズの目次は䞋蚘です

[翻蚳] ①Brooklyn Zelenka and The Exciting World of Edge Computing
|> [翻蚳] ②Brooklyn Zelenka and The Exciting World of Edge Computing
|> [翻蚳] ③Brooklyn Zelenka and The Exciting World of Edge Computing
|> [翻蚳] ④Brooklyn Zelenka and The Exciting World of Edge Computing

:xmas-tree::xmas-tree: There are 16 Elixir Advent Calendar, making for a hot winter! :xmas-tree::xmas-tree:

We are experiencing an unprecedented level of excitement ... Please support/subscribe :bow:

https://qiita.com/advent-calendar/2022/elixir
image.png

JavaScript、Ruby、党おのJVM蚀語からElixirぞ

DI: I think one of the things I'm just enjoying listening to you talk about all this is you're coming at this with such an approach around, it's about the ideas and not the language, not necessarily the implementation, but that we're at a point where the ideas of distributed computing are the ideas of an actor model, or the ideas look, we can take these and apply them in other places. So even though you are doing work in Haskell or in TypeScript you're leveraging knowledge, experience and patterns from previous places. I'm curious with that where were you before Elixir? What were you working in there? Was Elixir, your first introduction to functional programming or what was your journey?

BZ: For sure, yeah. So my main, I guess, professional experience prior to Elixir, was obviously JavaScript and Ruby. I started, worked at Ruby for a number of years, and was doing Elixir on the side and decided I wanted to do that full time and got a job that was specifically looking to do Elixir in 2015 or so. So did that full-time for a few years, and taught, etc. Prior to that on the side, I had, I really love programming languages, I'm a primary language geek, and would collect them or try different ones out and write little projects with them and try to compare and contrast them.

My first, you can really, again, it's about the techniques more than the language. One of my first languages, second language actually was Clojure, so I learned JavaScript and Clojure about the same time. We were, so the first startup I was at, actually, and we were using this framework that was based on the JVM, so you can use all the JVM languages, and that company was definitely using all of the JVM languages. I had to pick up JRuby and Groovy and Java, and all of these languages really quickly, I found, I really enjoyed that. So in the first year or so I had picked up about 20 or so and just kept going and would go and play with FORTRAN or C++ or whatever.

Bit of it, very atypical journey into Elixir from there, but part of what got me into Elixir in particular was, I mean, yes, the Ruby background. There's some very surface level similarities, doesn't really go past the syntax, I think. My Clojure background, my LISP background, really drew me in more, because you have Macros, it is Homoiconic. You do have all of these, it's in a lot of ways, it's essentially a LISP with a better syntax, right? That felt very familiar.

I was running the functional programming meetup in Vancouver at the time, and lots of people were interested in, that we're coming in mainly from Ruby, because lots of Rubyists. They were interested in Elixir and in Haskell, and specifically they wanted to know what a Monad was, or a Functor was. I said, well, you know, I can probably teach this by rewriting those things in Elixir for you and then you can learn both at the same time, and hence the very beginnings of witchcraft. Right from that and then I just took that much further than I think anyone thought I would. Yeah.

DI: Very interesting.

AH: Really just like going above and beyond. I love that.

BZ: Yeah.

DI私があなたの話を聞いおいお楜しいず思ったのは、あなたのアプロヌチが、蚀語や実装ではなくアむデアに基づくものであるずいうこずです。分散コンピュヌティングのアむデアは、アクタヌモデルのアむデア、たたはこれらを取り入れお他の堎所に適甚できるアむデアになり぀぀ありたす。぀たり、HaskellやTypeScriptで䜜業をしおいおも、以前の堎所での知識や経隓、パタヌンを掻甚しおいるわけです。Elixirを䜿う前はどうだったのですかそこで䜕をやっおいたんですか 関数型プログラミングに初めお觊れたのはElixirだったのでしょうかどのような道のりでしたか

BZそうですね。Elixirの前の私の䞻な専門的な経隓はJavaScriptずRubyばかりでした。私はRubyを始めお䜕幎か働き、副業でElixirをやっおいたしたが、それをフルタむムでやりたいず思い、2015幎くらいにElixirをやるこずを特に求めおいた仕事に就いたんです。それで数幎間フルタむムでやっお、教えたりしおいたした。それ以前は、プログラミング蚀語が倧奜きで、蚀語オタクで、プログラミング蚀語を集めたり、いろいろな蚀語を詊しおみたり、小さなプロゞェクトを曞いたりしお、比范怜蚎をしおいたした

私の堎合、蚀語よりも技術に重きを眮いおいたす。私の最初の蚀語のひず぀は、実は第2蚀語がClojureで、JavaScriptずClojureをほが同時に孊びたした。私が最初にいたスタヌトアップでは、JVMをベヌスにしたフレヌムワヌクを䜿っおいたので、すべおのJVM蚀語が䜿えたした。JRubyやGroovy、Javaなど、すべおの蚀語をすぐに習埗しなければなりたせんでしたが、それがずおも楜しかったんです。最初の1幎くらいで20個くらい芚えお、そのたたFORTRANずかC++ずかで遊んでいたした。

そこからElixirに入ったのは、ずおも倉わった道のりだったんですが、特にElixirにのめり蟌んだのは、Rubyのバックグラりンドがあったからです。ただ、衚面的な類䌌性はあるけれど、シンタックスを超えるものではありたせん。ClojureやLISPのバックグラりンドを持っおいる私は、より䞀局匕き蟌たれたした。マクロもあるし、ホモアむコニック蚳泚実行䞭に関数にアクセスでき、その関数を曞き換えられる特性、メタプログラミングのために必芁なので、いろいろな意味で、より優れたシンタックスを持぀LISPだず思いたす。それはずおも身近に感じられたした。

私は圓時、バンクヌバヌで関数型プログラミングのミヌトアップを運営しおいたした。そしお倚くの人が興味を瀺しおいたした。Ruby䜿いがたくさんいたので、䞻にRubyから入っおきおいたした。ElixirやHaskellにも興味を持っおいお、特にモナドやファンクタが䜕なのか知りたがっおいたした。そこで私は「私がElixirでこれらを曞き盎せば、䞡方を同時に教えられるでしょう」ず蚀いたした。そこから、誰もが思っおいるよりもずっず先に進んだんです。

DIずおも興味深いですね

AHたさに、その䞊を行くずいう感じですね。それが奜きなんです

BZえぇ

image.png

Elixirの欠点

AH: I feel like we've talked a lot about, a lot of the benefits of Elixir. What do you think are some drawbacks?

BZ: I'm not a person who thinks that you must have a type system in the language, but it can also be really helpful, especially if it is an optional thing you can turn on, dialyzer doesn't quite capture quite the same thing. There is this challenge, where if part of your program is typed and the other part of it isn't, you don't really get the benefit. It's the more of it that really the better. Having the ability to have a type system, more than type specs would be extremely helpful. I know, there's been a couple attempts at that, that, I guess, just haven't panned out.

The ability to easily reason about side effects, right? They're just hidden. They're really side effects. Managed effects of some kind would be really nice. OCaml these days has a nice way of handling that. Pulling in some of those ideas might be nice. It's something that if I ever am not at a scrappy startup that needs all of my time, that I might try to build something towards. The lack of a Wasm support today is a challenge, right? Trying to integrate it with other tools and other ecosystems.

One of the amazing things with Wasm is it has become a or is increasingly becoming a thing that people won't say no to, of like, well, they have a Go project, but you've got some Wasm blob, and so you can just plug that in, and it's fine. They don't care what is written in inside. Being able to compile down to Wasm would be a huge, huge help. There's been improvements, definitely, to performance, but it still runs inside of a virtual machine. It's quite slow compared to Haskell, Rust, Go, and the ones that are more on the native code side. Being able to target native code, as soon as you targeting Wasm, you may as well also target native code and get some speed-ups there.

AH: Elixirの利点に぀いお、これたでたくさんお話ししおきたように思いたす。欠点は䜕だず思いたすか

BZ: 私は蚀語に型システムが必芁ずは考えおいたせんが、Dialyzer蚳泚Elixirの型チェックツヌル、ただし刀定は甘いは同じように捉えおくれないので、オプションでオンにできるものであれば本圓に圹立぀こずもありたす。プログラムの䞀郚が型付けされ、他の郚分が型付けされおいない堎合、その利点を享受できない、ずいう課題がありたす。型付けは倚ければ倚いほど良いのです。型指定だけでなく、型システムを持぀こずができれば、非垞に䟿利です。これたでにも䜕床か詊みはありたしたが、うたくいかなかったようです蚳泚これはElixirでの型システム実装のこずず思われる、アナりンスはあったけど結局、実装に至っおいない

副䜜甚を簡単に掚し量るこずができるこずですね。それらは隠されおいるだけです。本圓に副䜜甚があるんです。ある皮の管理された効果ずいうのは本圓に玠晎らしいものです。最近のOCamlはそれをうたく凊理できるようになっおいたす。そういうアむデアを取り入れるずいいかもしれたせん。もし私が、私の時間を党お必芁ずするようなスクラッピヌスタヌトアップ蚳泚根性があっお、向こう意気が匷いスタヌトアップのこずにいないなら、䜕か䜜っおみるかもしれたせんね。WASM蚳泚WebAssemblyの省略衚蚘のサポヌトが無いのは課題ですよね 他のツヌルや他の゚コシステムず統合しようずするこずです

WASMの凄いずころは、「Goのプロゞェクトがあるけど、WASM blobがあるから、それに接続すればいいんだよ」ず断られないような存圚になり぀぀あるこずです。䞭に䜕が曞いおあるかは気にしないんです。WASMにコンパむルできるようになれば、非垞に倧きな助けになりたす。性胜は確かに向䞊しおいたすが、ただVMの䞭で動いおいるんです蚳泚ElixirがVM配䞋で動いおるこずず思われる、VMはErlangVMのこず。HaskellやRust、Goなど、ネむティブコヌドに近い蚀語ず比范するず、かなり遅いのです。ネむティブコヌドをタヌゲットにできるずいうこずは、WASMをタヌゲットにした時点でネむティブコヌドもタヌゲットにしお、そこそこのスピヌドアップを図るこずができるかもしれたせんね

The Jump to Hyperspace

https://fission.codes/blog/jump-to-hyperspace-brooklyn-zelenka-elixirconf-edge-computing/
image.png

AH: I completely lost my question that has been floating around in my mind for easily 45 minutes, but I do have a very random one for you. If we jump back to the title of your talk, "The Jump to Hyperspace", would you rather go into deep space, or go to the deep sea?

BZ: Ooh. I think, there's probably way more interesting stuff in the deep sea.

AH: Yeah. Probably. You could see giant squids. Yeah.

BZ: Right? Yeah.

DI: Yeah. Go to a place where you know there's life, as opposed to a place where there may be life, right?

BZ: Exactly.

AH: Exactly. Exactly.

DI: That's a good argument. Good argument.

AH: People make fun of me, because one of my greatest fears is space. I think, it is a well-placed fear.

BZ: Not a friendly place to be. It's true.

AH: Exactly.

AH45分間、私の頭の䞭にあった質問を完党に忘れおしたいたしたが、ずおもランダムな質問をさせおいただきたす。講挔のタむトルである「The Jump to Hyperspace」に話を戻すず、あなたは深宇宙ず深海のどちらぞ行きたいですか

BZあぁ、深海にはもっず面癜いものがあるんじゃないかず思うんです

AHそうです。たぶんね。ダむオりむカが芋られるかもしれないです。

BZでしょうそうです

DIそうですね。呜があるかしれない堎所より、呜があるず分かっおいる堎所に行くこずですね

BZその通りです

AH: たしかに。たしかに

DIそれは正論ですね。正論だ

AH私は宇宙を恐れおいるので、みんなにバカにされたす。私は、それはよくできた恐怖だず思いたす

BZ: フレンドリヌな堎所ではないですね。おっしゃる通り

AHその通りです

゚ッゞコンピュヌティングの孊び方

AH: Brooklyn, do you have any If people are really interested in getting into edge computing, learning about it, do you have any good resources for those people, or good recommendations, places they can just start from square one?

BZ: Yeah, absolutely. I mean, distributed computing in general, there's a couple of really great books. There's Designing Data-Intensive Applications, which is mainly about databases. When you think about distributed systems, it's really about the data and how to get that distributed and access it efficiently, and all these things. I would say, it probably the best introduction to distributed systems book out there.

In terms of some of the things we're talking about before, like content addressing, if you go to proto.school, they have lots of things there about immutable data and content, address data, and hash rate data. Come to the Fission Discord. We have a very active community that are asking questions on posting papers on the regular. We have calls most Thursdays as well, community calls, where often, somebody will be giving a presentation about things that are related in our space, which often end up being, as you can imagine. It should be computing related, and show up to those and there's lots of interesting things to learn there.

AH: That is open to anybody to join?

BZ: Absolutely. Absolutely, anyone. Yeah, so come join the Discord. We post links to those every time. We also have a it called Luma, which is a new platform for scheduling events. We post those events on Luma, lu.ma. I believe, you could then search for Fission inside there and find us.

AH: Cool. That's amazing. I love that that's open to anybody to join. That's super awesome. I love that. Well, Brooklyn, do you have any final plugs, asks for anybody, where people can find you on social media, the projects you're working on, etc.?

BZ: Sure. You can find me pretty much anywhere on the Internet as expede, E-X-P-E-D-E. I'm on Twitter. You can also find my company, Fission, @fissioncodes on Twitter. Witchcraft, always looking for more contributors, maintainers. I'm pretty distracted right now, changing the way the Internet works. If you want to get involved in witchcraft, please drop me a line, or just go directly to the repos. The organization is github.com/witchcrafters. Open issues, or even just drop an issue and to say hi, and that you're interested in starting to take a look at some stuff.

AH: Brooklynさん、もし゚ッゞコンピュヌティングに興味を持ち、それを孊びたいず思っおいる人がいたら、その人たちのために䜕か良いリ゜ヌス、あるいはお勧めの堎所、れロから始められるような堎所はありたすか

BZえぇ、もちろんです。分散コンピュヌティング党般に぀いおですが、本圓に玠晎らしい本が䜕冊かありたす。「Designing Data-Intensive Applications」は䞻にデヌタベヌスに぀いお曞かれおいたす。分散システムに぀いお考えるずき、それはデヌタに぀いおであり、いかにしおデヌタを分散させ、効率的にアクセスするかずいうこずなのです。恐らく、分散システムの入門曞ずしおは最高の本だず思いたす

先ほど話したコンテント・アドレッシングに぀いおも、proto.school蚳泚分散型Webプロトコルのチュヌトリアルサむトに行けば、むミュヌタブルデヌタやコンテンツ、アドレスデヌタ、ハッシュレヌトデヌタに぀いおたくさんのこずが曞かれおいたす。FissionのDiscordに来おください。非垞に掻発なコミュニティがあり、定期的に論文を投皿しお質問しおいたす。毎週では無いですが朚曜日にはコミュニティコヌルがあり、誰かが私たちの領域に関連する事柄に぀いおプレれンテヌションを行うこずがありたす。コンピュヌタに関連するもので、そこに来れば、たくさんの興味深いこずを孊ぶこずができたす

AHそれは誰でも参加できるのですか

BZもちろんです。もちろん、誰でも参加できたす。ですので、FissionのDiscordに参加しおください。毎回リンクを貌っおいたす。たた、Lumaず呌ばれるむベントをスケゞュヌルするための新しいプラットフォヌムもありたす。むベントをLumalu.maに投皿しおいたす。そこでFissionを怜玢しおいただければ、私たちを芋぀けられたす

AH: すばらしい。それはすごいですね。誰でも参加できるのがいいですね。超すごい。そういうの、倧奜きです。さお、Brooklynさん、最埌に䜕かプラグむンや誰かにお願いしたいこず、人々が゜ヌシャルメディアであなたを芋぀けるこずができる堎所、あなたが取り組んでいるプロゞェクトなどがあれば教えおください

BZ: もちろん。むンタヌネット䞊ではexpede、E-X-P-E-D-Eずしお、どこでも私を芋぀けるこずができたす。Twitterもやっおいたす。Twitterでは、私の䌚瀟であるFission、@fissioncodes もご芧いただけたす。Witchcraftは、垞に倚くの寄皿者、メンテナを募集しおいたす。私は今、むンタヌネットの仕組みを倉えるために、かなり気を取られおいたす。もしあなたがWitchcraftに関わりたいなら、私に連絡をください。あるいは、盎接レポゞトリにアクセスしおください。github.com/witchcrafters です。Issuesを開いお「ハヌむ」ず連絡しおください。そしお、色んなものを芋始めるこずに興味があるこずを䌝えおください

image.png

最埌のご挚拶

AH: Awesome. It's been a dream of mine to be involved in the magical wizarding community ever since I was a child. Besides being on Elixir Wizard, maybe now I will also become interested in witchcraft.

BZ: Amazing.

AH: All related things. Dan is laughing at me, as he should be. I'm so sorry, everyone, for making bad jokes. But not at all, actually.

DI: No, you shouldn't be. That fine. You be you, Alex. It's great.

AH: Thank you, Dan. I appreciate your support. Well, everybody, Brooklyn, thank you so much for joining. It was really great to have you on. I feel like, I've learned a lot more even though, I think, a lot of it has still gone over my head, but I feel more comfortable now after getting this chance to talk with you after listening to your talk. Thank you so much for joining.

BZ: Amazing. Thank you so much for having me.

AH: It was really, truly our pleasure. Thank you everyone else for listening. That's it for this episode of Elixir Wizards. Elixir Wizards is a SmartLogic production. Today's host include myself, Alex Housand, and my wonderful co-host, Dan Ivovich. Our producer is Bonnie Lander and our executive producer is Rose Burt. We get production and promotion assistance from Michelle McFadden.

Here at SmartLogic, we build custom web and mobile software. We're always looking to take on new projects. We work in Elixir, Rails and React, Kubernetes and more. If you need a piece of custom software built, hit us up. Don't forget to hit like, subscribe and leave us a review. You can follow @smartlogic on Twitter for news and episode announcements. You can also join us on the Elixir Wizards Discord, just head on over to podcast page to find the link. Don't forget to join us again next week for more on the Impact of Elixir.

AHすごいですね。子䟛の頃から、ずっず魔術垫のコミュニティに関わるのが倢だったんです。Elixir Wizardsに出挔したこずで、今床はWitchcraftに興味を持ったかも知れたせん

BZ玠晎らしいですね

AH党おは関係しおるんです 
 Danが普通に笑っおいる。みなさん、悪い冗談を蚀っおしたっお本圓にゎメンナサむ。実際は、党然違うんです

DIやらなくおいいんですよ。倧䞈倫。あなたはあなたのたたでいおください、Alex。それは玠晎らしいこずなんです

AHありがずう、Dan。あなたのサポヌトに感謝したす。さお、皆さん、Brooklynさん、ご参加ありがずうございたした。あなたが出挔しおくれお本圓によかったです。私は、チンプンカンプンなずころが倚かったけど、私はより倚くを孊んだように感じおいたす。あなたの話を聞いお、あなたず話す機䌚を埗お、私は今満足な気分です。本圓にありがずうございたした
 
BZよかったです。お招きいただき、本圓にありがずうございたす

AH本圓に、こちらこそ。皆さんも聞いおくださっおありがずうございたした。今回のElixir Wizardsの゚ピ゜ヌドは以䞊です。Elixir WizardsはSmartLogicの制䜜です。今日のホストは私、Alex Housandず、玠晎らしい共挔者であるDan Ivovichです。プロデュヌサヌはBonnie Lander、゚グれクティブ・プロデュヌサヌはRose Burtです。制䜜ずプロモヌションはMichelle McFaddenが手䌝っおくれおいたす

SmartLogicでは、独自Webモバむルの゜フトりェアを䜜っおいたす。私たちは垞に新しいプロゞェクトに取り組みたいず考えおいたす。Elixir、Rails、React、Kubernetesなどを䜿っお仕事をしおいたす。もし、独自゜フトりェアの構築が必芁でしたら、ぜひご連絡ください。「いいね」「賌読する」「レビュヌを残す」を忘れずに。Twitterでは、@smartlogicをフォロヌするず、ニュヌスや゚ピ゜ヌドの告知を芋るこずができたす。たた、Elixir Wizards Discordでも参加できたす。Podcastペヌゞにリンクがありたす。来週の「Elixirの衝撃」ぞのご参加もお忘れなく

- Translator's impression : 蚳者の感想 -

(English version)

One of the drawbacks of Elixir is that the type system is incomplete in Dialyzer (and Elixir doesn't have a type system yet) and the performance is not as good as native code.

As a solution, WebAssembly support was discussed.

He also mentioned the similarities between Elixir and Ruby, as well as the similarities between Elixir and Clojure and LISP in the context of macros and metaprogramming.

I think the phrase "LISP with better syntax" was spot on.

Towards the end of the book, there is also a section on how to learn about edge computing and distributed computing, as well as an introduction to the community, so if you like this translation series, why not visit those communities?

Brooklyn Zelenka herself posts information on her blog, so if you want to know more, please go to her blog!

日本語バヌゞョン

Elixirの欠点ずしお、型システムがDialyzerでは䞍完党なこずたたElixirが型システムを未だ持おおいないこずず、性胜面でネむティブコヌドには届かない点が挙げられたした

その解決ずしお、WebAssemblyサポヌトに぀いお論じられおいたした

たた䞖間で良く蚀われる、ElixirずRubyの類䌌点だけで無く、マクロやメタプログラミングの文脈で、ClojureやLISPずの類䌌点に぀いおも蚀及されおいたした

「より優れたシンタックスを持぀LISP」ずいうフレヌズは、的を射た衚珟だず思いたす

終盀には、゚ッゞコンピュヌティングや分散コンピュヌティングの孊び方ず、コミュニティの玹介もあり、この翻蚳シリヌズを気に入った方は、それらコミュニティに蚪れおはいかがでしょう

Brooklyn Zelenkaさん自身も、ブログで情報発信しおいるので、もっず知りたい方は、圌女のブログを芋に行っおみおください

このPodcast翻蚳シリヌズ党䜓は、以䞋の通りです

[翻蚳] ①Brooklyn Zelenka and The Exciting World of Edge Computing
|> [翻蚳] ②Brooklyn Zelenka and The Exciting World of Edge Computing
|> [翻蚳] ③Brooklyn Zelenka and The Exciting World of Edge Computing
|> [翻蚳] ④Brooklyn Zelenka and The Exciting World of Edge Computing

Elixirコミュニティのご玹介

1. ElixirImp : A place to LOVE the buds in Elixir (Elixir実装の芜を愛でる堎)
2. fukuoka.ex : Fukuoka local Elixir Community (犏岡Elixirコミュニティ)
3. kokura.ex : Kokura local Elixir Community (小倉Elixirコミュニティ)

4. LiveView JP : A place to mob-program in LiveView, LiveBook+Nx+Axon, and elixir-desktop

5. Neos.ex : A place to connecting Elixir and NeosVR to create a new world

p.s.このコラムが、面癜かったり、圹に立ったら 

image.png や image.png にお、どうぞ応揎よろしくお願いしたす:bow

19
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?