piacere ã§ããã芧ããã ããŠããããšããããŸã ![]()
I'm piacere, the 4 Elixir communities founder/organizer, thank you for reading! ![]()
ååã«ç¶ããBrooklyn Zelenkaã®Elixirãšããžã³ã³ãã¥ãŒãã£ã³ã°PodcastãBrooklyn Zelenka and The Exciting World of Edge Computingãã®ç¿»èš³ããå±ãããŸãã®Podcast翻蚳ããå±ãããŸãïŒäžå³ã¯æ¥å¹Žéå¬ã®CODE BEAM EUROPE 2022ç»å£åç¥ããã4åã®OUR SPEAKERSã®1人ã§ãïŒ

ãã®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

There are 16 Elixir Advent Calendar, making for a hot winter! 
We are experiencing an unprecedented level of excitement ... Please support/subscribe ![]()
https://qiita.com/advent-calendar/2022/elixir

æè¡çãªå ¬å¹³æ§ããšããžã³ã³ãã¥ãŒãã£ã³ã°ã§ç¯ã
AH: Something that really struck me about the talk that you gave at ElixirConf in Austin. You had this graphic that had circles around, where cloud infrastructure is, but where people are, and makes me think a lot about tech equity, which is something that is always continuously a problem. How do you think that we as engineers, really anybody in technology can work to create more tech equity, I guess, make it more accessible?
BZ: Yeah. It's a big problem, right? It's hard.
AH: Yeah.
BZ: Sometimes things get solved at different layers. Then whatever any particular teams working on, but the core problem is, if you look at, and I'll just pick on AWS, because they're the biggest, about half, maybe more than half of their Data Centers are in North America and Europe, right? There's one AWS Data Center in Africa, for all of Africa, right? Which is about one and a half billion people and a massively growing market for technologies, smartphones, all that stuff, right? The leapfrogging effects as well, of not having to go through dial up modems, right?
It's like suddenly, everybody's online, all of a sudden, and they have one Data Center, which will take billions of dollars to build a new one, right? only if there's demand for it, right? Like economic demand for hosting things there. What ends up happening is people end up with really terrible service with hundreds of milliseconds of latency at best, with really awful video call quality and really expensive resources, right? You want to store something in, the one server they have in Africa is in Cape Town, right?
There's only so much storage there and it's not, each region has different pricing. That is not the cheapest region. Not that it's secure all, right? But Edge computing has the advantage where you can spread out your resources across geography much more easily. Take it again, right down to the single device, have an ISP put in roughly the size of a fridge, and top with a little bit of storage and a little bit of compute on it, where you can send jobs or a little bit of storage too, which is really close to people and where we're trying to get to. So this is a little bit further out, is in the same way that we've had open source where you can look at other people's code. We want to have open infrastructure, right? What's sometimes called Commons Networks.
Why can't I, when my laptop is sitting idle, provide Compute and Storage for other people? Why can't I just buy or use my old desktop PC and just let it sit there and be connected to think of it almost a data center equivalent of BitTorrent? Where we spread this out across all of our idle devices, that's not 2022 thing, right? That's a little bit further out. But these are all things that we can do to make access to tech more equitable.
AHïŒãªãŒã¹ãã£ã³ã§éå¬ãããElixirConfã§ã®è¬æŒã§ããšãŠãå°è±¡çã ã£ãããšããããŸããã¯ã©ãŠãã€ã³ãã©ãããå Žæãšã人ãããå Žæãåã§å²ãã ã°ã©ãã£ãã¯ããããŸããããæè¡çå ¬å¹³æ§ã«ã€ããŠè²ã ãšèããããããŸããããšã³ãžãã¢ãšããŠããŸããã¯ãããžãŒã«æºãã誰ãããæè¡çå ¬å¹³æ§ãé«ããããã«ãã€ãŸããããã¢ã¯ã»ã¹ããããããããã«ãã©ã®ããã«åãçµãããšãã§ãããšæããŸããïŒ
BZïŒã¯ããããã¯å€§ããªåé¡ã§ããïŒ é£ããã§ã
AHïŒãã
BZïŒæã«ã¯ãç°ãªãã¬ã€ã€ãŒã§ç©äºã解決ãããããšããããŸããããããæ žãšãªãåé¡ã¯ãAWSãäŸã«æãããšã圌ãã¯æå€§æãªã®ã§ãããŒã¿ã»ã³ã¿ãŒã®çŽååãããããåå以äžãåç±³ãšãšãŒãããã«ãããŸããã¢ããªã«ã«ã¯AWSã®ããŒã¿ã»ã³ã¿ãŒã1ã€ãããã¢ããªã«å šåãã«ããŒããŠããŸãããã¢ããªã«ã®äººå£ã¯çŽ15å人ã§ããã¯ãããžãŒãã¹ããŒããã©ã³ãªã©ã®åžå Žã倧ããæé·ããŠããŸãããã€ã€ã«ã¢ããã¢ãã ã䜿ããªããŠãè¯ããšãããªãŒããããã°å¹æïŒè𳿳šïŒå€ãæè¡ãå°å ¥ããããšç¡ããæ°æè¡ããããªãå°å ¥ããããšã§ãæ¢åæè¡ã«åãããã¹ããŒãã£ã«æè¡å°å ¥ã§ãããšãããã©ã¹å¹æïŒããããŸãããã
誰ããçªç¶ãªã³ã©ã€ã³ã«ãªã£ããããªãã®ã§ãããããŠãããŒã¿ã»ã³ã¿ãŒã1ã€ãããŸãããæ°ãã建ãŠãã«ã¯äœååãã«ãããããŸãããïŒ ããã«äœãããã¹ãã£ã³ã°ããããšããçµæžçãªéèŠããããããªå Žåã®ã¿ã§ããã©ãçµå±ãæ°çŸmsecã®é å»¶ããããããªé ·ããµãŒãã¹ãé ·ããããªé話å質ãé«äŸ¡ãªãªãœãŒã¹ãæäŸãããããšã«ãªãããã§ããäœããä¿åããããšæã£ãŠããã¢ããªã«ã«ãããµãŒãã¯ãã±ãŒãã¿ãŠã³ã«1ã€ããç¡ããã§ãããïŒ
ããã«ããã¹ãã¬ãŒãžã¯éãããŠããŸãããå°åããšã«äŸ¡æ Œãç°ãªãã®ã§ããããã¯äžçªå®ãå°åã§ã¯ãããŸãããå šãŠã«ãããŠå®å šãšããèš³ã§ã¯ãªããã§ããããããããšããžã³ã³ãã¥ãŒãã£ã³ã°ã«ã¯ãå°ççãªå¶çŽãåããã«ãªãœãŒã¹ã忣ã§ããå©ç¹ããããŸããäŸãã°ãISPãå·èµåº«ãããã®å€§ããã®ããã€ã¹ãèšçœ®ãããã®äžã«å°ãã®ã¹ãã¬ãŒãžãšå°ãã®èšç®ãã¯ãŒãèŒããŠãããã«ãžã§ããã¡ãã£ãšããã¹ãã¬ãŒãžãéãããšãã§ããŸãããããŠãã®ããã€ã¹ã¯å©çšè ã®è¿ãã«ãããŸãããããç§ãã¡ãç®æããŠãããšããã§ããããã¯å°ãå ã«ãªããŸããããã¯ãä»ã®äººã®ã³ãŒããèŠãããšãã§ãããªãŒãã³ãœãŒã¹ãšåãããæ¹ã§ããç§ãã¡ã¯ããªãŒãã³ãªã€ã³ãã©ãæã¡ãããšèããŠããŸãããã³ã¢ã³ãºã»ãããã¯ãŒã¯ããšåŒã°ããããšããããŸã
èªåã®ã©ããããããã¢ã€ãã«ç¶æ ã®ãšãããªãä»ã®äººã«ã³ã³ãã¥ãŒãã£ã³ã°ãšã¹ãã¬ãŒãžãæäŸã§ããªãã®ã§ããããïŒ å€ããã¹ã¯ãããPCãè²·ã£ãã䜿ã£ããããŠããã ããã«çœ®ããŠãããŠãBitTorrentãšã»ãŒåçã®ããŒã¿ã»ã³ã¿ãŒãšèããŠæ¥ç¶ããããšã¯ã§ããªãã®ã§ããããïŒ ã¢ã€ãã«ããŠãããã€ã¹ã®å šãŠã«åæ£ããããšããã®ã¯ã2022幎ã®ããšã§ã¯ãªãã§ããããã¯ããå°ãå ã®è©±ã§ãããããããããã¯å šãŠãæè¡ãžã®ã¢ã¯ã»ã¹ãããå ¬å¹³ã«ããããã«ãç§ãã¡ãã§ããããšãªã®ã§ã
ïŒè𳿳šïŒäžèšURLããäžèšã§ç޹ä»ããŠããElixirConfã®åºèª¿è¬æŒãèŠããŸãïŒ
https://youtu.be/ogOEEKWxevo?t=565

