jslinux

54 views
Skip to first unread message

Bill Liao

unread,
May 17, 2011, 5:40:48 AM5/17/11
to sh...@googlegroups.com
好像还没人发吧?
http://bellard.org/jslinux/
Fabrice Bellard确实属于神级。

regards
wliao

ghosTM55

unread,
May 17, 2011, 5:52:51 AM5/17/11
to sh...@googlegroups.com
On Tue, May 17, 2011 at 5:40 PM, Bill Liao <lwlw...@gmail.com> wrote:
> 好像还没人发吧?
> http://bellard.org/jslinux/
> Fabrice Bellard确实属于神级。

太牛X了...

--
Thomas
Shanghai Linux User Group

http://ghosTunix.org
Twitter: @ghosTM55

朱之灏

unread,
May 17, 2011, 6:01:30 AM5/17/11
to sh...@googlegroups.com
o_O  神啊

2011/5/17 ghosTM55 <ghost...@gmail.com>

胡瀚森

unread,
May 17, 2011, 6:06:29 AM5/17/11
to sh...@googlegroups.com
做一个JS版的GCC吧 …… XD
把C程序编译成JS。

2011/5/17 ghosTM55 <ghost...@gmail.com>:

Ming Lei

unread,
May 17, 2011, 6:10:36 AM5/17/11
to sh...@googlegroups.com
感觉不算非常难吧,至少现在已经有uml了

2011/5/17 Bill Liao <lwlw...@gmail.com>:

--
Ming Lei

Kermit

unread,
May 17, 2011, 6:11:06 AM5/17/11
to sh...@googlegroups.com
On Tue, 2011-05-17 at 17:52 +0800, ghosTM55 wrote:
> On Tue, May 17, 2011 at 5:40 PM, Bill Liao <lwlw...@gmail.com> wrote:
> > 好像还没人发吧?
> > http://bellard.org/jslinux/
> > Fabrice Bellard确实属于神级。
>
> 太牛X了...

这个想法几年前我们还在一个学校时同学提出来过,方便新同学接触Linux环境,
后来没人实现,可能当时有点儿难度吧。

我有个问题没看懂,我刚才看了它的页面源代码,这个功能是在怎么实现的,我怎
么一点儿都看不出来呢?

<html>
<head>
<title>Javascript PC Emulator</title>
<style>
.term {
font-family: courier,fixed,swiss,sans-serif;
font-size: 14px;
color: #f0f0f0;
background: #000000;
}

.termReverse {
color: #000000;
background: #00ff00;
}
#note {
font-size: 12px;
}
#copyright {
font-size: 10px;
}

</style>
</head>
<body onload="start()">
<script src="term.js"></script>
<script src="cpux86.js"></script>
<div id="copyright">&copy; 2011 Fabrice Bellard - <a
href="tech.html">Technical notes</a></div>
</body>

</html>

那个好心人给我标识一下,那几据是关键代码? 核心原理是什么?
term.js和cpux86.js从哪里可以看到?


B.R
Kermit

stephen leung

unread,
May 17, 2011, 6:14:20 AM5/17/11
to sh...@googlegroups.com
OMG. 这个太让震撼了

朱之灏

unread,
May 17, 2011, 6:16:18 AM5/17/11
to sh...@googlegroups.com

底下有个链接点进去有说明,不过还没怎么看懂。。。

Shell Xu

unread,
May 17, 2011, 6:16:09 AM5/17/11
to sh...@googlegroups.com
是不是这个意思?
http://shell909090.com/

2011/5/17 Bill Liao <lwlw...@gmail.com>



--
无能者无所求,饱食而遨游,泛若不系之舟
blog: http://shell909090.com/blog/
twitter: http://twitter.com/shell909090

Bachue

unread,
May 17, 2011, 6:16:29 AM5/17/11
to sh...@googlegroups.com
试图打&符号,好像变成双引号呢

2011/5/17 Ming Lei <tom.l...@gmail.com>

Kermit

unread,
May 17, 2011, 6:17:16 AM5/17/11
to sh...@googlegroups.com

看到了:
http://bellard.org/jslinux/cpux86.js
不过完全看不懂……

>
> B.R
> Kermit


stephen leung

