Giter Site home page Giter Site logo

georgiy-pruss / nimmirror Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 63.05 MB

My own mirror of main Nim Repository. 2017/12/28 17:56

License: Other

Batchfile 0.03% Shell 0.02% Nim 79.98% Assembly 0.14% C 17.72% C++ 0.45% Python 0.01% HTML 1.22% CSS 0.31% Makefile 0.01% Prolog 0.12% JavaScript 0.01%

nimmirror's Introduction

Here's my own copy of the main Nim repository. See original at https://github.com/nim-lang/Nim

  • Fixed: main module name can start with a digit. Proabably also with underscore, but that needs test.

Some notes...

  • No % and // ops, only mod and div. Aha, there's %%. Where then //? (Aha, rationals. Never-used :) Can define own div)
  • Other ops... we'll see. Documentation on expressions is absent, or split over different parts.
  • Parameters are const. WTF! I have to create a mutual copy not only for complex data, but even for ints! Yes, this feature sucks but I see the idea and not clear how to fix it. Also weird: variables -- var i: int, arguments -- i: var int.
  • discard is disgusting. Why not skip?
  • incl for sets must be add (as well). OK, can have alias.. probably.
  • No loop/forever, again stupid while true. GSD it's not True. Ok, can be defined with template.
  • Probably must be reverse: @[...] <--> [...]. Aha, @ is op. Interesting. But still not sure if wise.
  • const A=1,B=2,C=3 should work!
  • as well as var a=1, b=2. Let's do it!
  • really annoying that you can't write a=-1 or b+=+1 or c=@[] -- there must be ' ' after '='. This should be fixed!
  • foldl, map, split, join, sum, ^ (power) %% and // for ints must be in system module. Also << >> & | ~ (xor)
  • var a: enum A,B -- internal error pfffff. Reported.
  • also error with a=a*b vs a*=b under overflowchecks.
  • type S = 0..1 \n var good: array[S,S] = [S(0),S(1)] \n var bad: array[S,S] = [0,1] -- should work too! in definition
  • what's wrong with for i in 0..10: if a[i]>0: echo a[i]; t+=a[i] else: echo "!",i? what can be misunderstood there?
  • Ids have case-sensitive first letter, the tail is case-insensitive and underscores _ inside it are ignored. Wow this is weird!

nimmirror's People

Contributors

araq avatar dom96 avatar zah avatar def- avatar gradha avatar reactormonk avatar flaviut avatar varriount avatar yglukhov avatar cheatfate avatar tmm1 avatar apense avatar nanoant avatar arnetheduck avatar jlp765 avatar oderwat avatar fowlmouth avatar zielmicha avatar endragor avatar flyx avatar rbehrends avatar vegansk avatar nigredo-tori avatar parashurama avatar ozra avatar haiodo avatar renesac avatar jangko avatar rokups avatar oprypin avatar

Watchers

James Cloos avatar Georgiy Pruss avatar

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.