This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-09
Channels
- # adventofcode (93)
- # announcements (11)
- # babashka (7)
- # babashka-sci-dev (17)
- # beginners (73)
- # biff (7)
- # calva (3)
- # cider (1)
- # clj-kondo (160)
- # clj-together (12)
- # clojure (44)
- # clojure-art (2)
- # clojure-europe (12)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-norway (22)
- # clojure-uk (2)
- # clojurescript (8)
- # clr (1)
- # cursive (6)
- # data-science (1)
- # datomic (1)
- # emacs (6)
- # events (1)
- # exercism (1)
- # fulcro (6)
- # graphql (2)
- # introduce-yourself (1)
- # lsp (18)
- # nrepl (7)
- # off-topic (45)
- # polylith (25)
- # portal (25)
- # practicalli (3)
- # re-frame (14)
- # reagent (28)
- # reitit (2)
- # releases (2)
- # shadow-cljs (73)
- # sql (11)
- # tools-deps (12)
- # transit (4)
- # xtdb (4)
TIL
user=> (get (java.util.HashMap. {(java.lang.Integer. "1") :foo}) (java.lang.Long. "1"))
nil
user=> (get (java.util.HashMap. {(java.lang.Integer. "1") :foo}) (java.lang.Integer. "1"))
:foo
Why?
(= (java.lang.Integer. "1") (java.lang.Long. "1")) ;=> true
(= (.hashCode (java.lang.Integer. "1")) (.hashCode (java.lang.Long. "1"))) ;=> true
the difference in the Clojure IPM's vs. Java HashMaps is not due to hashing, but due to equality: clojure uses Util.equiv, java uses .equals()
in both cases, keys are checked for equality after hashcodes match (though the hashcodes also are calculated with different methods; hashCode() vs clojure's hashEq. they happen to produce the same results for Longs vs. Integers)
thanks for explaining @U050ECB92
Very early design decision in Clojure that =
returns true for equal numeric values even if they are different types, UNLIKE Java.
Zach Tellman has found this aspect of Clojure's =
to be a performance limiter when running on JVMs, vs. other collections that only use Java equals
(I believe -- I don't have performance data handy at the moment to point at.)
One of the most famous guitar solos by Frank Zappa is from the song "The Black Page," which appears on his 1976 album "Zoot Allures." The solo is known for its technical difficulty and is considered one of the most challenging guitar solos ever written. The "Black Page" solo features a complex and rapidly changing sequence of notes and rhythms, with Zappa using a variety of different playing techniques and effects to create a unique and distinctive sound. The solo is considered a highlight of Zappa's guitar playing and has been praised by critics and musicians alike for its skill and innovation. In conclusion, the guitar solo from "The Black Page" by Frank Zappa is considered one of his most famous and notable solos, and is renowned for its technical complexity and musical ingenuity.
yeah, from their page
Plausible-looking is actually worse than doing it by hand 😄 It's like code that works and you don't know why. I hope they fix this.
I don't see how that can be fixed, since it is being trained on data that it can't be sure is 100% true
Better to ask forgiveness than profess ignorance 😄 Anyway, it readily corrects itself when told it's wrong. But when it has no knowledge of what it's doing, it just gets stuck in a loop at times.
also, what is truth? just because some history books say it, doesn't mean it is true :man-shrugging:
this is funny
:thinking_face:
pretty consistent
The ?
made the AI confusing
Is it just me? As I told in another thread, I never could get any useful info from any of these AI things!
Code that I tried to ask came back incorrect, answers for general questions were incorrect...
Even on some art-based AI prompts I saw some work of art, tried to simulate some prompts, and got back nightmares like people with multiple eyes or multiple hands, people with heads growing up from their necks, etc....
I think you need to get lucky with question to get something good
Yes, for example, every question that I ask about Emscripten on ChatGPT gets me back delirious results. Like, literally, delirious: I google for the functions ChatGPT gives me, and I get back no results at all
https://interestingengineering.com/innovation/mod-tesla-travelled-1600-miles-without-charger
So... an expensive and dangerous DIY gas electric hybrid?