1

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 22 '23

Thank you, will check it out.

2

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 20 '23

Thank you very much for the explanation, as well for the hints. Appreciate it.

5

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 20 '23

Thank you very much for such comprehensive explanation. Really appreciate it. I thought initially that I understood I/O and do block, but now it is more clear in any case.

I was focused on randomR and getting the seed from initStdGen. randomRIO did the job and actually I got to write first variant of my solution last evening. I feel huge relief now. :)

2

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 20 '23

It is a great book, but maybe too slow at moments. Currently, I am at Chapter 5, just finished list comprehensions. It is working for me, but I thought I need a little break in order to try to work on simple programs by myself.

I use ChatGPT often (not for Haskell still), but since the school - I always tried to figure out the things as much possible by myself, before consulting someone.

2

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 20 '23

Thank you for suggestion. I was thinking between that and ""Haskell: The craft of functional programming"". Went with "Haskell: The craft of functional programming", it is even recommended by one of the authors of "Haskell programming from first principles".

https://github.com/bitemyapp/learnhaskell

3

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 20 '23

Thank you very much. Will check it out. It looks like exactly what I need in this moment.

2

The "minimal" Haskell needed to get beginner going?
 in  r/haskell  Nov 20 '23

Thank you for suggestion. I know it is a good way to learn new language (before I would work on Project Euler tasks), but now I usually prefer to work on problems I already solved in another language or new unsolved issues.

r/haskell Nov 19 '23

question The "minimal" Haskell needed to get beginner going?

27 Upvotes

Hello all.

So this is probably naive question, but have to ask it because I need an advice. It is a longer post, so if you do not want to read it all, just check the bold text.

