HackerTrans
TopNewTrendsCommentsPastAskShowJobs

__tmk__

no profile record

Submissions

Python Enhancement Proposal 736: Shorthand syntax for keyword arguments

peps.python.org
10 points·by __tmk__·قبل 3 سنوات·1 comments

comments

__tmk__
·قبل 5 أشهر·discuss
Interesting, I've also heard the exact opposite opinion [0] where Zulip’s non-standard approach is seen as its main strength.

[0]: https://chaos.social/@yorgos/115931944888149528
__tmk__
·قبل سنتين·discuss
I would think there wouldn't be much of a difference because the smallest unit you can really work with on modern computers is the byte. And whether you use 8 bits to encode a byte (with 256 possible values) or 5 trits (with 243 possible values), shouldn't really matter?
__tmk__
·قبل سنتين·discuss
There's a project for using Swift to write GNOME applications, which is fascinating to me: https://github.com/AparokshaUI/adwaita-swift

I wish them success but realistically they won't have success.
__tmk__
·قبل سنتين·discuss
1-cos_sim(x,y) is a valid distance metric for L2 normalized vectors, though.
__tmk__
·قبل 3 سنوات·discuss
That's not very actionable advice. I've found this article [0] from Terence Tao very insightful:

  [A]ctual solutions to a major problem tend to be arrived at by a process more like the following (often involving several mathematicians over a period of years or decades, with many of the intermediate steps described here being significant publishable papers in their own right):

  1. Isolate a toy model case x of major problem X.
  2. Solve model case x using method A.
  3. Try using method A to solve the full problem X.
  4. This does not succeed, but method A can be extended to handle a few more model cases of X, such as x’ and x”.
  5. Eventually, it is realised that method A relies crucially on a property P being true; this property is known for x, x’, and x”, thus explaining the current progress so far.
  6. Conjecture that P is true for all instances of problem X.
  7. Discover a family of counterexamples y, y’, y”, … to this conjecture. This shows that either method A has to be adapted to avoid reliance on P, or that a new method is needed.
  8. Take the simplest counterexample y in this family, and try to prove X for this special case. Meanwhile, try to see whether method A can work in the absence of P.
  
  (... 15 more steps)
[0]: https://terrytao.wordpress.com/career-advice/be-sceptical-of...
__tmk__
·قبل 3 سنوات·discuss
I've also seen neovim plugins written in fennel [0], so if you want something lispy, that's possible now.

[0]: a Lisp that compiles to Lua, https://github.com/bakpakin/Fennel
__tmk__
·قبل 4 سنوات·discuss
Wow, this is all I ever wanted. The only thing that's maybe missing is a natural way to do captions for images and tables, and a syntax for spoilers. But these can probably be built on top of the div and span syntax.