Data Notebook in Nim | PL0T

2021-07-31 Thread Neodim
Hi Alex, Just tried it and found it to be very interesting and useful tool. Just couple of thoughts: * I would add a possibility for picture insert into a page, bitmap and vector, * is it possible to emit directly pdf file? If so it would be perfect tool for automatic generating of reports,

Mac GUI

2021-07-31 Thread AIR
@kcvinu, a question: What is is you are looking to use the mouse events to do? If it's for tooltips, Cocoa supports that I just haven't exposed it yet.

Data Notebook in Nim | PL0T

2021-07-31 Thread alexeypetrushin
Jupyther Notebook require a different workflow, and I would like to keep the Data Exploration workflow same as normal coding workflow in VS Code. It allows to use VS Code and its full capabilities like autocomplete etc. Not Jupyther Code Editor. Have same libraries as in normal coding environme

Data Notebook in Nim | PL0T

2021-07-31 Thread Lecale
It looks pretty nice, but why would i choose to use this over, say, a Jupyter Notebook?

Mac GUI

2021-07-31 Thread AIR
Todays Update: I added preliminary support for Cocoa Bindings. Consider this code snippet (self below is an object containing the gui object handles): self.win = newWindow("Cocoa Bindings Demo 1", 462, 128, winStyle) self.chk = newCheckBox(self.win, "Enabled?", 18, 18, 78,

Mac GUI

2021-07-31 Thread AIR
> I meant how to connect a MouseEnter event handler or a MouseLeave event > handler along with a Click event. I see. This might be possible with what's called "Method Swizzling", where ObjC allows you to add/replace Class methods during runtime. I'll see what I can do, but might take a bit of

codegendecl on a const

2021-07-31 Thread timothee
> I don't really see the 4x factor increase, but actually a 1 to 1 mapping with > my approach. the 3X or 4X increase is in the C file generated, since it contains escape sequences, eg: STRING_LITERAL(TM__1m9cQUY9abSjxCA8ws9b1wH9ag_4, "\317\372\355\376\007\000\ Run d

Nim GDB Youtube Video

2021-07-31 Thread xioren
also tried to download the video but it was not possible Run [:)](https://github.com/xioren/uvd)

'$' on Time can have side effect, but only if you import the whole times module

2021-07-31 Thread giaco
I now see that the $ function in times.nim reads a global for both UTC and local convesion that breaks noSideEffect. Shouldn't be formatting know time to UTC or local a side effect free operation?

C lib binding guide

2021-07-31 Thread Clonk
Sometimes the best solution is to take a look at concrete example. Here are some bindings examples :

C lib binding guide

2021-07-31 Thread cblake
They keyword you seek is "FFI" or "foreign function interface". The manual has the most info: An older more step by step thing by @Xmonader that touches on only a subset of concerns the manual/compiler address:

How to rewrite nim programming langauge to be pythonic as possible?

2021-07-31 Thread alexeypetrushin
I don't like these Zen Statements. They miss the bigger picture. Like hammer and chisel for sculptures. The end goal is the Sculpture. These statements say a lot about how to polish the hammer handle, or geometry of hammer head. And none about the sculptures or how this hammer could help to cre

Data Notebook in Nim | PL0T

2021-07-31 Thread alexeypetrushin
**UPDATE:** standalone mode added. Now it's possible to use Notebook as plain `html` files locally, or publish it anywhere on the web. See `page.save "play.html"` in [the readme](https://github.com/al6x/pl0t/tree/main/api/nim).

How to rewrite nim programming langauge to be pythonic as possible?

2021-07-31 Thread xigoi
The parens are because Nim is not small despite having powerful metaprogramming.

'$' on Time can have side effect, but only if you import the whole times module

2021-07-31 Thread Araq
Nim devel produces: E:\nim\temp10.nim(26, 6) Error: '$' can have side effects > E:\nim\lib\pure\times.nim(2073, 20) Hint: '$' calls `.sideEffect` 'format' >> E:\nim\lib\pure\times.nim(2065, 6) Hint: 'format' called by '$' >>> E:\nim\lib\pure\times.nim(2069, 16) Hint:

How to rewrite nim programming langauge to be pythonic as possible?

2021-07-31 Thread kcvinu
Wow ! Sounds good. I wish I can write a class in pure python style. I know that Nim can do that with the help of some macros but I don't prefer macros. It is good for a language to have the ability to do the most basic things without any macros. What will be the name ? Nimthon ? ha ha :)

How to rewrite nim programming langauge to be pythonic as possible?

2021-07-31 Thread gemath
Nice! Two remarks: This one > (Leverage meta programming to keep the language small.) could use some explanation (why the parens?) and this one > There should be one and only one programming language for everything. That > language is Nim. some understatement.