Comments (4)
-
"cmd \x00\x00\x00\x00".replace("\x00"," ")[:-1]
looks the same as"cmd"
. Trim won't place a big burden on performance. - Fixed.
from swapview-rosetta.
I'm not concerning about performance. It's different things and vimdiff knows that. Also, trimming is often easier to do that chopping only one character that may be there. It's nice to see how different languages handle that case.
from swapview-rosetta.
- Replace trim with strinit
开始就是因为Racket substring 不支持负数所以懒得做的 -_-!
不过如果用vimdiff还会有些小问题,Racket的flonum太麻烦了,而默认的除法是exact number,所以精度上会有些差别,最后更要命的是 format默认是四舍五入,
(~r 1.06 #:precision '(= 1))
是"1.1"
……
from swapview-rosetta.
哦。精度上的小问题暂时就算了,反正因为不稳定排序已经不可能让所有版本输出完全一致了。
from swapview-rosetta.
Related Issues (20)
- Swift version?
- ChezScheme version? HOT 1
- About the project HOT 1
- Julia: need update HOT 1
- different implementation and output for size
- [bug] Go_goroutine 版本 goroutine 同步问题 HOT 1
- Nim: cmdline for Google Chrome is truncated one character at the end
- Inaccurate results for size
- chop last null byte HOT 4
- Lua51: file reading stops at null byte?
- 不知道J语言能不能实现这个? HOT 1
- sort.Slice(slist, func(i, j int) HOT 1
- 依云姐姐更新下结果表呗?一年过去了 HOT 1
- c++17: need parallel <execution> example HOT 1
- Stable releases? HOT 3
- Racket:The string-starts-with? procedure is not necessary. HOT 2
- How to set environment variables in the TOML file? HOT 2
- Bash: exit on error (-e) HOT 1
- Parallel D swapview HOT 1
- try Rubinius
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swapview-rosetta.