é éæè¡ãèªåé転è»ãæ©æ¢°åŠç¿ã¯ãšããžã§åããŠãã
AH: Do you foresee any, I can't think of the word it's not misgivings, hardships, I guess, in gaining the trust of people for something like that? One of the, it's another follow up question. I think, they're related, is like how you gain people's trust for things like you mentioned in your talk, remote surgery or autonomous cars? How do we gain population trust for things that are starting to be created, but are a little faulty and convince them that they are worthy, I guess?
BZ: Yeah, totally. Those are all things that people should be worried about, right? It's very different to have a pair of robotic surgeon hands operating on you from whatever, three to 5000 kilometers away versus somebody in person, right? We've had in person surgeons for a while, right? So this stuff is all quite new, we should be skeptical of things self-driving cars, right? Because there's all kinds of issues with them and not just from the sheer tech side, which there is, but even from the ethical side, and how do we encode trust into those things, right?
So for all of this stuff, we have to get to the point where we've seen it used in practice in small amounts and had it work and then have that expand out. There are some things that I'm skeptical of just in general, there's a lot of attempts right now to do online voting, right? You can see the appeal, it you know, you no longer have to stand on the line. It's much harder to prevent somebody from actually voting, right? The underlying technology totally makes sense, but if there's anything wrong with that, well, right, now we have a really great audit trail with paper and it works.
I don't want to hand over the control of a democracy to something that has a harder way of auditing, right. All of these technologies that are coming up, so keeping it just the edge stuff remote surgery, self-driving cars, a distributed machine learning, right? All of this stuff, local for software, personal data, self-sovereign identity, all of these things, need to be proven out in small, successful applications that then grow. If we can't show them working in on the small scale, then they shouldn't survive, basically or maybe that technology isn't right for that area and maybe it has other uses.
On the remote surgery, one, which is I think, everyone gets interested in this specific case. There have been this has actually been done in practice, I believe, at least once with a human patient, now in China, where the surgeon was in another city. The advantage, obviously is that you don't need to train as many surgeons and the ones you do have, you don't have to fly them around or you have you don't have to bring patients in, right? You can now serve remote populations and all kinds of stuff, right, this is fantastic.
They did this with a 5G Network. It went through fiber cable, to a station up into the air back down. So very straight lines, right? You're not sneaking through fiber in the ground, very straight lines back down and it was under, I can remember the exact numbers, I think, under 20 milliseconds or something latency. Very, very fast, very responsive, and was success in the one trial case, right. So very promising, but very early and especially something like health care, we need to be very careful with it.
AH: Do you know what the type of surgery was before I let Dan take over for a second?
BZ: I can remember it. They've definitely done literally, a minor brain surgery as one does. Yeah. I'm trying to remember if that was the one that I just described in China or not. They've also done some of these with, I think, the euphemism is animal models as well. Human one, I think, was a brain surgery, but I need to double check.
DI: We can leave that as an exercise to the listener. Take a look up, "Crazy Remote Brain Surgery".
AHïŒãã®ãããªããšã§äººã ã®ä¿¡é ŒãåŸãã®ã«ãèšèãæãã€ããŸããããäžå®ãèŠåŽã§ã¯ãªãã§ãããäœãäºèŠããŠããŸããïŒ ãã1ã€å¥ã®è³ªåã§ãããè¬æŒã§ãã£ããã£ããããªé éæè¡ãèªåŸèµ°è¡è»ãªã©ã«å¯ŸããŠã人ã ã®ä¿¡é ŒãåŸãã«ã¯ã©ããããããã®ã§ããããïŒ ã€ãŸããäœãå§ããããŠããããå°ãäžå®å šãªãã®ã«å¯ŸããŠãã©ã®ããã«äººã ã®ä¿¡é ŒãåŸãŠã䟡å€ã®ãããã®ã ãšçŽåŸãããã®ã§ãããïŒ
BZïŒããããŸã£ããããããã¯å€ãã®äººã ãå¿é ãã¹ãããšã§ãããæè¡æ¯æŽããããã䜿ã£ãŠ3,000ïœ5,000kmãé¢ãããšããããæè¡ããã®ãšãå®éã«äººãæè¡ããã®ãšã§ã¯ãå šãéããŸãããïŒ ä»ãŸã§ã¯ãå€ç§å»ãšçŽæ¥äŒã£ãŠãŸããããïŒ ããã¯å šãæ°ãããã®ã§ããè»ã®èªåé転ã«ãæççã§ããã¹ããªãã§ããæè¡çãªé¢ã ãã§ãªããå«ççãªé¢ã§ããã©ã®ããã«ä¿¡é Œãçµã¿èŸŒãã®ããªã©ãæ§ã ãªåé¡ãããããã§ã
ãã®ãããªãã®ã¯å šãŠãå®éã«å°ã䜿ã£ãŠã¿ãŠããããäžæããã£ãŠããããããåºããŠããå¿ èŠããããŸããç§ã¯æççãªã®ã§ããããªã³ã©ã€ã³æç¥šã®ãããªè©Šã¿ããããŸãããïŒ é åçãªã®ã¯ãåã«äžŠã¶å¿ èŠãç¡ãããšã§ãã誰ãã®æç¥šã黿¢ããã®ã¯ãããªãé£ããã§ãããïŒ åºç€ãšãªãæè¡ã«ã¯ãæŠãéçã«ããªã£ãŠããŠãããã§äœãåé¡ããããšããã°ãããã§ãããä»ã¯çŽã§æ¬åœã«çŽ æŽãããç£æ»èšŒè·¡ãããããããæ©èœããŠããããšã§ã
ç£æ»ãå°é£ãªãã®ã«æ°äž»äž»çŸ©ã®äž»å°æš©ãæž¡ããããªããã§ããããããåºãŠãããã¯ãããžãŒã¯ãé éæè¡ãèªåé転è»ãåæ£åæ©æ¢°åŠç¿ãªã©ããšããžãªãã®ã°ããã§ãããïŒ ãœãããŠã§ã¢ãå人ããŒã¿ãèªå·±äž»æš©çãªã¢ã€ãã³ãã£ãã£ãªã©ããããããã®ã¯ãã¹ãŠãå°èŠæš¡ãªã¢ããªã±ãŒã·ã§ã³ã§å®èšŒãããæåããåŸã«æé·ããªããã°ãªããŸããããããå°èŠæš¡ã§äžæããããªãã®ã§ããã°ãåºæ¬çã«çãæ®ãããšã¯ã§ããªããããã®æè¡ã¯ãã®åéã«ã¯åããŠããããä»ã®çšéãããããç¥ããŸãã
é éæè¡ã«ã€ããŠã§ããã1ã€ã¯ã誰ãããã®ç¹å®ã®ã±ãŒã¹ã«èå³ãæã€ããšã ãšæããŸããå°ãªããšãäžåºŠã人éã®æ£è ããã§å®éã«äžåœã§è¡ãããããšãããã®ã§ãããå€ç§å»ã¯å¥ã®éœåžã«ããŸãããå©ç¹ã¯ãæããã«ãå€ãã®å€ç§å»ãèšç·Žããå¿ èŠãç¡ãããšããããŠãå€ç§å»ãããŠããé£è¡æ©ã§ç§»åããããæ£è ãåŒã³å¯ãããããå¿ èŠãç¡ãããšã§ãããïŒ é éå°ã®äœæ°ããããããã®ã«ãµãŒãã¹ãæäŸãããšãã§ããŸããããã¯çŽ æŽãããããšã§ã
圌ãã¯5Gãããã¯ãŒã¯ã§ãããå®çŸããŸãããå ãã¡ã€ããŒã±ãŒãã«ãéã£ãŠã¹ããŒã·ã§ã³ãžè¡ããäžç©ºãžè¡ããæ»ã£ãŠããŸããããªãçŽç·çã§ãããïŒ å°äžã®ãã¡ã€ããŒããã£ããéãããã§ã¯ãªããéåžžã«çŽç·çãªå°ç·ã§ãé å»¶ã¯20 msecãããã以äžã ã£ããšæããŸããããªãé«éã§ãåå¿ãè¯ãã1ã€ã®è©Šéšã±ãŒã¹ã§æåããŸããããã®ããã«åãææã§ã¯ãããŸãããããªãåæã®æ®µéã§ãããç¹ã«ãã«ã¹ã±ã¢ã®ãããªåéã§ã¯ããšãŠãæ éã«æ±ãå¿ èŠããããŸã
AHïŒã¡ãã£ãšDanã«ä»£ãã£ãŠãããåã«ãæè¡ã®çš®é¡ããåç¥ã§ããïŒ
BZïŒèŠããŠããŸããã圌ãã¯ééããªããæåéããå°ããªè³å€ç§æè¡ãè¡ã£ãŠããŸãããããä»èª¬æããäžåœã§ã®æè¡ã ã£ããã©ãããæãåºãããšããŠãããã§ãããŸãã婿²è¡šçŸã§ãããåç©ã¢ãã«ïŒè𳿳šïŒããã®çŸæ£ãšåããããã¯äŒŒãçŸæ£ããã€åç©ïŒã§ãè¡ãããããšãããããã§ãã人éã®å Žåã¯ãè³ã®æè¡ã ã£ããšæãã®ã§ãããããäžåºŠç¢ºèªããå¿ èŠããããŸã
DIïŒããã¯ãªã¹ããŒã®çãããžã®èª²é¡ãšããŠæ®ããŠãããŸãããããCrazy Remote Brain Surgeryãã§èª¿ã¹ãŠã¿ãŠãã ãã
ïŒè𳿳šïŒäžèšURLãäžèšã§èª²é¡ãšãããŠããäºäŸã ãšæããŸãïŒ
Haskellã«ã€ããŠæããããš
DI: So to bring back to some maybe some language specifics, we're curious about Haskell. I think those who know Haskell, seem to love Haskell. Those who don't know, Haskell maybe love the idea of Haskell. How do you feel about Haskell?
BZ: I really like Haskell. I mean, I wrote the Witchcraft suite of libraries in Elixir, which is essentially porting a lot of the ideas from Haskell into Elixir. Our CLI Tool and back-end at Fission are written in Haskell. I'm a fan and I think it has a bit of an aura around it of like, I know, scary monad thing, right? Yeah. There's no way around it. There's a learning curve, that's not actually that different from rust. I've been picking up rust more and more recently. They feel actually shockingly similar as languages. Things that I like about Haskell are it's obviously very, very functional. It has the best concurrency story that I've seen in any language, just blows everything else out of the water. The type system makes it very easy to prototype in and think about things in both small chunks, but also in the large.
So doing refactors, for example, is essentially a non-issue. The type system will lead you around and in the same way that if anybody's had experience with Elm and it can be very helpful in suggesting. This is broken over here, that's broken over there, that's very helpful. There's an old adage about a language that if it compiles, it just works, and that has been my experience, right. Especially very, very early on, when it was just me or me and one other person, it was the secret weapon to stay really just super productive when you're doing a lot of heavy lifting code.
Then all the other stuff that comes nicely with functional programming, right. You get this really nice clear separation of concerns, the type system also makes it very easy to track that separation and how you can then take these separate pieces and snap them back together again. Yeah. But again, it does have this learning curve. The learning resources are getting a lot better. I've had to train a couple people as they've started at Fission, who didn't have the previous background, and they've been successful with it, because the main problem is, historically that there weren't any good books or there was nobody really to ask. That's much easier when you have a guide or nowadays a lot more learning resources online.
DIïŒããŠãèšèªã«é¢ããè©±ã«æ»ããŸãããç§éã¯Haskellã«èå³ãæã£ãŠããŸããHaskellãç¥ã£ãŠãã人ã¯ãHaskellã奜ããªããã§ãããHaskellãç¥ããªã人ã¯ããã¶ãHaskellã®ã¢ã€ãã¢ã奜ããªãã ãšæããŸããHaskellã«ã€ããŠã©ãæããŸããïŒ
BZïŒç§ã¯Haskellãæ¬åœã«å¥œãã§ããç§ãæžãããWitchcraftããšããã©ã€ãã©ãªçŸ€ã¯Elixirã§æžããã®ã§ãããããã¯æ¬è³ªçã«Haskellã®ã¢ã€ãã¢ã®å€ããElixirã«ç§»æ€ãããã®ãªãã§ããFission ã®CLIããŒã«ãããã¯ãšã³ãã¯Haskellã§æžãããŠããŸããç§ã¯Haskellã®ãã¡ã³ãªãã§ãããHaskellã«ã¯ãæãã¢ãããã¿ãããªãªãŒã©ããããããªãã§ããïŒ ãããåé¿ããæ¹æ³ã¯ãããŸãããåŠç¿æ²ç·ãšããŠã¯ãRustãšããã»ã©å€ãããŸãããç§ã¯æè¿ãRustãæã«åãããšãå€ããªã£ãŠããŸããèšèªãšããŠã¯ã·ã§ããã³ã°ãªã»ã©äŒŒãŠããããã«æããŸããHaskellã®å¥œããªãšããã¯ãæããã«ãšãŠãæ©èœçãªãšããã§ããHaskellã¯ãç§ããããŸã§èŠãã©ã®èšèªãããåªããåæäžŠè¡æ§ãæã£ãŠããŠãä»ã®å šãŠãå§åããŠããŸããåã·ã¹ãã ã®ãããã§ããããã¿ã€ããäœæããã®ããšãŠãç°¡åã§ãå°ããªå¡ã§ãã倧ããªå¡ã§ããã©ããšã§ããªããŸã
ãã®ãããããšãã°ãªãã¡ã¯ã¿ãªã³ã°ãè¡ãããšã¯åºæ¬çã«åé¡ã§ã¯ãããŸãããåã·ã¹ãã ãå°ããŠãããŸãããElmã䜿ã£ãããšãããæ¹ã¯ãåç¥ã®ããã«ã³ãŒããµãžã§ã¹ãã§ã³ã«ãšãŠã圹ç«ã¡ãŸãããããå£ããŠãããããããå£ããŠãããªã©ãéåžžã«åèã«ãªããŸããèšèªã«ã€ããŠã®å€ãæ Œèšã«ããã³ã³ãã€ã«ãéãã°åãããšãããã®ããããŸãããç§ã®çµéšãããã§ããããç¹ã«ãããåæã®ãããç§ãšããäžäººããããªãã£ãé ã¯ãéãã³ãŒããããããæžããŠãããšãã«ãåãçç£çãªç¶æ ãç¶æããããã®ç§å¯å µåšã ã£ããã§ã
ãã®ä»ã«ãã颿°åããã°ã©ãã³ã°ã«ä»éããããŸããŸãªãã®ããããŸãããæžå¿µäºé ãæç¢ºã«åé¢ããåã·ã¹ãã ã«ãã£ãŠãã®åé¢ã远跡ããã®ãéåžžã«ç°¡åã§ãåé¢ãããéšåãã©ã®ããã«åãåºããŠåã³çµåããããããšããããšãå¯èœã§ãããã ããã¯ãåŠç¿æ²ç·ããããŸããåŠç¿ãªãœãŒã¹ã¯ããªãæ¹åããŠããŠããŸããFissionã§åãå§ãããšãããããŸã§ã®çµæŽãæããªã人ãã¡ããã¬ãŒãã³ã°ããªããã°ãªããŸããã§ãããã圌ãã¯äžæããã£ãŠããŸããäž»ãªåé¡ã¯ãæŽå²çã«è¯ãæ¬ãç¡ãã£ãããæ¬åœã«èãã人ãããªãã£ããããããšã§ãããããããã¬ã€ãããã¯ãããã°ããŸããæè¿ã§ã¯ãªã³ã©ã€ã³ã§åŠç¿ã§ãããªãœãŒã¹ãããããããã®ã§ãã£ãšç°¡åã§ã
ïŒè𳿳šïŒäžèšURLã¯äžèšã§ç޹ä»ãããŠããWitchcraftã®ç޹ä»ãããŠããç»å£è³æããŒãžã§ãïŒ
https://www.elixir.london/Elixir-LDN-2017/brooklyn-zelenka

