stack-overflow-import
pymen
Our great sponsors
stack-overflow-import | pymen | |
---|---|---|
27 | 4 | |
3,686 | 12 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | 11 months ago | |
Python | JavaScript | |
- | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
stack-overflow-import
-
Show HN: Anycode – import anything from a Python module thanks to ChatGPT
Seven years after the StackOverflow Importer [1], I thought it was time to build an updated version using ChatGPT.
[1]: https://github.com/drathier/stack-overflow-import?tab=readme...
- Infinite AI Array, the Python Library
-
Ask HN: Does ChatGPT scare you? It scares me
> time series forecasting using this tool.
Interesting. IME even for toy problems it generally spits out code which fails to do what I requested some of the time or at all. Using this tool to solve a problem requires not only that I understand what it spits out but also that I understand how to actually solve the problem, so that I can iterate on the rubbish it spits out.
It doesn't seem frightening or particularly transformative; I'm not even convinced that using it could save more time than not. It's not doing anything radically different to https://github.com/drathier/stack-overflow-import and the latter works better.
I welcome evil players attempting to use it: their evil plans will self-destruct in hilarious ways.
- If we are going to unionize, fuck increased wages, I want this instead
- What’s the most shocking thing you’ve seen a junior dev do?
- a developers worst nightmare
- Hail StackOverflow!!!
-
Quora is truly a Magnificent place
StackOverflow Importer
- Seems legit
-
Two months in: How the SaaS that was built in 7 days is going
You joke, but Python essentially has this.
pymen
-
Pyffi – Use Python from Racket
Neat! Nicely done.
fwiw, I wrote a Lisp in Python whose sexprs ended up looking similar: https://github.com/shawwn/pymen
That’s the runtime for it, which is self hosted, so it supports that dot syntax but doesn’t actually use it in its own code. (If you add a new feature like dot syntax to a self hosted lisp, then you start using the feature, and later decide it was a bad idea, it becomes incredibly difficult to revert — So the compiler sticks to a minimal subset.
But it can run code almost exactly as you’ve written, minus the backslashes. It also has:
(for x in (list 1 2 3 4)
-
The most misunderstood aspect of Python
Literally anything. 'Tis a homemade homegrown lisp, grown by Scott Bell for several years till I took it all for myself. Nom nom.
It starts with reader.l: https://github.com/shawwn/pymen/blob/ml/reader.l where the raw character stream is turned into a bunch of nested arrays. E.g. (+ 1 2) becomes ["+", 1, 2]
Then it's punted over to compiler.l https://github.com/shawwn/pymen/blob/ml/compiler.l where it's passed through `expand`, which does a `macroexpand` followed by a `lower`. E.g. (do (do (do (print 'hi)))) becomes ["print", "\"hi\""]
Then the final thing is thrown to the compile function, which spits out print("hi")
Works with all the standard python things, like async functions and `with` contexts. Been screwing around with it for a few years.
-
Can continuation passing style code perform well?
Glad you asked. Like this: https://github.com/shawwn/pymen/blob/68b66dccc96910869ab370d...
(=defun choose-bind-test ()
What are some alternatives?
shapez.io - shapez is an open source base building game on Steam inspired by factorio!
vscode-theme-alabaster - A light theme for Visual Studio Code
LibreSprite - Animated sprite editor & pixel art tool -- Fork of the last GPLv2 commit of Aseprite
Mindustry - The automation tower defense RTS
shapez.io - shapez.io is an open source base building game inspired by factorio! Available on web & desktop
john-carmack-plan-archive - Collection of John Carmack’s .plan files
splitter - React component for building split views like in VS Code
typora-github-night-theme - Dark Typora themes that reproduce the new GitHub Dark Themes as much as possible.
aseprite - Animated sprite editor & pixel art tool (Windows, macOS, Linux)
devdocs - API Documentation Browser
lumen - A Lisp for Lua and JavaScript
stacksort - Sorts an array by downloading snippets from StackOverflow. Inspired by http://xkcd.com/1185/. I'm sorry.