Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 30 01:22
    yytsui starred gilch/hissp
  • Nov 25 09:12
    andrejlamov starred gilch/hissp
  • Nov 16 18:02
    MystPi starred gilch/hissp
  • Oct 31 05:56

    gilch on move-examples

    Remove decorator section Move … Remove Joined Comment String se… Doc built-in reader macro tables and 2 more (compare)

  • Oct 29 20:58

    gilch on smarter-readers

    (compare)

  • Oct 29 20:58

    gilch on master

    Stricter check in aliases Shou… Don't require \# in fully-quali… Factor out "_macro_" in reader.… and 3 more (compare)

  • Oct 29 20:58
    gilch closed #175
  • Oct 29 20:07
    codecov[bot] commented #175
  • Oct 29 20:05
    gilch synchronize #175
  • Oct 29 20:05

    gilch on smarter-readers

    Avoid fully-qualified dedent re… (compare)

  • Oct 29 03:13
    plus7wist starred gilch/hissp
  • Oct 28 16:12
    respatialized starred gilch/hissp
  • Oct 22 20:10
    Eurochxir starred gilch/hissp
  • Oct 21 03:36
  • Oct 18 22:53
    AYUSHMIT starred gilch/hissp
  • Oct 17 09:05
    generic-github-user starred gilch/hissp
  • Oct 14 19:07
    petersandersen starred gilch/hissp
  • Oct 10 21:05
    ahribellah starred gilch/hissp
  • Oct 09 19:11
    veikman starred gilch/hissp
  • Oct 01 20:58
    gilch edited #173
gilch
@gilch
But I do have a mostly-working Pygments parser to do Lissp syntax highlighting in the docs, so some of this is already started.
There might be a way to get that into most of the editors through https://en.wikipedia.org/wiki/Language_Server_Protocol
Something like jedhy for Hissp would be nice, but I don't know how to do it (yet).
Kyle I S Harrington
@kephale
Ah yeah, I was pretty surprised to find autocompletion (for Hy)
gilch
@gilch
Hissp's target functional subset is smaller, which means doing very basic things in unpythonic ways, so I'm not sure how viable a jedi port would be. I don't know jedi's internals very well.
(yet)
Kyle I S Harrington
@kephale
As I said, I'm getting pretty confident in Hissp, but I need to get to the point of replacing at least part of my Python usage with it. That basically means being able to efficiently implement numpy/scikit/etc. code for public research projects (its all public/open-source stuff). lisp-mode is ok for now, but I reached my peak Clojure efficiency with Cursive+IntelliJ. That was mostly by parainfer-ish features + Clojure's nREPL + simple stuff like easy REPL integration. I don't really need IntelliJ, and would know how to make a plugin with at least basic versions of the desired functionality in Atom (and probably vscode)
Even CIDER+emacs still wasnt as productive as Cursive+IntelliJ
The point being, I'm somewhat motivated to make a tool like that if I can prove to myself that I can convert some of the numpy-ecosystem examples into Lissp, at least the basic ones
(which is going surprisingly well, tbh)
gilch
@gilch
Looks like Language Server Protocol was originally developed for vscode. If we go that route, those tools wouldn't be tied to any one editor.
Well, if you get stuck on those example conversions, I'll be here.
Kyle I S Harrington
@kephale
Thanks! You've been super helpful and I am very appreciative of that.
More later!
gilch
@gilch
Although I'm not in your time zone. I should have been asleep hours ago. I stayed up too long for New Year's.
Kyle I S Harrington
@kephale
Heh, I was a bit surprised to find you on
gilch
@gilch
I was writing Hissp docs.
The macro tutorial.
I already said that. I'm not thinking straight. Good night.
Kyle I S Harrington
@kephale
Gnight
Kyle I S Harrington
@kephale
I'm having issues with:
#> (matplotlib..pyplot.subplots)
>>> __import__('matplotlib').pyplot.subplots()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: module 'matplotlib' has no attribute 'pyplot'
On the python side it seems to need:
__import__('matplotlib.pyplot')
__import__('matplotlib').pyplot.subplots()
gilch
@gilch
@kephale Did you try (matplotlib.pyplot..subplots)?
gilch
@gilch
Or (.subplots matplotlib.pyplot.)?
Packages don't always import all their submodules for you in Python, so they're not always available as attributes if you don't import them directly. But module identifiers work on submodules, and you can qualify identifiers with submodules as well.
Kyle I S Harrington
@kephale
@gilch AH oi I should have realized thats how the macros work
(matplotlib.pyplot..subplots) works perfectly
gilch
@gilch
That last one was a breaking change. Hissp is the same, but Lissp strings are a bit different now. If you've written a significant amount of code, you'll probably run into it. I've updated the docs accordingly.
Kyle I S Harrington
@kephale
Ah cool, works well and no problems for me so far
gilch
@gilch
I've also got the first lesson done in the macro tutorial.
I've got maybe six more macro lessons planned: attach, regex literals, automatic once-only gensyms, destructuring bind, destructuring lambda, and yield, if I can figure out how to implement that with code-walking and lambdas.
The macro tutorial probably still needs some copy editing. It's a bit rough.
Kyle I S Harrington
@kephale
I look forward to going through it at the next chance!
gilch
@gilch
Let me know how it goes.
Kyle I S Harrington
@kephale
I'm taking notes for some minor issues, but I am left wondering about multi-arity functions in hissp
Kyle I S Harrington
@kephale
great tutorial
Kyle I S Harrington
@kephale
any chance for the pypi release soon? it would be great to be able to use hissp as a dependency without installing from git
gilch
@gilch
You mean arity overloads like in Clojure?
I've been pushing commits daily, so I'm wondering when a good stopping point for the PyPI release is.
Enough has changed that I want to do it soon, but I at least want the docs to match the code when that happens.
The sphinx theme I'm using is still having issues rendering some things.
The module index page is broken.
I figured out how to doctest the quickstart, and it's uncovered some issues so far. I should have that done in a day or two.
gilch
@gilch
Assuming no more surprises pop up.
Kyle I S Harrington
@kephale
yeah like the clojure airity overloads, but it was more of a passing thought than a pressing need
Kyle I S Harrington
@kephale
the issue is just that the current pypi version isn't usable for code that works with the latest master
i'm certainly fine working on a couple of machines, but its harder to play around with ideas to scale up (not that I'm quite ready for that yet, but could be in a week or so)
gilch
@gilch
Python doesn't have arity overloads built in, but you could implement a dispatcher with a starargs and a cond on its length.
If it's a pattern you use a lot, it wouldn't be too difficult to implement it in terms of that using a macro.