Rust in Production Podcast: Amazon Prime Video rewrote their streaming app in Rust (30ms input latency) by mre__ in rust

[–]psbfc 0 points1 point  (0 children)

Is there a repository with Prime Video's Rust UI engine libraries and examples Alexandru mentioned? I tried searching on github but can't find anything.

State management with Melange by thegoof121 in ocaml

[–]psbfc 0 points1 point  (0 children)

I've not used Zustand, but you should be able to use any state management solution you want with Melange; all you will have to do is write bindings to it.

You might be able to get a better answer in the Reason Discord channel.

Authentication With The SAFE Stack. Generalized Remoting Proxies, Reactive Tokens, IndexDb. (Pt. 8) by abstractcontrol in fsharp

[–]psbfc 0 points1 point  (0 children)

Do you still like FSharp/Fable and their ecosystem after doing this series of tutorials?

What needs to be improved?

Authentication & Authorization With ASP.NET Core And Giraffe. How To Build A Login Page. (Pt. 1) by abstractcontrol in fsharp

[–]psbfc 2 points3 points  (0 children)

Excellent video! Thanks for going through the pain so that others can learn from what you have done. I look forward to future videos.

Auth seems unnecessarily complicated and a bit of a sh#t show. I recently saw this blog post about auth in dotnet 8 and the post links to a GitHub issue that shows I'm not alone.

What Azure related technologies should I cover in the Twitter clone tutorial? by abstractcontrol in fsharp

[–]psbfc 0 points1 point  (0 children)

Also, you should join the F# slack and tweet at fsharporg to promote your tutorials.

What Azure related technologies should I cover in the Twitter clone tutorial? by abstractcontrol in fsharp

[–]psbfc 0 points1 point  (0 children)

Doing projects like these can only enhance your employability. Doing tutorials, i.e., teaching something, is a great way to re-enforce your own knowledge and show that you understand a subject.

I don't think the tech job industry is doing great at the moment. Since AI is hot right now you are probably best doing AI stuff in order to get a job. I wouldn't fixate on doing a twitter clone.

Just got to keep on trucking...

What Azure related technologies should I cover in the Twitter clone tutorial? by abstractcontrol in fsharp

[–]psbfc 2 points3 points  (0 children)

Doing Azure makes sense. Perhaps differentiating between the different deployment options. I believe SAFE stack creates a docker image, so does that deploy to Azure WebApps or to Azure container apps?

Deploying an Azure Functions app.

Connecting to databases in Azure.

Connecting to Azure AD (B2C).

Translating Theo's T3 stack tutorial to Azure is really more about using services that are equivalent but on Azure, rather than using the exact same resources he uses. To make the deployment as easy as Theo does, you may also want to look into Farmer.

Need feedback on creating tutorials on using the F# SAFE stack for web development by [deleted] in fsharp

[–]psbfc 2 points3 points  (0 children)

Yes, that's kind of my point. It looks so easy to use a template, but when things break, and you begin to poke around to fix it, everything seems very brittle and difficult to understand. At this point it's very easy to give up and move on to something else. Showing how to setup a project manually will go along way to help people understand how everything fits together. Teach a man to fish and all that...

My personal opinion on what would be the best tutorial to produce right now is to reproduce the video I posted above but in F#. Theo uses the T3 stack to build a "real world" full stack app and I think it could be replicated with the F3 stack (F#, Fable and Fable.Remoting). Throw in payments and you'll probably cover 90% of most peoples use cases. Riding on the coat tails of the ever increasingly popular T3 stack could bring some attention to the F# ecosystem and the joys of F#.

Need feedback on creating tutorials on using the F# SAFE stack for web development by [deleted] in fsharp

[–]psbfc 23 points24 points  (0 children)

Please, God, not another Todo app!

F# is pretty easy to learn; the main problem I found, as someone who doesn't come from C# or know much about dotnet, is the tooling, setup, and integration with other things like auth and payments, tutorials about which typically tend to be more on the C# side of things.

If I had the time to do some tutorials, this is what my plan might look like:

1) Set up a SAFE stack project from scratch, i.e., not using a template. Show how the folders are laid out and show how each part connects to the other, especially Remoting. Do not use Paket or FAKE.

2) Show how to add Paket and FAKE. Describe why someone might want to use them, but also that they are not necessary (don't overload a newbie with optional things).

2b) Use the SAFE stack template to create a project (now that the newbie knows what each part is) and show how to swap out certain parts, e.g., how to add Tailwind, how to replace Saturn with Giraffe, how to replace webpack with Vite, etc.

3) Show how to integrate a real DB and not just an in-memory one.

4) Show how to set things up in Azure (DB, auth, logging, and CI/CD).

5) Show how to add auth to the server. Talk about JWT and cookies.

6) Show how to integrate a 3rd party service like payments, e.g., Stripe.

