HackerTrans
TopNewTrendsCommentsPastAskShowJobs

TheMatten

no profile record

comments

TheMatten
·anno scorso·discuss
Glasgow Haskell Compiler project does this: https://gitlab.haskell.org/ghc/ghc/-/tree/master/testsuite/t...

Every test starting with T and a number is an example created from a corresponding issue in their tracker. And there is, well, a lot of them.
TheMatten
·anno scorso·discuss
I've just tried it in one of the supported languages, and it seems to respond far better than any model under 24B that I've tried before. With its licensing, it sounds much more exciting to me than the OP.
TheMatten
·anno scorso·discuss
Another fun one in case someone's interested: the post shows an example of a type that may sometimes lack the inner value of a given type (`Maybe a`), but what about type that never contains such inner value? Would it be useful? And could you define some interface in style of `Functor` class that would prove this property?
TheMatten
·2 anni fa·discuss
My point was about the sentence from the original post - its not the consequence of sound type system, its the consequence of choice of runtime representation. If runtime checking matters (which it does in practice), then we don't get any advantage in terms of simplicity by using "unsound" system, because we need to write that code anyway.
TheMatten
·2 anni fa·discuss
The representation would be _the_ runtime representation of those types - in the same way as TypeScript objects are just JavaScript objects with static analysis. The choice of representation is a matter of performance and statically-typed languages usually choose to compile every type to custom representation simply because it makes things more efficient, not because they have to. Unless you implement some baked-in reflection mechanism, there isn't really anything that ties runtime representation to its type, which is a compile-time concept.

The other problem is ensuring that such casting is safe, but that requires runtime checking even in dynamically typed languages.
TheMatten
·2 anni fa·discuss
Very nice release, Gleam looks like a good contender for "high-level Rust".

Small nitpick:

> One drawback of this sound type system is that converting untyped input from the outside world into data of known types requires some additional code which would not be required in unsound systems.

It isn't really consequence of its sound type system, but its runtime representation - assuming it requires type information to be safely constructed and manipulated, you really need to generate code to do so, but the compiler could instead choose to use more dynamic representation, e.g. compiling to ordinary Erlang maps / JS objects.
TheMatten
·2 anni fa·discuss
You seem to have a very specific use case in mind and I am not really sure whether Prolog is going to be a good fit, but there was recently a discussion about the language: https://news.ycombinator.com/item?id=40994552

Specifically, this online book (mentioned in that discussion) may be a good resource, I've used author's content as a reference several times: https://www.metalevel.at/prolog
TheMatten
·2 anni fa·discuss
In a sense, doesn't speaking naturally in front of a camera require you to be more fake?

It's not the easiest thing to do, trying to address audience without any feedback, looking at a black object sitting in a room, in multiple attempts and with random interruptions needed to fix technical issues or change shot, while pretending that it is all part of normal, continuous discussion.

People watch him because he is genuinely good at what he does, not because of his presentation or editing skills.
TheMatten
·2 anni fa·discuss
Hi Andy! Deno basically restored my hope in being able to understand (T|J)S tooling, thanks for working on this amazing project.

2 questions:

Support for TS in notebooks in VSCode(ium) is currently broken; are there plans for resolving issues with definitions used across different cells?

Future plans for bundler sound interesting - is it something potentially able to replace e.g. esbuild for bundling frontend applications? I'm specifically curious because that would imply (static) Deno's import resolution for browser-run apps - one can use @luca's esbuild plugin, which is nice, but interacts poorly with other, custom plugins and has some rough edges.
TheMatten
·2 anni fa·discuss
Thanks a lot!
TheMatten
·2 anni fa·discuss
What sort of API can be used for this? Is it a special proxy setting, extension or WebDriver client?
TheMatten
·2 anni fa·discuss
This one in Haskell is coincidental, but used as a joke:

``` import Data.Function

main = do let it = fix error print it ```
TheMatten
·2 anni fa·discuss
> Wow, lord of the flies was a big lie then.

This article from Guardian touched on this: https://www.theguardian.com/books/2020/may/09/the-real-lord-...
TheMatten
·2 anni fa·discuss
I don't think it's really about Latin vs Cyrillic. Cyrillic is indeed very natural even for Slavic languages that only use Latin (modulo language-specific tweaks), but same results can be achieved with diacritics in Latin - take a look at Czech, Slovak and Serbo-Croatian alphabets. On the other hand, Polish alphabet really feels painful to an outsider, but that seems to be more about how it uses Latin, not about Latin itself.
TheMatten
·2 anni fa·discuss
> I can also visualize images in my head but they too are typically accompanied by some language like "I am now visualizing a Hot Dog".

I can certainly have thoughts not accompanied by a language, for example visualizing graph-like or higher-dimensional operations from math/CS more quickly than I could come up with their description. Or "simulating" physical objects, or even whole visual scenarios resembling real life.

But it makes me wonder whether it once again isn't about training or being "wired" for different types of thought. And if it's training, then specific language features may as well force people to exercise and improve specific ways of thinking about problems. It's just that it doesn't have to be limited to language.