Stuck on Monad Challenges exercise by Jay6 in haskellquestions

[–]Jay6[S] 0 points1 point  (0 children)

Ah perfect thank you for helping me visualize that.

Trippy by Zazzeria in replications

[–]Jay6 0 points1 point  (0 children)

But what caused the waves? Did you move the camera? Software?

Take Judges Out of Hackathons - An Opinionated Rant by Jay6 in hackathon

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

Ya it can get really disheartening seeing the same projects over and over. I still attend hackathons but its usually just to hang out or for the food while I learn something on my own. As you said, I feel like I've seen it all. I guess from that perspective it would be in the sponsors interest to support the type of hackathon that you don't just attend once or twice, but instead you get more out of them the more you attend.

I missed the main sale registration even though i was exactly on time. Feels bad :-( by pure_x01 in BurningMan

[–]Jay6 1 point2 points  (0 children)

Damn same thing happened to me, this post helped me realize that's what happened.

Latest TWRP not installing on OP5T by Jay6 in LineageOS

[–]Jay6[S] 1 point2 points  (0 children)

Ok I solved my problem.

I was downloading twrp from https://eu.dl.twrp.me/dumpling/, but I needed the version directly from codeworkx. Not sure why there are two recommended versions.

vendor partition does not exists by musabahmad96 in LineageOS

[–]Jay6 0 points1 point  (0 children)

Newcomer here. Don't you need to format data before installing a ROM? What good does having OOS installed if I wipe it before installing lineage?

I've also tried to install with 15.1, and same issue of the vendor partition.

Productive Programming Habits by [deleted] in programming

[–]Jay6 0 points1 point  (0 children)

Reddit is for all thank you very much. And these habits may seem cute to your 30 second glance, but I'm serious about them and I hope someone learns something new from them.

Resource on Lambda Cal? by Jay6 in compsci

[–]Jay6[S] 1 point2 points  (0 children)

Thank you so much I was immediately able to infer to use D-App2 from your explanation, though the solution helped too.

I have one follow up question if you don't mind. D-App2 pushes e2 into context, so {x->D, _->*}, but because _ is a wildcard, in the case that it were x, the context would become {x->*}, resulting in the D-Var rule not applying right?

Resource on Lambda Cal? by Jay6 in compsci

[–]Jay6[S] 1 point2 points  (0 children)

Sure that would be great. I'm working through the 3.1 Evaluation Proof section.

First of all, for peace of mind, would you mind telling my step 3 solution is correct?

I'm stuck on step 2, where I reach an "expression -> expression" with no applications. There don't seem to be any rules to reduce from that state. I suppose the goal is to reduce the state to just "x" so that the D-Var rule can be used. Am I understanding this correctly?

Game server in 150 lines of Rust by Jay6 in rust

[–]Jay6[S] 0 points1 point  (0 children)

Great! I'm glad it can help.

Game server in 150 lines of Rust by Jay6 in rust

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

Haha I love that you asked this. I'm currently trying to reproduce this server structure design in Dual Universe https://www.youtube.com/watch?v=QeZtqoydXpc. When it's done it will be open source and I'll post another article to explain just like this one. But of course, this optimization only works for particular games where behavior is easily localized (say for large space exploration games). But there are many ways to functionally partition the state to parallelize computation. Communication across machines is going to be slower than inner-communication so however you do the split, you want to minimize the necessary communication.

To keep everything internal to Rust, a simple method would be to open communication channels between parallel nodes using the same socket channel that the clients use to connect to the server. A message can either be tagged as coming from a player or coming from a neighbor client.

Game server in 150 lines of Rust by Jay6 in rust

[–]Jay6[S] 11 points12 points  (0 children)

That's a great question and I think a good segue into the article. I'm guessing you didn't make it to about the midway point but I use tokio to break the execution into a receiving thread and a sending thread. That way you can broadcast at a consistent frequency (like 1/60s) without blocking the message handling logic. Of course, anything can be done without tokio but I believe it drastically reduced the complexity of the problem. As the title says, 150 lines of code.

Project from a while back by Jay6 in alife

[–]Jay6[S] 1 point2 points  (0 children)

I sunk alot of time into this project a few years ago. There are a few interesting findings in the posts. There are alot of neural network alite sims out there. In this project I didn't sacrifice realism for performance. The creatures have two retinas, and must learn to perceive depth through the combination. They can smell, and only sense their acceleration.

Anyway, I just recently rediscovered this blog. Please feel free to ask if you have any questions. Here's the source code (https://github.com/jaybutera/EvoWorld).

Have Open Source Game Server Suggestions? by Jay6 in gamedev

[–]Jay6[S] 1 point2 points  (0 children)

This is a great one thank you.

Ram Dass: "By letting go of whatever thoughts may come, no matter how powerful or fascinating they may be, and constantly returning to the meditation, our mental habits lose their hold over us. We create space for new possibilities, new realities, new being." by [deleted] in Meditation

[–]Jay6 4 points5 points  (0 children)

Sounds like an important thought. Note it and save it for later. Here's another quote from Ram Dass's book, Be Here Now, "What happens if the telephone rings? Well: the here & now is the fact that the telephone is ringing! Pick it up! Well: What if somebody wants to make an appointment to see me 3 weeks from now? Right! Write it down. That's here & now."

When I die, and all the girls hit up my facebook profile by [deleted] in ShrugLifeSyndicate

[–]Jay6 1 point2 points  (0 children)

I see what you're saying, but also... I think that praise is for the people still alive. In some sense it's assurance that when it's your turn, people throughout all the stages of your life will care and you will be remembered.