HNHacker News
TopNewBestAskShowJobs

ducaale

3,431 karma · joined May 14, 2017

Sharaf.13@hotmail.com
submissionscomments
ducaale··on PSD is not my favourite file format
I should have thought this through before linking to a self-hosted site [1]

[1] https://b3n.org/about/

ducaale··on Emacs-ng: Emacs with Deno runtime and TypeScript
Port of Emacs to rust https://github.com/remacs/remacs
ducaale··on What’s Wrong with “Multiplication Is Repeated Addition”? (2008)
https://www.youtube.com/watch?v=F_0yfvm0UoU
ducaale··on Are we game yet? – A guide to the Rust game development ecosystem
I found these two resources helpful when I needed to do some 2d game development in C++.

- [Remaking Cavestory in c++](https://www.youtube.com/playlist?list=PLNOBk_id22bw6LXhrGfhV...)

- [Dive into C++11/14](https://www.youtube.com/playlist?list=PLTEcWGdSiQenl4YRPvSqW...)

ducaale··on Show HN: Ht – HTTPie Clone in Rust
Thanks, I will try post it one more time once the tool is stabilized.

>I see that you have a “HTTPie feature parity checklist” (issue #4) on the issues list. Is that the sole indicator (aside from bugs) of what a version 1.0 would be like?

Yes, that pretty much sums it. Also The list might expand if I notice other HTTPie features I forgot about.

ducaale··on Show HN: Ht – HTTPie Clone in Rust
Thanks for the feedback and the link :).
ducaale··on Show HN: Ht – HTTPie Clone in Rust
Yup, performance was one of the reasons I decided to port it to Rust. The other reason being that Rust gives you a single binary that is easier to deploy compared to python.
ducaale··on Is Mathematics Real? (2020)
I like to link to this video[1] whenever the subject "What is Math?" is brought up.

[1] https://www.youtube.com/watch?v=AmySxYHqQCQ

ducaale··on Ask HN: Show me your half baked project
I am working on ht[0], a drop-in replacement for HTTPie[1] written in Rust.

Since I am not planning on writing an extensive documentation for ht, I wanted to port 99% of HTTPie's features so its docs applies to ht as well. So far I have been able to port around 60-70% of HTTPie's features.

[0] https://github.com/ducaale/ht

[1] https://httpie.org/

ducaale··on Why are there so many cats in Istanbul?
lol
ducaale··on Advent of Code in Haskell: T Minus 16
I am currently going through https://www.seas.upenn.edu/~cis194/spring13/ to learn about Haskell (my goal is to use it for Nand2Tetris's compiler assignments). There are also other resources that I used before cis194:

- https://typeclasses.com/beginner-crash-course

- https://yannesposito.com/Scratch/en/blog/Haskell-the-Hard-Wa...

ducaale··on Ox is a fast text editor, written in Rust, that runs in your terminal
That colorscheme looks cool though. Is it available for other text editors?
ducaale··on Pygame 2.0
From my limited experience with Pygame, I found that it struggles[1][2] with sprite rotations. I am assuming that this was happening due it being using software rendering instead of the GPU which might have changed now with Pygame 2.0.

[1] https://github.com/ducaale/nyan/blob/feature/lines/examples/...

[2] https://youtu.be/OfaZavigYUw

ducaale··on Monkeytype – A Minimalistic Typing Test
You can find a hosted version here https://monkeytype.com/
ducaale··on How Discord Won
I really like how the WYSIWYG editor in discord is implemented. For example, if you try to write a block using backticks, that block will be highlighted and the backticks will not disappear.

Meanwhile, I am still unable to how understand how slack's WYSIWYG works.

ducaale··on Multicore OCaml: September 2020
I was to introduced to F# through the excellent fsharpforfunandprofit blog[1]. I wonder if there is a similar thing for other ML-like languages

[1] https://fsharpforfunandprofit.com

ducaale··on Multicore OCaml: September 2020
I wonder why every time I search for a functional programming related concept, Jane street always pops in the search results
ducaale··on Full-Bleed Layout Using CSS Grid
OCaml has monadic let syntax[1] which is similar to F#'s computation expressions. I am not sure why it is not yet supported in Reasonml/Bucklescript.

[1] http://jobjo.github.io/2019/04/24/ocaml-has-some-new-shiny-s...

ducaale··on Update on YouTube copyright dispute over guitar tutorials [video]
an interesting take on YouTube's Copyright System https://www.youtube.com/watch?v=1Jwo5qc78QU
ducaale··on What Is Math?
A video which discusses this subject and compares different schools of thought https://youtu.be/AmySxYHqQCQ
ducaale··on Which Parsing Approach?
There is also this interesting stackexchange answer which compares different types of parsers https://softwareengineering.stackexchange.com/a/338888/37266...
ducaale··on Among the Norse Tribes: The Remarkable Account of Ibn Fadlan (1999)
Extra History made a video about him recently https://www.youtube.com/watch?v=RSURd15qfWQ
ducaale··on Named Parameters in C++20
One thing to be aware of is that named arguments will become part of the public interface which you can't change without breaking everyone's code. I believe swift solves this by having internal and external names for arguments.
ducaale··on Named Parameters in C++20
Wouldn't be possible for the compiler to optimize it away?
ducaale··on List of YouTube channels for improving web development and programming skills
I have recently discovered [tsoding twitch channel](https://www.twitch.tv/tsoding/) which describes itself as Recreational programming. The topics range from webassembly and Game development to functional programming in haskell and ocaml. Some of the interesting random things I found there include:

* [a parser combinator in haskell](https://www.youtube.com/watch?v=N9RUqGYuGfw)

* [stack based language compiler in ocaml](https://www.twitch.tv/videos/654258168)

You can find all the things that were done during the streams in https://github.com/tsoding. You can also find his schedule at https://tsoding.org/schedule/

ducaale··on Motivation – Keli Language
This is not my first time hearing someone praising Elm's syntax and standard library. How does it compare to OCaml/F#/haskell?
ducaale··on Motivation – Keli Language
There is https://github.com/avsm/opam-tools which aims to simplify the process of setting up a local opam project with all the tooling required.

On the topic of and janestreet-core/base and named parameters, I don't like how it basically forces you to name your arguments whenever you need to compose functions. I much prefer Containers library which is lighter and stdlib friendly.

* Base/Core: List.range 0 20 |> List.map ~f:(fun x -> x * 2) |> (fun l -> List.take l 5)

* Containers: List.range 0 20 |> List.map (fun x -> x * 2) |> List.take 5

ducaale··on Inventing Monads
To understand monads, I think it helps to know a language where expressing such a concept is more natural. Although I do not claim to know 100% what monads are yet, coming across these features made it easier for me to understand the concept a little bit.

- Algebraic data types

- OCaml's let expressions

- F#'s computation expressions

I also think that it is important to write something that naturally requires the use of monads. One thing that spring to mind is Parser Combinators.

- https://fsharpforfunandprofit.com/posts/understanding-parser...

- https://www.youtube.com/watch?v=N9RUqGYuGfw

ducaale··on Draft of OCaml Scientific Computing book
>Also, I find monad-based asynchronous programming to be quite tedious.

Have you tried using OCaml's monadic let expressions? It was introduced on verion 4.08 and they share similarity with F# computation expressions.

* https://jobjo.github.io/2019/04/24/ocaml-has-some-new-shiny-...

* https://caml.inria.fr/pub/docs/manual-ocaml/bindingops.html

ducaale··on OCaml for the Skeptical
Have you tried clicking on the course material section? Maybe I should have shared that link instead.

https://www2.lib.uchicago.edu/keith/ocaml-class/class-01.htm...

← PreviousPage 2 of 4Next →