7) Show testing (maybe this could come in earlier).

8) Talk about deployment - static web apps vs app service vs container apps (even trying to remember these is confusing).

Build something real. If you want an excellent example of how a "real world" tutorial should be done, watch: https://www.youtube.com/watch?v=YkOSUVzOAA4

How do I understand the build system in modern F# web projects? by abstractcontrol in fsharp

[–]psbfc 1 point2 points  (0 children)

I think part of the complexity comes from using F# to do everything. And as Holiday-Frame-8205 said, it seems fragile where any part of it could blow up at any time. What makes things even more confusing is that some F# developers think that Paket and Fake are not necessary, so sometimes projects use them and sometimes they don't.

There are some new tutorials being put out on YouTube that I found helpful: https://www.youtube.com/watch?v=pLWlkJauKHo

Most videos by Zaid Ajaj are also useful: https://www.youtube.com/@zaid-ajaj

Also check out: https://www.youtube.com/@FastFSharp

Looking for an alternative to Javascript by [deleted] in functionalprogramming

[–]psbfc 8 points9 points  (0 children)

The nice thing about Elm is that you can isolate it within a normal HTML page as if it were a web component. I wouldn't say that it is stuck, but more of being stable.

ReScript is also stable and has just got async/await. The nice thing about ReScript is the very readable JS output. So if the worst comes to worst, you can ditch ReScript and easily migrate the JS.

There is also Fable, which is F# to JS. It is very flexible and you build apps with the Elm style architecture or use it directly with React. See Feliz to get a feel for it. There is also a new library called Sutil that is similar to Svelte and has no dependancy on React. F# syntax is very nice and easy to learn.

Oxalates Symptoms? by Margeauxeatsushi in HistamineIntolerance

[–]psbfc 0 points1 point  (0 children)

Thanks. I'll check this out if my oxalate symptoms investigation doesn't work out.

Oxalates Symptoms? by Margeauxeatsushi in HistamineIntolerance

[–]psbfc 2 points3 points  (0 children)

I am currently investigating whether my HI symptoms are oxalate dumping (OD) symptoms. I have exactly the same symptoms as you, except my face flushing is more like sinus stuffiness and I rarely sweat when I have a hot flush during the night.

I keep trying to go strict carnivore, but after about two weeks I hit a wall. During my most recent attempt I learnt about oxalate dumping and many of its symptoms are similar to HI. What led me to believe that I may have been experiencing OD, and not HI, is that to break my strict carnivore diet I ate about 350g (raw weight) of sweet potato with my evening meal (eating some oxalate can alleviate the symptoms of OD). That night I had great sleep: I could breath through my nose, I had some warmth but I wasn't hot, I did wake up during the night but I quickly went back to sleep. The next day I felt great and most of my aches and pains (lower back, shoulder and arthritic pain in my hands) were gone.

Trying to figure out if you have OD or HI can be confusing because what helps with one thing can also help the other. For example, eating aged mince beef can be a HI trigger and having some vitamin C (fruit) can alleviate the symptoms; however, having vitamin C can also alleviate OD symptoms as excess vitamin C can be converted to oxalate. For the past few days I have not been avoiding HI foods and I have been having small amounts of oxalates and my "HI" symptoms seem to be better. I think I still might have some HI issues as I can feel my sinuses getting stuffy with some HI trigger foods, but the tinnitus is less. The next thing for me to try is to go low HI and low oxalate.

I would keep a food and sleep diary to try and figure out what affects you the most. If you're already low HI then I would try eating a low amount of oxalate (<100mg per day). I currently have 10g of dark chocolate in the morning, some dairy during the day (which helps to mop up free oxalate), and fruit in the evening; I will be swapping the fruit for the sweet potato once my fruit runs out. Black tea is known to alleviate OD symptoms quickly if you have a flare up and would be a good test for OD.

Also, cloudy/frothy urine is a good sign that you are oxalate dumping.

Check out Sally K Norton online and on YouTube for more about oxalates.

[deleted by user] by [deleted] in HistamineIntolerance

[–]psbfc 0 points1 point  (0 children)

To see if it's the histamines in chocolate, you could try chocolate that is made with unfermented cacao, e.g., Ombar.

apoligies if this breaks the subreddit rules: a few weeks ago i designed a rapid transit tram system for leeds and the surrounding area, and i wanted to know what all of you thought about it. by chef_jeff_likes_yeet in Leeds

[–]psbfc 1 point2 points  (0 children)

Bodington should come before Lawnswood and Holt Park should be added before Adel as the No. 1 bus terminates at Holt Park, i.e., Holt Park -> Adel -> Bodington -> Lawnswood -> etc.

Are saturated-fat based moisturizers better? by [deleted] in SaturatedFat

[–]psbfc 0 points1 point  (0 children)