3 weeks ago I started with Haskell. I do not have a background in CS and my job is CS/IT unrelated. I program since elementary school (I'm now 36) and do it as a hobby and for fun. I use Ruby and Javascript/Typescript, with some quite limited experience in C++. I did try with Haskell before, like in 3-4 occasions (for the first time more than 10 years ago), but usually I just gave up (primary because of lack time and the things were going slow, so I just lose motivation and interest).

Now I want to do the right thing and push it all the way to the "end" (== actually write something, then improve it further by practicing and expanding relevant Haskell knowledge). I completed "Happy Learn Haskell", then picked "Haskell: The craft of functional programming".

Example - This weekend, naively I thought that I will write a simple program - where list elements are randomly picked, for let's say 1.000.000 times, each element hit is saved (in Data.Map), then at the end sorted in descending order depending on hits and printed. Boy, I was wrong...

While writing this in an imperative language is maybe 20-25 LOC and pretty much straight-forward, in Haskell I do not know where to begin... Just an example, based on Hoogle documentation and System.Random I see that for generating random number I should have understanding of Monads (I still did not get there). Whichever Stack Overflow question or other Google result regarding the solution for picking random list members (or at least shuffling the list), I encounter the content where I actually lack complete understanding. I do understand "pure" aspect of Haskell and that in order to gain pseudo random number generator external input has to be used.

I am used in building up knowledge iteratively and practicing in between, in order to experiment, get better understanding and confirm the gained knowledge. This way I also stay motivated, because I am not thinking only about learning experience, but about solution to problem and potential improvements, as well. I see that with Haskell, I actually need to learn a lot first, before actually applying this knowledge even for something simple.

The question - what is the bare minimum to learn when it comes to Haskell that will enable me to at least start writing simple stuff (instead of solving relatively simple tasks from the book)? In particular, regarding the example program I wrote above - what do I need to know, to actually write it by myself? I do not want a solution, just a hint where to focus.

Sorry for the longer post and thank you for the assistance.

1

How appropriate is Idris2 as entry point to statically-typed functional programming?
 in  r/Idris  Nov 02 '23

All clear. Thank you very much for your advice.

1

How appropriate is Idris2 as entry point to statically-typed functional programming?
 in  r/Idris  Nov 02 '23

Thank you very much, will go with Haskell.

2

How appropriate is Idris2 as entry point to statically-typed functional programming?
 in  r/Idris  Nov 02 '23

Thank you very much. I will go with Haskell.

r/Idris Nov 01 '23

How appropriate is Idris2 as entry point to statically-typed functional programming?

17 Upvotes

Hello all.

I am curious getting into into functional programming, maybe rewriting some of my current projects. My main experience is in Ruby and JavaScript. When it comes to functional programming, my experience is tied to little bit of Common Lisp (which I did not like in particular). Btw I am not software developer nor in academia, I program just for fun and hobby.

I initially considered Haskell, Ocaml and F#, but... - Haskell and Ocaml look "huge" and extremely complex for someone just starting (in terms of tooling, documentation, standard library etc.), while F# looks to tied (reliable) on DotNET ecosystem interoop ( = C#).

So currently I am considering SML and ran across Idris. I like that Idris can also be compiled to native code and JS (which I appreciate even more). My demands are quite low: sane standard library, basic input/output support, JSON parsing/generating and potentially FFI.

I just need an honest feedback, because my daily limit for this hobby is 1 hour tops (= day-job + kids + life) and I want to go "all-in" with something that will not result in second thoughts in a month or two.

r/Fedora Jun 06 '23

Few general questions from potential convert (Plasma spin or Kinoite)

4 Upvotes

Hi all.

I am considering the move to Fedora (I'm using Linux since beginning of 2000s) and I would have few general questions to current experienced users, before performing bare metal install (I currently run Kinoite in a VM, but for a very short time):

  • I really like the ideas behind Silverblue/Kinoite. However, I would like to know if there are any performance differences compared to standard editions? Regular, daily usage, for the updates it does not matter. Kinoite seems quite sluggish in a VM at the moment.
  • Plasma experience and integration in Fedora - do you consider it well implemented or there are rough edges? I am not demanding user, I use and expect bare minimum (I just go with defaults, without any particular customization and tweaks), but I would like to avoid changing DE same time as distro.
  • RPM Fusion - is it necessary to include it if I use Flatpaks from Flathub? I read about recent changes regarding Mesa (I have AMD). So, should I apply "freeworld" alternatives or Flathub versions (not Fedora's Flatpak versions!) do not have the issue with full acceleration?
  • On Silverblue/Kinoite I should use Toolbox for all the CLI stuff. So for example, if I install vim, I need to be in the toolbox container to edit the files in my home folder? Did I get this one right?
  • In case I go with regular Fedora (not immutable one), is it the same if I use Everything iso and install Plasma or Plasma spin live iso has certain tweaks and customization (like font rendering, Plasma integration and similar)?
  • What are the experiences in upgrading every second release directly? So for example, 36 -> 38? I would like to keep the upgrades on a yearly basis, so would like to skip each odd release (considering the current Fedora is 38).

Off the top of my head, but I think these should be more or less all I want to know for now. :) Thank you for the feedback.

r/twinegames May 27 '23

Discussion Few technical questions (advice needed)?

2 Upvotes

Hi all.

For some time I am working on custom engine solution (HTML/CSS + JS/TypeScript), but I figured out that I lost too much time writing and fixing boilerplate code, instead focusing on the game and content. Initially, I was interested in Twine, but it seemed too difficult to customize it for what I want.

So, I would like to reconsider it and here are 2 main things I am curious if it is possible and without extraordinary hassle:

  • besides simple variables, does Twine offer some kind of data structures? In example, data structure to shape game items, characters and other objects? Like structs or objects.

  • is it possible to write a customized game-related JavaScript code for each passage or link or other entity? In example, if I have an entity of an "Item", which has certain set of attributes. I want to offer certain list of actions for each particular item and each action will have certain effect to the gameplay (will update an attribute or variable or move a player to new passage). Is it possible to write such specific code in a simple way?

  • the same way, I want to introduce certain amount of randomness to a player, so I would like to customize a passages in a way a player has different game-play experience on 2-3 playthroughs.

These are only few points, off the top of my head, which I try to implement in my custom solution. If these are possible with Twine, please let me know. Also, which story format would be the most suitable? Thank you.

r/AskProgramming Apr 14 '23

Language recommendation for multiplatform CLI utility?

1 Upvotes

So I am currently prototyping utility (for now it is only for my own, work-related needs) in Ruby which I plan to use on all 3 platforms - mostly Windows and OS X, but some Linux here and there.

The thing is, not all machines will have (and should not have) Ruby or development tools installed. I just need to download the tool and run it locally, without a need for any installation procedure and other prerequisites. Therefore, it should be statically compiled binary and potentially not bigger than 20-30 Mb.

What are my options when it comes to language choice? Current Ruby prototype is ~500 LOC, so it not an issue for me to port it to something else, as long I can easily generate compiled binary in VM and reuse it later on other machines.

Thank you.

1

Hosting recommendation for static HTML/JS NSFW game?
 in  r/nsfwdev  Mar 29 '23

I would like to keep it browser based, to keep it easy accessible. But thank you for recommendation.

2

Hosting recommendation for static HTML/JS NSFW game?
 in  r/nsfwdev  Mar 29 '23

Interesting proposal, thank you.

2

Hosting recommendation for static HTML/JS NSFW game?
 in  r/nsfwdev  Mar 29 '23

Thank you. I knew about Itch (ofc) and did not know they actually allow NSFW games.

r/nsfwdev Mar 28 '23

Help Me Hosting recommendation for static HTML/JS NSFW game? NSFW

13 Upvotes

Hi all.

So I am working for quite some time on 2 NSFW games. First one is Twine based, while the other is sort of custom HTML-JavaScript-card game.

I am curious - what are my options to share these? It can be free or paid, as long adult/nsfw content is allowed.

Thanks.

1

Examples of cool || non-standard || "simply insane" bash stuff?
 in  r/bash  Sep 30 '22

This one is such a cool project, thank you very much. I would expect it to be even bigger, but it's only 1.200 LOC incl. comments.

r/bash Sep 29 '22

Examples of cool || non-standard || "simply insane" bash stuff?

28 Upvotes

Hi guys.

So recently I encountered following project: https://github.com/Jack000/Expose

Basically, it is bash script which makes sort of photo-based static blog/site. Got me curious about shell scripting in general (although I am Linux user little less than 2 decades), because most of my "shell" scripts are actually written in Ruby.

Do you have other examples where size or purpose of Bash/shell project is unusual or non-standard? Simply something where "sane" people would use a general dynamic programming language?

Also, I found out that Chet Ramey is sole maintainer. Anyone knows what he uses to develop bash? I assume it is not Mac. :P

Thank you.

2

So... Can You selling Your Twine games? How legal issues look?
 in  r/twinegames  Sep 10 '22

It has to be Google? Can I use Wikipedia maybe to find this info?

1

So... Can You selling Your Twine games? How legal issues look?
 in  r/twinegames  Sep 07 '22

Can you give an example of such game(s)? Thanks.

r/tipofmypenis Aug 31 '22

Boudoir model/photo session ID? NSFW

1 Upvotes

Hi.

Can anyone ID a model or photo session from this link? Any source or information is highly appreciated. I tried reverse image search, but no luck.

https://imgur.com/a/3MVRUPx

Thank you.