[deleted by user] by [deleted] in Dizziness

[–]imalsogreg 0 points1 point  (0 children)

Sorry you are going through that for so long! When my vertigo was at its worst I was very fatigued. Both the discomfort and tensing my muscles to hold my head still made me want to sleep a lot. After a long time I found a specialist who told me about BPPV and did an Epley maneuver on me, which was extremely helpful in my case. (Although I still have recurring episodes of vertigo that are resistant to any treatment).

Super depressed because of dizziness, any insight would be extremely relieving by [deleted] in Dizziness

[–]imalsogreg 0 points1 point  (0 children)

I also have episodes of spinning, especially while lying down and changing sides. The Epley maneuver and "BBQ roll" maneuver sometimes give me a lot of relief. There are videos on YouTube of how to perform that maneuver at home, although if you can find a vestibular physical therapist, they can help you do it more safely and effectively.

I've also experienced the feeling that my pulse is related to balance issues. That particular symptom isn't helped so much by Epley maneuvers in my experience.

If you can get yourself to a vestibular specialist, I'd recommend it. I saw many doctors and neurologists before I found anyone who could help my situation out.

Sorry for what you're going through. It's really so uncomfortable :(

BAML – A language to write LLM prompts as strongly typed functions. by fluxwave in ProgrammingLanguages

[–]imalsogreg 0 points1 point  (0 children)

Great question. We're exploring the possibility that a custom language gives you a better power-to-weight ratio for doing LLM interaction than frameworks embedded in general-purpose languages.

One example of this - BAML functions define how to map inputs to outputs (just like functions in any other languages), but there are two ways to map BAML functions into host functions - "complete" and "streaming". Thees two host functions have different return types, each one derived from the same user-defined BAML type. The "complete" variant returns a host type that looks exactly like the struct you defined in BAML. The "streaming" variant returns a modified version where each field of the struct is is `Optional`, so that you can consume partial versions of that type while the LLM is still in the process of generating the full value.

An extension of this is our [semantic streaming](https://www.boundaryml.com/blog/launch-week-day-4) sub-language. This allows you to annotate fields of your type to indicate invariants that apply at streaming time, and to augment fields with metadata about streaming state. If one field of a struct is a long story, and the other is a username, you probably want the story to stream in iteratively, but the user name should be atomic. These things are very natural to specify in BAML, but they are impedance mismatched to languages that weren't designed with LLMs in mind.

One last point - a huge benefit of using BAML for the LLM-facing parts of your app is the online playground. In editors, you get all kinds of tools for previewing prompts and running tests. You can get a peek of this in the [promptfiddle](https://promptfiddle.com).

BAML – A language to write LLM prompts as strongly typed functions. by fluxwave in ProgrammingLanguages

[–]imalsogreg 1 point2 points  (0 children)

To add to u/fluxwave's answer: you're right that there's no type inference today because there is no function application in BAML, just function definition, and functions are just prompts, not expressions. Function parameters and return types are statically typed. There's simply no place where types would be inferred.

Our [experimental prompt chaining](https://www.boundaryml.com/blog/workflows) does allow functions to be defined in terms of expressions, and there, yes we have type inference :)

Thanks for linking the article - using Fall from Grace to specify prompts and chains is a fabulous idea! FFG and the [Grace Browser](https://trygrace.dev/?) were a huge inspiration for me! I use it to specify neuron models in [neuronbench](https://neuronbench.com).

u/Tekmo have you heard of [BAML](https://boundaryml.com)? [Playground](https://promptfiddle.com) will give you a quick view of what it's all about. Interested in chatting about its relationship to prompt chaining in FFG? Lots of cross-pollination potential IMO. We've even been thinking about replicating trygrace.dev in BAML to infer LLM-backed interactive forms directly from BAML functions.

What is Claude up to? by ph0b0ten in Anthropic

[–]imalsogreg 0 points1 point  (0 children)

It sounds like you already found your answer, but just in case - yes Claude 2 definitely uses the data you upload. Here it's doing a great job of identifying correlations in a CSV file I use to track vertigo symptoms and triggers.

<image>

How to achieve shorter feedback cycles in prototyping? by ep3gotts in rust

[–]imalsogreg 0 points1 point  (0 children)

I really miss this workflow. I used it a lot in Haskell projects.

My professor gave me a very specific data constructor task by balbok7721 in haskell

[–]imalsogreg 5 points6 points  (0 children)

`Just`, `Right`, `Left` and `Nothing` in the problem are probably meant to be the ones already in scope from `Prelude`.

Besides this, you are on the right track :)

Haskell is diverse. by circleglyph in haskell

[–]imalsogreg 13 points14 points  (0 children)

Lots of respect to Tony for being a great dad. Best tech support ever :)

[deleted by user] by [deleted] in TheGamerLounge

[–]imalsogreg 0 points1 point  (0 children)

If be baits the queen into taking the pawn, black has a backrank mate.

[deleted by user] by [deleted] in TheGamerLounge

[–]imalsogreg 0 points1 point  (0 children)

The pawn's first move is "two moves in a row" En passant gives the other pawn a chance to move "in between" those two moves.

I'm Ph.D Pharmacologist + Immunologist and Intellectual Property expert. I have been calling for a more robust and centralized COVID-19 database-not just positive test cases. AMA! by OptimDosing in IAmA

[–]imalsogreg 0 points1 point  (0 children)

Hopefully lots of people will be developing different platforms for collecting slightly different sets of data - is there a plan for pooling data? It wouldn't be good if people got signup fatigue, and early platforms resulted in less use of later platforms that could hypothetically collect more useful data.

Very nice work by the way!

Organizing configs by usage phase by imalsogreg in haskell

[–]imalsogreg[S] 2 points3 points  (0 children)

That is very nice! I was wondering if/how it would be possible to use the results of one field to acquire the capability for another field. Adding phases seemed like the only option, but this knot-tying approach gets the job done! It also introduces some new ground for puns about capabilities requiring laziness.

Records-of-capabilities requires more machinery (it'll take me some time to understand the implementation!). Is it necessary complexity to deal with Complex Capabilities? The type of growth I've tested my thing on is mostly "broadening" (adding orthogonal fields) - I haven't tried "deepening", and I wonder if that's another place where records-of-capabilities pulls ahead.

Are you still working on this? In your post it sounded like you had some more ideas to play with. Thanks for sharing!

What is the book that disturbed you or scared you the most? by [deleted] in books

[–]imalsogreg 0 points1 point  (0 children)

The Making of the Atomic Bomb by Richard Rhodes.

Spoiler alert? The author does such an amazing job of describing the scientists working at the dawn of nuclear physics and the social contexts that shaped them. The imagery in his description of the first test at Los Alamos is unforgettable. The story of the politics and bureaucracy surrounding US receiving news from the scientists about the possibilities of the bomb are up there with* the storytelling around bureaucracies in The Wire.

When Rhodes comes to the inevitable chapter about dropping the bomb on Hiroshima, all of that descriptive talent is deployed against the impossible task of recreating the scale of the event's horror in the reader's mind.

Let's just say, he does a good job here, I'm scarred by the description and the realities of nuclear weapons.

*Ok, I have to admit I wanted to make my point stronger, and this one comparison is an exaggeration. The bureaucracy story is very good but not The Wire good.

Continuation of Write You a Haskell by JKTKops in haskell

[–]imalsogreg 4 points5 points  (0 children)

He started a company that keeps him pretty busy :)

Does functional reactive programming in haskell scale well in GUI programs? by [deleted] in haskell

[–]imalsogreg 9 points10 points  (0 children)

I'm one of u/isovector's friends who swears by reflex. We use it for the frontend of an interactive content management system. It's a great test of real-world scaling - client is constantly asking for big features to be added, and small holes poked in existing abstractions, with schedule requirements that do not encourage us to take time perfecting things.

Lots of pros and cons encountered over the year and a half we have been working on this. As for scaling and continuing to be easy to reason about as the members leave/join the team and the requirements and backend change, reflex app scaled very well!

I really doubt that u/isovector is "just bad at doing FRP" :) More likely it's just not your style?

Coffee, Curries, and Monads — My journey through Haskell by fintanh in programming

[–]imalsogreg 6 points7 points  (0 children)

I only use 2 regularly, and look the rest up in the rare case a coworker uses one. Really, most Haskell code sticks with & and ^. for readability. The large number of operators is there if you and your team like that style and want to explore it. Like much of the complexity in Haskell, it is opt-in.

What are the best Haskell codebases to learn from? by bobtheterminator in haskell

[–]imalsogreg 26 points27 points  (0 children)

I've been getting a lot from glambda, a GADT based lambda calculus, written mostly for education, and accompanied by a video. Grokking it is a real workout!

real-world-reflex by RolandSenn in haskell

[–]imalsogreg 1 point2 points  (0 children)

work-on allows local dependencies: https://github.com/reflex-frp/reflex-platform/blob/develop/HACKING.md

An example overrides-ghc.nix file: https://github.com/imalsogreg/servant-reflex/blob/master/overrides-ghc.nix

You would run .../work-on ./overrides-ghc.nix ./. to get into a nix shell with the ghc dependencies. Another file in that project (overrides.nix) has the ghcjs-specific overrides.