unread,
May 17, 2011, 6:17:41 AM5/17/11
to sh...@googlegroups.com
这个你直接wget http://bellard.org/jslinux/term.js 下来看看就知道了。

Kermit

unread,
May 17, 2011, 6:25:22 AM5/17/11
to sh...@googlegroups.com, SHLUG
On Tue, 2011-05-17 at 18:16 +0800, Shell Xu wrote:
> 是不是这个意思?
> http://shell909090.com/

你这个是不是只有自我介绍能用?

和那个jslinux实现是一个原理吗?

从此我对Js刮目相看!

Bill Liao

unread,
May 17, 2011, 6:46:56 AM5/17/11
to sh...@googlegroups.com
bellard写过qemu也就是一个CPU 的emulator
这里他应该是用JS 实现emulator吧
另外下载了三个*.bin的文件作为启动镜像。
regards

wliao


2011/5/17 Kermit <kermi...@gmail.com>:

小马xiaoma

unread,
May 17, 2011, 8:13:39 AM5/17/11
to sh...@googlegroups.com
太牛了,如果上面能跑X,就是WebOS了。

Shell Xu

unread,
May 17, 2011, 8:14:10 AM5/17/11
to sh...@googlegroups.com
用js当作emulator?
那就不是同一个原理了。
也难怪在我的浏览器上跑不过去,我那里的沙盒被做过手脚的。

在 2011年5月17日 下午6:46,Bill Liao <lwlw...@gmail.com>写道:

Peng Liang

unread,
May 17, 2011, 8:18:18 AM5/17/11
to sh...@googlegroups.com
JS 有这么彪悍了么...

Shell Xu

unread,
May 17, 2011, 8:20:24 AM5/17/11
to sh...@googlegroups.com
如果你不计较性能——是的,这东西图灵完备。

在 2011年5月17日 下午8:18,Peng Liang <pengli...@gmail.com>写道:
JS 有这么彪悍了么...

zergmk2

unread,
May 17, 2011, 6:00:15 AM5/17/11
to sh...@googlegroups.com
这....太牛了   算webOS了吧?

胡瀚森

unread,
May 17, 2011, 10:04:40 AM5/17/11
to sh...@googlegroups.com
我惊喜地发现还有clear命令可以用......

2011/5/17 Kermit <kermi...@gmail.com>:

文剑

unread,
May 17, 2011, 10:22:14 AM5/17/11
to sh...@googlegroups.com
强大
还有vi呢
用他的TCC编译出来就是了
--
Best,

文剑

V V

unread,
May 17, 2011, 10:10:52 AM5/17/11
to sh...@googlegroups.com
我用less时发现屏幕有些部分没有刷新了,anyway it's very COOL!

在 2011年5月17日 下午10:04,胡瀚森 <softrank.net@gmail.com>写道:



--
@GaloisPlusPlus

V V

unread,
May 17, 2011, 10:13:20 AM5/17/11
to sh...@googlegroups.com
我惊喜的是有emacs

在 2011年5月17日 下午10:04,胡瀚森 <softrank.net@gmail.com>写道:



--
@GaloisPlusPlus

小马xiaoma

unread,
May 17, 2011, 11:26:15 AM5/17/11
to sh...@googlegroups.com
我惊喜的是有tcc , 可惜没有网络,否则理论上可以下载很多东西在上面跑,甚至在上面架一个网站。

在 2011年5月17日 下午10:13,V V <ysz...@gmail.com> 写道:
> 我惊喜的是有emacs
>

李俊

unread,
May 17, 2011, 11:47:03 AM5/17/11
to sh...@googlegroups.com
太牛掰了。。主要的存儲依靠數組就做成這樣了(大開眼界+作為前端偶很汗顏),如果用到html5裡的indexDB,Localstorage,appcache等本地化存儲,然後用node.js做websocket服務,不知道要強大到哪裡去啊 =,=


在 2011年5月17日 下午11:26,小马xiaoma <cnxi...@gmail.com>写道:
我惊喜的是有tcc , 可惜没有网络,否则理论上可以下载很多东西在上面跑,甚至在上面架一个网站。

在 2011年5月17日 下午10:13,V V <ysz...@gmail.com> 写道:
> 我惊喜的是有emacs
Reply all
Reply to author
Forward
0 new messages