{"id":94909,"date":"2022-02-11T11:35:22","date_gmt":"2022-02-11T02:35:22","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=94909"},"modified":"2022-02-11T11:35:22","modified_gmt":"2022-02-11T02:35:22","slug":"webvm","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/webvm\/","title":{"rendered":"WebVM - \u30d6\u30e9\u30a6\u30b6\u3067Linux\u304c\u9ad8\u901f\u52d5\u4f5c\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306ex86\u4eee\u60f3\u30de\u30b7\u30f3"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/02\/s_20220211_111750.jpg\" alt=\"S 20220211 111750\" title=\"s_20220211_111750.jpg\" border=\"0\" width=\"1219\" height=\"916\" \/><\/p>\n<p>Leaning Technologies\u306f2\u67081\u65e5\u3001Web\u30d6\u30e9\u30a6\u30b6\u5185\u3067x86\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u300c<a href=\"https:\/\/webvm.io\/\">WebVM<\/a>\u300d\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>WebAssembly\u4eee\u60f3\u5316\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308bCheerpX\u306b\u3088\u3063\u3066\u5b9f\u73fe\u3055\u308c\u3066\u304a\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u5185\u3067<br \/>\nLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u300cDebian\u300d\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u5b9f\u884c\u3067\u304d\u308b\u30b5\u30fc\u30d0\u30ec\u30b9\u306a\u4eee\u60f3Linux \u74b0\u5883\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>CheerpX\u306f\u3001C++\u3067\u66f8\u304b\u308c\u305fx86\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u3001Cheerp\u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u4f7f\u7528\u3057C++\u3092JavaScript\u3068WebAssembly\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002CheerpX\u306f3\u5e74\u4ee5\u4e0a\u524d\u304b\u3089\u958b\u767a\u3055\u308c\u3066\u304a\u308a\u3001\u30ec\u30ac\u30b7\u30fc\u306aAdobe Flash\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>WebVM\u306f\u3001\u5b9f\u884c\u30a8\u30f3\u30b8\u30f3\u3068\u3057\u3066CheerpX\u3092\u4f7f\u7528\u3057\u3001Xterm.js\u3092\u30e1\u30a4\u30f3\u306eUI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002CDN\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308bDebian buster\u306e\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u304cCDN\u304b\u3089\u540c\u3058\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u500b\u3005\u306e\u5909\u66f4\u5185\u5bb9\u306f\u30d6\u30e9\u30a6\u30b6\u306b\u30ed\u30fc\u30ab\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u308b\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u4f8b\u3048\u3070Python\u3084gcc\u3001Vim\u3068\u3044\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\n# Run a short python program\npython3 examples\/python3\/fibonacci.py\n# Compile a small C example using gcc\ngcc -o helloworld examples\/c\/helloworld.c\n# Run it!\n.\/helloworld\n# Dump the code, to verify this is actually an x86 binary\nobjdump -d .\/helloworld\n# Edit the helloworld.c file, and try again\nvim examples\/c\/helloworld.c\n<\/pre>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/02\/s_20220211_111817.jpg\" alt=\"S 20220211 111817\" title=\"s_20220211_111817.jpg\" border=\"0\" width=\"1205\" height=\"926\" \/><\/p>\n<p>\u25b2Python\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u8868\u793a\u30d7\u30ed\u30b0\u30e9\u30e0\u3002<\/p>\n<p>WebVM\u306f\u4eca\u5f8c\u3082\u958b\u767a\u304c\u7d99\u7d9a\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3001HTTP\u30b5\u30fc\u30d0\u30fc\u3084\u3001Linux\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30a2\u30d7\u30ea\u3001Windows\u30a2\u30d7\u30ea\u3084\u30b2\u30fc\u30e0\u3078\u306e\u5bfe\u5fdc\u304c\u4e88\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=30167403\">Hacker News<\/a>\u3067\u306f\u3001<a href=\"https:\/\/copy.sh\/v86\/\">https:\/\/copy.sh\/v86\/<\/a>\u3068\u6bd4\u8f03\u3057\u3001WebVM\u304c\u304b\u306a\u308a\u9ad8\u901f\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u306b\u6ce8\u76ee\u304c\u96c6\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u306e\u30c6\u30b9\u30c8\u3067\u306f\u3001WebVM\u306f\u30cd\u30a4\u30c6\u30a3\u30d6\u306e6.7\u500d\u306e\u6642\u9593\u3067\u5b9f\u884c\u3067\u304d\u3001\u3053\u308c\u306fcopy.sh\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u6bd444\u500d\u3068\u304f\u3089\u3089\u3079\u308b\u3068\u304b\u306a\u308a\u9ad8\u901f\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Leaning Technologies\u306f2\u67081\u65e5\u3001Web\u30d6\u30e9\u30a6\u30b6\u5185\u3067x86\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u300cWebVM\u300d\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002 WebAssembly\u4eee\u60f3\u5316\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308bCheerpX\u306b\u3088\u3063\u3066\u5b9f\u73fe\u3055\u308c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":94910,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[1949,1636],"class_list":["post-94909","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-vm","tag-x86"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/94909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=94909"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/94909\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/94910"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=94909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=94909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=94909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}