Live data from Hacker News

The Nim programming language

nim-lang.org

61–70 of 97 posts

Re: The Nim programming language

#63
I am stuck working on a C++ code base using Qt. Could I in theory use Nim to accelerate my development, or would it produce incomprehensible or ugly C++ code?

Alternatively are there other alternatives to C++ for people who have to submit C++ code into the repository?

I use other languages than C++ on a regular basis and I find it annoying to tedious the language is. So much boilerplate and repetitions.

Re: The Nim programming language

#64
post #60

If anyone was interested, the markup theme is Dracula[1], which subjectively feels like the most readable highlighting theme I've ever used. [1]: https://draculatheme.com/

I've applied to Terminal.app now. Works like a charm. The only thing is that by cloning the git repo using "git clone https://github.com/dracula/terminal.app.git" it gets put into a folder called terminal.app, which is not readable when trying to import it from Terminal since it thinks it's an app. The solution is to move the Dracula.terminal file to another location before importing.

Easy enough to solve, just change the destination directory:

    git clone https://github.com/dracula/terminal.app.git terminal-theme

Re: The Nim programming language

#65
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

+1 to the usefulness of a REPL. Anyone know of a good one for the vanilla Java language?

Well, I've used an unmaintained almost-vanilla-Java REPL: https://github.com/jacktasia/java-repl

Re: The Nim programming language

#66
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

I recently had to learn a language whose REPL I didn't like and initially felt the same way, but then I did the following: I began writing 'unit tests' for each feature of the language I studied, and I had a Makefile to recompile and run my tests whenever I saved. This setup gives you instant feedback just like a REPL with the added convenience of being able to go back to previous examples without having to separately store your history. Depending on the testing library, you also get a detailed explanation of what's wrong. Now, when using the language, I still return to my 'tests' every once in a while for reference.

In the Makefile itself I use entr: http://entrproject.org/

Re: The Nim programming language

#67

As someone who does a lot of Python programming, I really love the idea of Nim, and I've started learning it, I just need to find some more time to get back to learning it. Given there's a pandas style + out-of-core support I'm interested in trying to use it for a lot of data extraction + cleaning + prep sort of tasks given how speedy it can be, being built on top of C...

Are you saying there is some library already existing? I'd be curious to try it then.

Re: The Nim programming language

#68
post #55

I dig the changes in the landing pages, but I wished the documentation pages got the same treatment. At present, the documentation is not readable easily on mobile browsers. Are you considering converting the documentation pages to responsive design too? Also the black and yellow theme looks great on the home page, but that theme loses its continuity on all the other pages. It's as if the home page was designed by a…

> Are you considering converting the documentation pages to responsive design too? Unless someone volunteers to do this it likely won't happen any time soon. As for the continuity. Not all pages can have the same "section" style, the documentation page for example is just composed of a list of links and descriptions. Of course, if you have ideas on how to improve the continuity then I'm all ears :)

> Not all pages can have the same "section" style,

But they can have the same CSS styling (colors, fonts, responsiveness, etc) that ties the whole site together.

A good example that's at the top of my mind is this: https://hugodocs.info

It works great on desktop as well as phone, and a common theme is seen all across the site.

> the documentation page for example is just composed of a list of links and descriptions.

By the documentation page, I meant a page like this: https://nim-lang.org/docs/manual.html

That's a lot of good info but is not accessible in a good way on phone.

For sort of an equivalent reference, see https://hugodocs.info/templates/base/

It has a similar collection of help pages and the design is responsive too.

Re: The Nim programming language

#70
post #29
post #2

Nim is the language I have always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries for practically everything. So why haven't I hopped on the bandwagon? Outside of C++, C, and Fortran - the only way I have ever learned a new language is through using a REPL. How much of Py…

What makes a REPL brilliant instead of average?

I love the REPL in the Julia programming language. What makes me love it is combination of many small things which makes it practical: (1) remember past written statements (2) completes both functions/types/variables and previously written statements (3) Whenever you write strings you get directory and file name completions. This is amazingly handy when doing some kind of scripting job. (4) The ability to jump into shell mode and help mode by just writing a single character. (5) The integration between the Julia REPL and Unix shell. When in shell mode my Julia variables are accessible as normal shell variables. It is really the combination of all these things which makes it feel very productive to work with.
Post reply on HN