News for hackers. Stuff that matters.

crapaud23

> only the rich would then have access to actual lawyers
In Clojure, the adage says "When building DSL, favor data over functions over macros". When I write a DSL I start by writing a sample of it as pure data (think of Clojure as a data processing oriented language with embedded JSON (to be exact, the format is called EDN)). Then I write the parsing function. What I do though is to make sure the parser is extensible. To do so I cast any data element that this function parses into a corresponding function, except if that element is already a function. This way I can directly write custom functions within the DSL. This is very handy when handling conditions and their composition through function combinators. I can just reuse the language boolean logic (if, if-not, switch-cases etc) and don't have to reimplement it withing the DSL. Once the DSL data has been parsed into functions, they are then composed through classical function composition available in the language. Sometimes I also wish I had access to the DSL through macros, mostly to optmize those DSL. The situation I have found myself to need this required me to impact the compiler's state in some way, so I didn't carried my investigations forward regarding this subject, and I'm very interested in the development of Lux/luxlang since it comes with macros that are passed the compiler's state monadically.
Analog pid controllers: https://www.youtube.com/watch?v=Ps9iD738rUg Soviet IR tracking missile heads too. Stumbled upon one on ebay once, was surprised the control system was analog. Not sure which one it was and I'm very surprised to find a Raytheon AIM 9 Sidewinder missile kit there: https://www.ebay.com/itm/273992271867
Solvespace seems a lot more compelling

https://files.whitequark.org/SolveSpace/solvespace.html (web demo)

It's not some "youtube video" it's a documentary series made on various drugs by high quality channel Arte. The dude being inteviewed is a scientist specialized in this very field. But somehow I should give more importance to a random comment on HN ? This thread is being shilled.
Nope. One of the girl even confessed she wasn't doing mdma because 1°) it induced a depressive episode that lasted for a year. 2°) Had to wear a dental tray at night because of bruxism (=teeth grinding).

I have a friend who does mdma regularly (like once every 3 months). Suffers from bruxism too. When he goes to the dentist, he can tell he's a mdma user.

You're free to waste your health as you wish (also mdma lowers t-cell rate in the blood, they never get back to normal afterwards, a japanese man taking multiple Es a day even died of immunodeficiency). Personally I prefer a good brewage of ipomea heavenly blue or some hawaian baby woodrose.

Yeah sure. Once I partied with people who were taking ecstasy so I took 1/5th to 1/10th of what they swallowed (powder). As a result I had a very light trip. Nonetheless I ended up grinding my teeth in my sleep for 1 year afterwards. People who study drugs say you shouldn't take mdma. Or at least "less than once a year" (because these scientists really enjoy drugs).
Re:The Alien Grave of Aurora, Texas on Thursday January 12, 2023 @10:01AM (#34354453)
Paul Bennewitz & Richard Doty

Bennewitz detailed his assertions to the Aerial Phenomena Research Organization, who regarded him as a deluded paranoid. UFOlogist William Moore claims that he tried to push Bennewitz, who had been in a mental health facility on three occasions after suffering severe delusional paranoia, into a mental breakdown by feeding him false information about aliens.[1] In 1988, his family checked him into a psychiatric facility.[3] Former special agent for the U.S. Air Force Office of Special Investigations Richard Doty claimed that in the 1980s he was tasked with hoaxing documents and feeding false information to UFO researchers, including Bennewitz.[4] Richard Doty is featured in the 2013 documentary "Mirage Men", a film alleging "how the U.S. government created a myth that took over the world. UFOs, and weapons of mass deception."[5]

> That's why it's actually interesting.

No, what grabbed you attention is that their is some governmental authority behind this. If that wasn't the case, your comment reading as someone whose interest in UFO emerged from the Navy stories, you wouldn't bat an eyelid.

Re:Years in Common Lisp: 2022 in review on Tuesday January 10, 2023 @10:03AM (#34325869)
For me it's microcontrollers, however I've heard in spite of the unmaintained status, clojure-scheme[1] is very usable. It uses gambit to produce C-code you can compile anywhere.

https://github.com/takeoutweight/clojure-scheme

Re:Years in Common Lisp: 2022 in review on Tuesday January 10, 2023 @04:34AM (#34322388)
This is the way Clojure works too. Nil is treated as an identity/neutral element. This goes beyond lists: in contrast to Common Lisp who equates nil to the empty list, Clojure maintains a distinction and you're supposed to handle nils by correctly implementing functions. This is as easy as using clojure's core functions, they all have been tailored to handle nil as the neutral element.

As a consequence, in Clojure, nil's neutrality extends to other datastructures, for instance (hash)maps. (assoc nil :some :value) => {:some :value}.

French Guyana is Europe
They should at least mention netherlands is superflat.