Readit News logoReadit News
NeutralForest commented on Seed: Interactive software environment based on Common Lisp   github.com/phantomics/see... · Posted by u/todsacerdoti
reikonomusha · 15 hours ago
CLOG [1] seems to do something similar (though it's hard to tell; Seed's README isn't terribly informative), except CLOG has more tutorials, is better documented, has a more fleshed out README, and has ongoing support.

[1] https://github.com/rabbibotton/clog

NeutralForest · 13 hours ago
CLOG is something I've wanted to try for a long time but then I need to spend some time learning CL.
NeutralForest commented on Crimes with Python's Pattern Matching (2022)   hillelwayne.com/post/pyth... · Posted by u/agluszak
Q6T46nT668w6i3m · 2 days ago
What’s the problem using it as a switch statement if you care about typographic issues? I do this so I’d like to know if I missed something and this is a bad practice.
NeutralForest · 2 days ago
It's not an issue, but that's not where most of the power is and can also be confusing since if you use variables in the case statement, the way it watches does not behave like a simple switch.
NeutralForest commented on Crimes with Python's Pattern Matching (2022)   hillelwayne.com/post/pyth... · Posted by u/agluszak
M0r13n · 3 days ago
Personally, I have never liked the PEP 634 pattern matching. I write a lot of code in Python. 99% of the time when I could use pattern matching, I am going to use simple if statements or dictionaries. Most of the time, they are more straightforward and easier to read, especially for developers who are more familiar with traditional control flow.
NeutralForest · 3 days ago
You should use if statements if that's what you need. The match statement is for structural pattern matching mostly.
NeutralForest commented on PYX: The next step in Python packaging   astral.sh/blog/introducin... · Posted by u/the_mitsuhiko
NeutralForest · 11 days ago
Cool idea! I think I could benefit from this at my job if they're able to eat Anaconda's lunch and provide secure, self-hosted artifacts.
NeutralForest commented on PYX: The next step in Python packaging   astral.sh/blog/introducin... · Posted by u/the_mitsuhiko
setopt · 11 days ago
In my experience, Anaconda (including Miniconda, Micromamba, IntelPython, et al.) is still the default choice in scientific computing and machine learning.
NeutralForest · 11 days ago
It's useful because it also packages a lot of other deps like CUDA drivers, DB drivers, git, openssl, etc. When you don't have admin rights, it's really handy to be able to install them and there's no other equivalent in the Python world. That being said, the fact conda (and derivatives) do not follow any of the PEPs about package management is driving me insane. The ergonomics are bad as well with defaults like auto activation of the base env and bad dependency solver for the longest time (fixed now), weird linking of shared libs, etc.
NeutralForest commented on Litestar is worth a look   b-list.org/weblog/2025/au... · Posted by u/todsacerdoti
NeutralForest · 18 days ago
Pretty cool post! I'm not sure how I feel about SQLAlchemy (not the star of the post but mentioned quite a bit); it's such a big ball of state that has so many surprises, I wonder if some people build entirely without it.
NeutralForest commented on Python performance myths and fairy tales   lwn.net/SubscriberLink/10... · Posted by u/todsacerdoti
NeutralForest · 19 days ago
Cool article, I think a lot of those issues are not Python specific so it's a good overview of whatever others can learn from a now 30 years old language! I think we'll probably go down the JS/TS route where another compiler (Pypy or mypyc or something else) will work alongside CPython but I don't see Python4 happening.
NeutralForest commented on Why Exercise Is a Miracle Drug   derekthompson.org/p/the-s... · Posted by u/zdw
chickenzzzzu · 22 days ago
Until you injure something particularly nasty, like a joint, tendon, muscle tear, etc...
NeutralForest · 22 days ago
You can also walk and bike, it doesn't need to be crazy intensive.
NeutralForest commented on Design patterns you should unlearn in Python   lihil.cc/blog/design-patt... · Posted by u/zeitlupe
NeutralForest · 23 days ago
I've never seen anybody do that... In Python you can use a module as a singleton (mentioned in the article). Or provide some data like:

  from functools import lru_cache

  class Whatever:
      pass

  @lru_cache(maxsize=1)
  def get_whatever():
      return Whatever()
And use `get_whatever` as your interface to get the resource.

NeutralForest commented on The many JavaScript runtimes of the last decade   buttondown.com/whatever_j... · Posted by u/LinguaBrowse
paulddraper · a month ago
Web archive and pray
NeutralForest · a month ago
fair

u/NeutralForest

KarmaCake day1210January 4, 2021View Original