Code Monkey home page Code Monkey logo

Comments (4)

CJex avatar CJex commented on May 26, 2024
  • "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.

lilydjwg avatar lilydjwg commented on May 26, 2024

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.

CJex avatar CJex commented on May 26, 2024
  • Replace trim with strinit

开始就是因为Racket substring 不支持负数所以懒得做的 -_-!

不过如果用vimdiff还会有些小问题,Racket的flonum太麻烦了,而默认的除法是exact number,所以精度上会有些差别,最后更要命的是 format默认是四舍五入,
(~r 1.06 #:precision '(= 1))"1.1"……

from swapview-rosetta.

lilydjwg avatar lilydjwg commented on May 26, 2024

哦。精度上的小问题暂时就算了,反正因为不稳定排序已经不可能让所有版本输出完全一致了。

from swapview-rosetta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.