Elixirã³ãã¥ããã£ãšåæ£ã·ã¹ãã ãWebAssembly
DI: So the theme for this season is the Impact of Elixir. So as you're working in Haskell or TypeScript for your browser based work, how do you see Elixir influencing what you're doing or is there a place for Elixir in your tech stack currently?
BZ: Yeah. Definitely on the backhand side of things, essentially everyone at Fission, I'm not sure if almost everyone at Fission, when I think about it, has some Elixir background. Again, the distributed systems side of things, there's so many people who are already thinking about, how this works? Thinking about the problems in the right way, realizing that the locality of your data matters and that freeing it from that is very important, and how to keep your data stateless and passed around, right?
One of the things I hope came across in the keynote in Austin, was that, because this community has the experience with distributed systems, that is an excellent fit both the existing packages and the experience that we have. And the way that Elixir makes you think about problems is a really, really nice fit for this area. There's definitely some things that would have made it easier for us to adopt for what we're doing at Fission. So, I know that there's some efforts to having a WebAssembly back end for Elixir.
Doesn't exist yet in a really production form and that might require some changes to Elixir the Language, right? We'll see how that evolves. But there's really nothing putting on my programming straight hat, right? There's really nothing that says that you can't do that, you might lose some of the fault tolerance guarantees, because you're no longer running inside of a single VM. I think, WebAssembly is going to be extremely important in the next five years at minimum, and that, things like that will really, really help with that adoption for those use cases, which is not just WebAssembly, the old saying about this is, is neither web nor assembly, so people are running it on servers, they're running on desktops, right? It's just everywhere and so that would really, really help.
Especially, because the actor model in the way that it looks or thinks is a really nice fit for the web, because the web is a distributed system, Right? Years ago, I used to teach Elixir, like corporate classes for teams that were hoping to adopt it, right. I would often use the analogy of, it's like having each of your processes its own REST server, right? It's now extended to absolutely everything in your language. Thinking about things in that granular way, is super, super helpful when doing things with distributed systems or especially edge in particular.
DI: Yeah.
DIïŒãããããä»ã·ãŒãºã³ã®ããŒãã¯ãElixirã®è¡æãã§ããHaskellãTypeScriptã§ãã©ãŠã¶ããŒã¹ã®ä»äºãããŠããçããã¯ãElixirãèªåã®ä»äºã«ã©ã®ãããªåœ±é¿ãåãŒããŠããã§ããããïŒãŸããçŸåšã®æè¡ã¹ã¿ãã¯ã«Elixirã®å± å Žæã¯ãããŸããïŒ
BZïŒããã§ãããFissionã®ç€Ÿå¡ã¯å šå¡ããããã»ãŒå šå¡ãElixirã®ããã¯ã°ã©ãŠã³ããæã£ãŠããŸããç¹°ãè¿ãã«ãªããŸããã忣ã·ã¹ãã ã®åéã§ã¯ããã§ã«å€ãã®äººããããã¯ã©ãåãã®ãããšããããšãèããŠããŠãããŒã¿ã®å±ææ§ãéèŠã§ãããããè§£æŸããããšãéåžžã«éèŠã§ããããšãèªèããããŒã¿ãã¹ããŒãã¬ã¹ã«ä¿ã¡ãåãæž¡ãã ⊠ãšãã£ãåé¡ãæ£ããæ¹æ³ã§èããŠããŸãããïŒ
ãªãŒã¹ãã£ã³ã®åºèª¿è¬æŒã§ç§ãæããããšã®1ã€ã¯ããã®ã³ãã¥ããã£ã¯åæ£ã·ã¹ãã ã®çµéšãæã£ãŠããã®ã§ãæ¢åã®ããã±ãŒãžãšç§ãã¡ã®çµéšã®äž¡æ¹ãèŠäºã«åèŽããŠãããšããããšã§ãããŸããElixirã®åé¡è§£æ±ºã®ææ³ã¯ããã®åéã«ãšãŠããããããããŠããŸããFissionã§ãã£ãŠããããšã«ã¯ããã£ãšç°¡åã«å°å ¥ã§ãããã®ãããã¯ãã§ãããããElixirã®ããã¯ãšã³ãã«WebAssemblyã䜿ãããšããåããããã®ã¯ç¥ã£ãŠããŸã
ãŸã æ¬åœã«çç£çãªåœ¢ã§ã¯ååšããªãã®ã§ãèšèªã§ããElixirã倿Žããå¿ èŠããããããããŸãããïŒ ãããã©ããªããã¯ããããã§ããã§ããããã°ã©ãã³ã°ã®çŽ é€ã身ã«ä»ããããšã¯ã§ããªããã§ããããã§ããã§ããªãããšããããšã¯ç¡ããã§ããåäžã®VMå ã§å®è¡ããªããªã£ãã®ã§ããã©ãŒã«ããã¬ã©ã³ã¹ã®ä¿èšŒãç¡ããªããããããŸãããWebAssemblyã¯ãå°ãªããšãä»åŸ5幎éã¯ãéåžžã«éèŠã«ãªããšæããŸããããã®ãããªãŠãŒã¹ã±ãŒã¹ãžã®æ¡çšã¯ãWebAssemblyã ãã§ãªãæããèšãããŠããããã«Webã§ãã¢ã»ã³ããªã§ãç¡ãã人ã ã¯ãµãŒãã§ããã¹ã¯ãããã§ãå®è¡ããŸãããïŒ ã ããããµãŒãã§ããã¹ã¯ãããã§ãããããããšããã§å®è¡ãããŠããŸã
ç¹ã«ãã¢ã¯ã¿ãŒã¢ãã«ã®èŠãç®ãèãæ¹ã¯ãWebã«ãšãŠãé©ããŠããŸããWebã¯åæ£ã·ã¹ãã ã§ãããããæ°å¹Žåãç§ã¯Elixirãæ¡çšããããšããŠããããŒã ã«å¯ŸããŠãäŒæ¥åãç ä¿®ã®ãããªåœ¢ã§æããŠããããšããããŸããããã®ãšãã«ãã䜿ã£ãã®ãããåããã»ã¹ã«å°çšã®RESTãµãŒããæããããããªãã®ããšããäŸãã§ãããããä»ãèšèªå ã®ãããããã®ã«æ¡åŒµãããŠããŸãããã®ããã«ç²åºŠã®çްããèŠç¹ã§ç©äºãèããããšã¯ã忣ã·ã¹ãã ãç¹ã«ãšããžãæ±ãéã«ãšãŠã圹ã«ç«ã¡ãŸã
DIïŒãªãã»ã©
- Translator's impression : èš³è ã®ææ³ -
(English version)
Tele-surgery, self-driving cars, distributed machine learning, etc. are already running on the edge-centered ...
Brooklyn Zelenka warns us that we're on the verge of a world that will soon become uncontrollable if we don't demonstrate it in small-scale applications.
I feel that this is a warning against habituation, a very important caveat that is often overlooked in favor of convenience.
The case of China, where brain surgery was performed remotely through a 5G network, shows the potential for high-tech convenience and low latency to transform work and life in a way that we cannot experience in Japan, but at the same time, I think it is important to take a cautious stance from an ethical perspective as mentioned above.
In particular, we may be too defenseless against a situation where the market capitalization of a company exceeds the national budget of a country, something that happened in science fiction a long time ago.
We also learned about the interface between Elixir and Haskell, Rust, the type system, WebAssembly as a backend for Elixir, and many other fun things for programmers!
By the way, the next article with more programming languages will be release on February 16
PS: I'm talking about Elixir and Haskell at the Functional Programming Conference in Japan 2020, if you'd like to check it out below!
ïŒæ¥æ¬èªããŒãžã§ã³ïŒ
é éæè¡ãèªåé転è»ãåæ£åæ©æ¢°åŠç¿ãªã©ãããã§ã«ãšããžäžå¿ã§åããŠãã âŠ
æ°ä»ãã°ããããäžã®äžã«ãªã£ãŠããŠãã§ããã®ã¹ã¿ãŒãå°ç¹ã¯ãå°èŠæš¡ãªã¢ããªã±ãŒã·ã§ã³ã§å°éãªå®èšŒãããªããã°ãããã¢ã³ã³ã³ãããŒã©ãã«ã«é¥ãç¹ã«Brooklyn Zelenkaã¯èŠéã鳎ãããŠããŸã
ããã¯ã人ã®ãæ £ããã«å¯Ÿããæãã§ããããã€ã䟿å©ã ãšèŠéãããŠããŸããéåžžã«éèŠãªæ³šæç¹ã ãšæããŸã
5Gãããã¯ãŒã¯ãéããŠãè³å€ç§æè¡ãé éã§è¡ããããšããäžåœã®äºäŸã¯ãæ¥æ¬ã§ã¯äœæã§ããªããããªããã€ãã¯ã«ããå©äŸ¿æ§ã®ç¢ºç«ãäœã¬ã€ãã³ã·ãããããä»äºãçæŽ»ãå€è²ãããå¯èœæ§ãšåæã«ãäžèšãããããªå«ççãªèгç¹ãšæ éãªã¹ã¿ã³ã¹ã倧äºã«ãªã£ãŠãããšæããŸãã
ç¹ã«ã1äŒæ¥ã®æäŸ¡ç·é¡ãäžåœã®åœå®¶äºç®ãè¶ ããŠãããããªãäžæåã®SFã®ãããªåºæ¥äºããç®ã®åã§èµ·ããŠããç¶æ³ã«å¯Ÿããç§éã¯ãããŸãã«ç¡é²åãªã®ããç¥ããŸãã
ãããŠãElixirãšHaskellã®æ¥ç¹ããRustã®ããšãåã·ã¹ãã ãElixirã®ããã¯ãšã³ããšããŠã®WebAssemblyçãããã°ã©ãã«ã¯æ¥œããå 容ããããããåºãŠããŸããã
ã¡ãªã¿ã«ããã£ãšããã°ã©ãã³ã°èšèªãé£ã³äº€ã次åã³ã©ã ã¯ã2/16ã«å
¬éã§ã ![]()
p.s.ç§ãElixirãšHaskellã«ã€ããŠç»å£ããã¹ã©ã€ããããã®ã§ãè¯ããã°ã芧ãã ãã
ãã®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ã³ãã¥ããã£ã®ã玹ä»
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.ãã®ã³ã©ã ããé¢çœãã£ããã圹ã«ç«ã£ããâŠ
ã
ã«ãŠãã©ããå¿æŽãããããé¡ãããŸã:bow