ماجد (@fvilante) header
ماجد (@fvilante) profile picture

حافظ للقرآن الكريم

المملكة العربية السعودية
Joined May 2009
Photo by ماجد (@fvilante)Photo by ماجد (@fvilante)Photo by ماجد (@fvilante)Photo by ماجد (@fvilante)Photo by ماجد (@fvilante)
بتوفيق 💖💖👍 #موسم_الرياض_2021
"Lambda Calculus forms the linguistic interface. The part at which the user represents their thought. It's a minimal logical system that provides a medium for effective calculability, which means that you only need a very small set of primitives that lets you perform computation"
Launching my Lambda Calculus project today! It makes use of visualizations and interactivity to develop an intuitive understanding of Lambda Calculus for a curious learner. Check it out: prabros.com/lambda-calculus/
1
1
1
Emulation of Pattern Matching with Variant in #Typescript (Inspired on #ReasonML) #Denoland #nodejs #tsconf #javascript
Replying to @fvilante @vmaarcosp
Prova das minhas afirmações sobre a possibilidade de emular #ReasonML em #Typescript: Que acham? Notas: - A inferencia de tipos está 100% de cabo-a-rabo. - Durante a escrita do código (ou modifição) é possível contar com a assistência em tempo reeal do inferidor do TS.
4
1
"Nao existe esta de subset" O Soundness é definido em cima do conceito de "linguagem formal", que é um conceito matematico. Nao confunda o conceito de "linguagem formal" com o conceito de "compilador". Um compilador implementa a linguagem, mas ele nao é a linguagem.
Replying to @fvilante @vmaarcosp
Não existe essa de subset, já falei. Você considera a linguagem para a definição. E certamente você não deve saber todas as features da linguagem e regras que tornam ela unsoundness e nem deve ter sequer linter que pega todos os casos.
1
Functor represents in some sense the concept of structural invariance. A Functor projects some type C in some type D but some part of the structure in C is maintained invariant when projected in D. You have to choose what you want to "preserve" when you design the Functor.
A vantagem do #typescript não está na sintaxe, mas na relação simbiótica mutualista e comensalista com o ecossistema #javasript que inclui: #browsers, run-times #denoland #nodejs, grandes investimentos #microsoft #visualcode, muitos desenvolvedores assalariados, etc.+
Este foi o tema do seu post original, por isto q estou dando esta enfase. Ou seja: O #ReasonML tem uma ótima sintaxe, num mediano ecosistema de ferramentas. #TypeScript tem uma mediana sintaxe, num farto e estavel ecossistema de ferramentas.
1
2
1
O universo mental de quem se expressa em #ReasonML é muito bem populado, com estruturas altamente genéricas e conceitos-chaves que lhe são oferecidos out-of-the-box. O #Typescript é difícil pq normalmente o individuo o via uma mentalidade #Javascript ao invés de #ReasonML.+
2
1
Estou lendo este livro no momento. Venho investigando os fundamentos estruturais da matemática bem como a relação desta com as linguagens de programação. E este livro consolida numa única narrativa uma série de coisas que estudei de modo fragmentado nos últimos tempos.
1
I'm not saying it's going to be easy. Never give up.
The concept of Isomorphism is extremally useful, bc it's very generic and has a formal definition. When you grasp, you start to look for isomorphisms everywhere. I encountered isomorphisms between strong typed languages and in many other places.
Replying to @gustavo_pch
I discovered why exactly both of our code are relying in the "Conditional Type" feature of #typescript. But before that, let me introduce you to the concept to isomorphism. Something that we were discussing other day.
Every typed language has basicaly the same structure. I compared in past #Typescript with #ReasonML and besides some design diferences on gradual typing strategy and compatibility to JS. They are pretty the same (not in syntax, but in structure).
When I say "structure" I mean something very particular, which may be intuitivelly grasp visually. Below is an example of the structure between typed languages. But you can use the same kind of intuition when mapping structure of TS code to itself (very useful in generics).
1
1
1
This kind of structure perception is explored in its full potential in the field of Category Theory. I'm not being formal here, just trying to bring some insights to the table.
1
One interesting aspect in #typescript programming is you can develop your code in 'Theory' first. You can structure things without having anything to run at first moment. You work your code conceptually first. As an example note that in below code events 1 & 2 are not implemented
Replying to @gustavo_pch
"The created events must follow exactly the order as defined in the tuple" That is not true, look:
2
Replying to @gustavo_pch
Look at this ... What do you think? Even less code involved. Following is the rational aplied: type A = [10,20,30] // A: [10, 20, 30] type B = A[0] // B: 10 type C = A[1] // C: 20 type D = A[2] // D: 30 type X = A[number] // X: 10 | 20 | 30 Below is an working example:
1
An alternative to ImmerJs. While #ImmerJs is a '#javascript-first' solution. This proposal is '#typescript-first'. Using some functional concepts. Notes: 1) Just a proof-of-concept. Totally experimental. 2) Using algebraic data types, like #Lenses & Atomic Ref. #Denoland
2
3
1
5
In #Typescript you also can think types as 'function'. See example below: #TSConf #denoland
I added also some possible 'fancy' ideas you can use as well. You may think types as 'functions' not only as 'data'. Ex: type First<A extends readonly [unknown, unknown]> = A[0] type Data = number type Pair = [Data, string] type Result = First<Pair> // Result = Data
1
3
Feliz dia da independencia!
3
huh
Online Meetup: Intro to Category Theory and Functional Programming: meetup.com/Category-Theory/e… Tuesday, September 1, 2020 6:00 PM to 8:00 PM Pacific Time.
You should ignore it, just to my further reading. wolframphysics.org/technical…
'Going in the other direction, any category with at most one arrow between any two objects determines a preorder, simply by defining a binary relation ≤ on the objects'
'In this sense,a category is an abstract algebra of functions, or “arrows” (sometimes also called“morphisms”), with the composition operation “◦” as primitive.'