-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更多需要行的优化 #55
Comments
等有时间我就试试写一个按行搜索的工具…… 或者试试能不能把qfind之类的改成网页版……但我看不懂C++…… |
@AlephAlpha 按行搜索就不像 rlifesrc 这样可以自由定义搜索了。 你可以在假设细胞的过程中,把它在所有gen的状态记录下来——除非它是定子(定子统一为[0, 0, 0... 0]。)然后换一行的时候就散列表比对。 |
|
WebAssembly。 不过 Rust 编译成 WebAssembly 比较方便,有全套的工具。借助 wasm-bindgen、Yew 这样的工具,我不用写 JavaScript 就能在网页上调用 WebAssembly,甚至网页本身也可以用 Rust 来写。 至于 C++……我不懂 C++…… 看了一下,好像 C/C++ 那边也有自己的工具,叫做 Emscripten。这里有个教程。这周末我试一试。 |
所以还是让我来重新写一个吧。(
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年4月16日(星期五) 晚上10:04
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [AlephAlpha/rlifesrc] 更多需要行的优化 (#55)
果然直接用 Emscripten 编译 qfind 是不行的……
更气人的是,报的错就一个 Failed,什么有意义的信息都没有……
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
慢也没事,总比把同一个分支运行很多次好很多。(当然应该做成可选的。)
每搜一行就在散列表中查询它的转子,如果没有就继续搜索并把它的转子记录到散列表中,如果有就回溯。
@AlephAlpha
The text was updated successfully, but these errors were encountered: