@DiazCarrete@hachyderm.io avatar

DiazCarrete

@DiazCarrete@hachyderm.io

This profile is from a federated server and may be incomplete. Browse more on the original instance.

DiazCarrete, (edited ) to CSS
@DiazCarrete@hachyderm.io avatar

"a language for describing the rendering of structured documents [...] on screen, on paper, etc"

"renders it onto a canvas such as your screen, a piece of paper, or an audio stream."

"Each box in the box tree represents its corresponding element [...] in space and/or time on the canvas"

"the aural box tree"

🔗 https://www.w3.org/TR/css-display-3/
🔗 https://www.w3.org/TR/CSS/#terms
🔗https://stackoverflow.com/questions/16936297/when-does-a-box-establish-an-inline-formatting-context
🔗 https://developer.mozilla.org/en-US/docs/Web/CSS/Inline_formatting_context
🔗 https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content

DiazCarrete, (edited ) to ChatGPT
@DiazCarrete@hachyderm.io avatar

IIUC, function calling in works in a way that is kind of similar to how free monad interpreters work in
🔗 https://platform.openai.com/docs/guides/function-calling
🔗 https://minimaxir.com/2023/12/chatgpt-structured-data/ https://news.ycombinator.com/item?id=38782678
"Here's the name of a function I want to invoke along with its arguments. In order to continue computing, run the function (don't really care about how) and give me back the results".

DiazCarrete, to CSS
@DiazCarrete@hachyderm.io avatar

A loop in an element's css height property calculation, with unexpected results.

📽️ 🔗 https://youtu.be/6aHKdahOfCc?t=198

DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar

"Nesting APIs and ReaderT environments with Servant"
https://nicolashery.com/nesting-reader-environments-servant/

DiazCarrete,
@DiazCarrete@hachyderm.io avatar

The post tackles a subject which, expressed in Spring Framework terms, corresponds to "bean scopes" 🔗 https://docs.spring.io/spring-framework/reference/core/beans/factory-scopes.html

One special case is long-lived beans that depend on beans of a shorter scope (like, say, "request" scope) 🔗 https://docs.spring.io/spring-framework/reference/core/beans/factory-scopes.html#beans-factory-scopes-other-injection

DiazCarrete,
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar
DiazCarrete, (edited ) to random
@DiazCarrete@hachyderm.io avatar

IIUC, of the two main algorithms for topological sorting in directed acyclic graphs, only Kahn's algorithm allows you to give extra priority to some vertices, so that they appear earlier in the resulting ordering.

🔗https://en.wikipedia.org/wiki/Topological_sorting
🔗 https://jgrapht.org/javadoc-1.0.0/org/jgrapht/traverse/TopologicalOrderIterator.html#TopologicalOrderIterator-org.jgrapht.DirectedGraph-java.util.Queue-
🔗 https://www.cs.fsu.edu/~lacher/lectures/Output/graphs1/slide09.html

DiazCarrete, (edited ) to haskell
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

Interesting: it seems that is moving towards typechecking desugared expressions in some cases, instead of typechecking the surface syntax.

The tricky part is not making the error messages worse.

https://youtu.be/LFIL0myeOlo?list=PLyrlk8Xaylp5ahGXwF_NvYEhVOnedRIAs&t=469

DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

A History of Subtyping—Benjamin C. Pierce
🔗 📽️ https://www.youtube.com/watch?v=SiUBXvpo2eI

DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

"DON'T return arrays as top level responses" seems like a worthy candidate for the list of "YAGNI exceptions", among classics like "You might as well timestamp it".

🔗 https://github.com/stickfigure/blog/wiki/How-to-(and-how-not-to)-design-REST-APIs#rule-4-dont-return-arrays-as-top-level-responses
🔗 https://lukeplant.me.uk/blog/posts/yagni-exceptions/
🔗 https://changelog.com/posts/you-might-as-well-timestamp-it

DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

Functional programming concepts as music videos:

DiazCarrete, (edited ) to random
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar

Wrote a toy dependency injection library for . inductive tuples, graph topological sorting and dynamic typing under the hood.
https://discourse.haskell.org/t/cauldron-a-toy-dependency-injection-framework/8092

DiazCarrete, (edited ) to random
@DiazCarrete@hachyderm.io avatar

"The architect planned the construction [of the Sagrada Família] in phases because he believed that this would make it more difficult to abandon the project."

So, if I'm reading this correctly, Gaudí planned to complete the Nativity Facade before continuing with other parts of the building, to avoid a "everything started, nothing completed, project ultimately abandoned" kind of situation.

He tackled the project using a (literal) "vertical slice" strategy!

🔗 https://www.nationalgeographic.es/historia/sagrada-familia-diez-curiosidades

DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar
DiazCarrete,
@DiazCarrete@hachyderm.io avatar

Found this lexi_lambda video about worker/wrapper which gives an example of optimizing records away:
https://youtu.be/XiTO1EGKrhE?t=1030

DiazCarrete, to Logic
@DiazCarrete@hachyderm.io avatar
DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar

"the very definition of the GHC profiler makes it of limited use when estimating time on two classes of computations: firstly, those that need to do blocking IO; and secondly, some computations that invoke functions written in other programming languages."
https://www.tweag.io/blog/2022-07-28-timestats/
Sometimes you have to turn to the eventlog
https://well-typed.com/blog/2019/09/eventful-ghc/
https://hackage.haskell.org/package/ghc-events
https://downloads.haskell.org/ghc/latest/docs/users_guide/eventlog-formats.html

DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

I was trying to reproduce some of the laziness issues described in this old (2016) but very in-depth article at the Well-Typed blog:
https://well-typed.com/blog/2016/09/sharing-conduit/
But I'm not able to reproduce them when compiling with -O2 --rtsopts (and using GHCRTS=-M20m to limit the size of the heap so that it fails faster in case of a leak) on GHC 9.6.2.

I wonder what has changed in the meantime.
https://gist.github.com/danidiaz/512aaf61e068a650ba5d4908758e30bd

DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

"he could not think this way, he had to take a sheet of paper, and he started writing"
https://lobste.rs/s/qgjisu/software_engineering_is_about_thinking#c_wzkfko

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • cubers
  • magazineikmin
  • GTA5RPClips
  • khanakhh
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • thenastyranch
  • everett
  • osvaldo12
  • kavyap
  • rosin
  • anitta
  • DreamBathrooms
  • Durango
  • modclub
  • ngwrru68w68
  • vwfavf
  • ethstaker
  • tester
  • cisconetworking
  • tacticalgear
  • Leos
  • provamag3
  • normalnudes
  • JUstTest
  • All magazines