News for hackers. Stuff that matters.
Re:Show HN: VisionScript, abstract programming language for ... by chpatrick on Tuesday August 22, 2023 @07:06AM (#37221043)
Why do you need a new language with new syntax to do this instead of making a Python library?

  vision = Vision()
  
  (vision
    .load("./folder/")
    .search("coffee cup")
    .get(1)
    .show()
  )
I think unless your language semantically does something really different it's almost always a mistake to make a new one. Adding global state and replacing () with [] doesn't seem worth losing compatibility with the rest of the ML/CV ecosystem, and forcing people to learn syntax just for this.

There are no comments on this comment yet.