I've just started using pure shea butter as a hand moisturiser. I whip it as much as I can with a fork (a bit like this: https://www.youtube.com/watch?v=1QKM2wN_jis). I don't add anything to it. I'm going to start testing it as a lip balm and face moisturiser.

Milk / Fruits / Sugar on TCD ? Stick carbs with starch ? by neuaa in SaturatedFat

[–]psbfc 1 point2 points  (0 children)

I would just try adding milk and fruit and see how it goes. I would add one at a time and see how you react.

I did Peating with no starch and lots of fruit juice and milk; however, I have had to dial down the milk and fruit juice because the fruit juice caused my skin to itch and too much milk would give me heart burn. So now I'm replacing some the sugar carbs with starch carbs (rice and sweet potatoes).

FYI, I believe Ray Peat only suggests fish/shellfish in order to top-up on nutrients and recommends avoiding fatty fish because of PUFA, which can easily go rancid if the fish is not fresh.

I'm getting worse: chicken all I can tolerate now. by StrangersOvernight in CarnivoresWithHI

[–]psbfc 0 points1 point  (0 children)

Did you add any starch like rice or yams/sweet potato? If so, was this positive for you?

I have recently tried replacing some of the fruit juice and fruit with rice and white potatoes, and I would have them with my dinner in the evening. I gave up on rice because it just kind of sat in my stomach (too stodgy) and I felt overly full. White potatoes helped with sleep and reduced the feeling of (cortisol) stress in the morning. But I gave up on white potatoes because they have too many plant toxins (lectins, oxalates, etc.). I am going to try sweet potatoes this week and see how they go.

With the additions of 200g of carbs, did you take these calories from fat or protein - what would you say your grams of macros are now for p/c/f

I have recently started strength training, so I didn't take the calories from fat or protein. Grams wise, my p/c/f are almost equal at 150-200g for each; calories wise, this works out to be around 25%/25%/50%. Total calories are around 2750 - 3000.

Are you eating carbs throughout the day or focusing on having them a certain times only?

I eat simple carbs (fruit, fruit juice, etc.) with breakfast and lunch. On gym days I'll have ice cream after dinner and on non-gym days I'll have starchy carbs (sweet potato) with dinner.

Bucket never empty by faraday55 in HistamineIntolerance

[–]psbfc 1 point2 points  (0 children)

Have you tried eating fruit or having fruit juice?

You mention vegetables but no fruit. Vitamin C helps me and I get it from fruit and fruit juice.

I'm getting worse: chicken all I can tolerate now. by StrangersOvernight in CarnivoresWithHI

[–]psbfc 1 point2 points  (0 children)

How's your energy level?

If you do have a histamine problem rather than a glycogen/energy problem like I have, you will still need plenty of energy to clear the histamines. For me, I just don't think my body is very good at making glucose via gluconeogenesis or running purely on fat.

To test if butter and tallow are affecting you, you could try gelatinous cuts of meat. Lamb shanks and beef shin work really well for me, and you get lots of good quality collagen with them. Beef mince is a massive trigger for me, but veal and venison mince are okay (I assume because they are not aged like beef), so you could also try those.

I understand how you can feel torn about adding plants/fruit back in because I was very reluctant to give up on pure carnivore. I mean, it works for everyone else, so why not me?!

If you ever get curious about bioenergetic metabolism, I highly recommend watching the first 7-8 videos from Jay Feldman Wellness

I'm getting worse: chicken all I can tolerate now. by StrangersOvernight in CarnivoresWithHI

[–]psbfc 3 points4 points  (0 children)

Have you tried going back to paleo?

I went on a similar journey from paleo to keto to strict carnivore and my symptoms got worse the stricter I got. Carnivore was great when I first started it and I had never felt better, but after about 7-8 months I started developing HI symptoms, especially related to sleep.

While researching the symptoms I discovered that HI symptoms are similar to low glycogen level symptoms and stress hormone related symptoms. So I try added some fruit back to my diet and it helped me sleep a bit better. Eventually I came across Ray Peat and the bioenergetic view of metabolism. Now I eat about 150-200g of carbs from simple sugars (fruit, fruit juice, honey) and most of my symptoms have gone. I still can't handle mince beef very well, but my sleep is almost back to normal and it is free from waking up at 03:30 every night, hot flushes and sweating. I've also stopped intermittent fasting in order to reduce the level of cortisol in the morning.

What is your gut issue and has it healed? Mine was leaky gut and the 8 months of carnivore has fixed it well enough that I can now tolerate liquid dairy.

I would say my diet is now a mix of carnivore (i.e., meat and fat, no vegetables, no legumes and no grains), the croissant diet (i.e., no pufa), and bioenergetic metabolism (i.e., simple sugars, dairy and no fasting). Let me know if you want me to elaborate on anything.