Better HN
topnewbestaskshowjobs
Log inSign up

plainOldText

2,806 karma · joined Apr 28, 2010 (16y ago) · 678 submissions

Submissions

comment 1y ago · link · parent

I am not associated with the project, so I cannot answer that.

comment 1y ago · link · parent

This video https://youtu.be/TBrPyy48vFI?t=1277 is a few years old, but it covers how the GRiSP platform combines Erlang and RTEMS Real-time OS [1] to overcome Erlang VM's soft real-time limitations and achieve hard real-time event handling.

[1] https://www.rtems.org/

33.

Erlang 28 on GRiSP Nano using only 16 MB(grisp.org ↗)

190 points · by plainOldText · 1y ago · 26 comments

comment 1y ago · link · parent

Sorry, I wasn't clear. Yes, you can have pipelines in Flix, F#, OCaml, to me however placing the "subject" first feels more natural, as function signatures (not necessarily in pipelines) have a symmetry not encountered otherwise:

Subject First:

  Map.put(map, key, value)
  Map.get(map, key)
  Map.get(map, key, default)
  Map.del(map, key)
Subject Last:

  Map.put(key, value, map)
  Map.get(key, map)
  Map.get(key, default, map)
  Map.del(key, map)

comment 1y ago · link · parent

Heads up, the links to Paul Butcher's datalog posts are broken. The series can be found here now: https://paulbutcher.com/datalog1.html

comment 1y ago · link · parent

I think their DIDYOUKNOW.md file in the source code is worth showing in full, as it describes the language in a more compact form:

---

# Did You Know?

## Language

Did you know that:

- Flix offers a unique combination of features, including: algebraic data types and pattern matching, extensible records, type classes, higher-kinded types, polymorphic effects, and first-class Datalog constraints.

- Flix has no global state. Any state must be passed around explicitly.

- Flix is one language. There are no pragmas or compiler flags to enable or disable features.

- Flix supports type parameter elision. That is, polymorphic functions can be written without explicitly introducing their type parameters. For example, `def map(f: a -> b, l: List[a]): List[b]`.

- the Flix type and effect system can enforce that a function argument is pure.

- Flix supports effect polymorphism. For example, the `List.map` function is effect polymorphic: its purity depends on the purity of its function argument.

- in Flix every declaration is private by default.

- In Flix no execution happens before `main`. There is no global state nor any static field initializers.

- Flix supports full tail call elimination, i.e. tail calls do not grow the stack. Flix -- being on the JVM -- emulates tail calls until Project Loom arrives.

- Flix supports extensible records with row polymorphism.

- Flix supports string interpolation by default, e.g. "Hello ${name}". String interpolation uses the `ToString` type class.

- Flix supports the "pipeline" operator `|>` and the Flix standard library is designed around it.

- In Flix type variables are lowercase and types are uppercase.

- In Flix local variables and functions are lowercase whereas enum constructors are uppercase.

- Flix supports set and map literals `Set#{1, 2, 3}` and `Map#{1 => 2, 3 => 4}`.

- Flix supports monadic do-notation with the `let*` construct.

- Flix supports "program holes" written as either `???` or as `?name`.

- Flix supports infix function applications via backticks.

- Flix compiles to JVM bytecode and runs on the Java Virtual Machine.

- Flix supports channel and process-based concurrency, including the powerful `select` expression.

- Flix supports first-class Datalog constraints, i.e. Datalog program fragments are values that can be passed to and returned from functions, etc.

- Flix supports compile-time checked stratified negation.

- Flix supports partial application, i.e. a function can be called with fewer arguments that its declared formal parameters.

- the Flix type and effect system is powered by Hindley-Milner. The same core type system that is used by OCaml, Standard ML, and Haskell.

- the Flix type and effect system is sound, i.e. if a program type checks then a type error cannot occur at run-time. If an expression is pure then it cannot have a side-effect.

- the Flix type and effect system supports complete type inference, i.e. if a program is typeable then the type inference with find the typing.

- The Flix "Tips and Tricks"-section https://doc.flix.dev/tipstricks/ describes many useful smaller features of the language.

- Flix has a unique meta-programming feature that allows a higher-order functions to inspect the purity of its function argument(s).

- Flix names its floats and integers types after their sizes, e.g. `Float32`, `Float64`, `Int32` and `Int64`.

- Flix -- by design -- uses records for labelled arguments. Records are a natural part of the type system and works for top-level, local, and first-class functions.

- Flix -- by design -- has no implicit coercions, but provide several functions for explicit coercions.

- Flix -- by design -- disallows unused variables and shadowed variables since these are a frequent source of bugs.

- Flix -- by design -- disallows allow unused declarations. This prevents bit rot.

- Flix -- by design -- does not support unprincipled overloading. Instead, functions are given meaningful names, e.g. `Map.insert` and `Map.insertWithKey`.

- Flix -- by design -- does not support variadic functions. We believe it is better to pass an explicit array or list.

- Controversial: Flix defines division by zero to equal zero.

- Controversial: Flix defines String division as concatenation with the path separator. For example, `"Foo" / "Bar.txt" => "Foo\Bar.txt"` on Windows.

## Standard Library

Did you know that:

- Flix has an extensive standard library with more than 2,600 functions spanning more than 30,000 lines of code.

- the Flix Prelude, i.e. the functions which are imported by default, is kept minimal and contains less than 20 functions.

- most higher-order functions in the Flix standard library are effect polymorphic, i.e. they can be called with pure or impure functions.

- the Flix type and effect system enforces that equality and ordering functions must be pure.

- the Flix standard library uses records to avoid confusion when a function takes multiple arguments of the same type. For example, `String.contains` must be called as `String.contains(substr = "foo", "bar")`.

- the Flix `List` module offers more than 95 functions.

- the Flix `String` module offers more than 95 functions.

- the Flix `Foldable` module offers more than 30 functions.

- the Flix standard library follows the convention of "subject-last" to enable pipelining (`|>`).

## Ecosystem

Did you know that:

- Flix has an official Visual Studio Code extension.

- Flix has an official dark theme inspired by Monokai called "Flixify Dark".

- the Flix website (https://flix.dev/) lists the design principles behind Flix.

- Flix has an online playground available at https://play.flix.dev/

- Flix has online API documentation available at https://doc.flix.dev/

- the Flix VSCode extension uses the real Flix compiler.

- the Flix VSCode extension supports auto-complete, jump to definition, hover to show the type and effect of an expression, find all usages, and more.

- the Flix VSCode extension has built-in snippets for type class instances. Try `instance Eq [auto complete]`.

- the Flix VSCode extension supports semantic highlighting.

- the Flix VSCode extension has built-in "code hints" that suggests when lazy and/or parallel evaluation is enabled or inhibited by impurity.

- Flix has community build where Flix libraries can be included in the CI pipeline used to build the Flix compiler.

- Flix has a nascent build system and package manager based on GitHub releases. Today it is possible to build, package, and install Flix packages. Dependency management is in the works.

## Compiler

Did you know that:

- Flix -- by design -- has no compiler warnings, only compiler errors. Warnings can be ignored, but errors cannot be.

- the Flix compiler uses monomorphization hence primitive values are (almost) never boxed.

- the Flix compiler supports incremental and parallel compilation.

- the Flix compiler has more than 28 compiler phases.

- the Flix compiler contains more than 80,000 lines of code.

- the Flix compiler has more than 13,500 manually written unit tests.

- the performance of the Flix compiler is tracked at https://arewefast.flix.dev/

## Other

Did you know that:

- Flix is developed by programming language researchers at Aarhus University (Denmark) in collaboration with researchers at the University of Waterloo (Canada), and at Eberhard Karls University of Tübingen (Germany), and by a growing open source community.

- Several novel aspects of the Flix programming language has been described in the research literature, including its type and effect system and support for first-class Datalog constraints.

- Flix is funded by the Independent Research Fund Denmark, Amazon Research, DIREC, the Stibo Foundation, and the Concordium Foundation.

- more than 50 people have contributed to the Flix compiler.

- more than 2,000 pull requests have been merged into the Flix compiler.

comment 1y ago · link · parent

This language seems to be aiming high. Congrats!

Looking at their code however, I'm realizing one thing Elixir got "right", in my view, is the order of arguments in function calls.

For example, in Elixir to retrieve the value associated with a key in a map, you would write Map.get(map, key) or Map.get(map, key, default).

This feels so natural, particularly when you chain the operations using the pipe operator (|>):

  map
  |> Map.put(key, value)
  |> Map.get(key)
In Flix it seems one needs to write Map.get(x, map), Map.insert(x, y, map). I guess it follows in the footsteps of F#.

comment 1y ago · link · parent

Sure, it's reasonable to consider a switch. But while Android devices have come a long way in terms of physical design, capabilities, UI/UX, etc, out of the box Apple still offers a more comprehensive, user friendly and privacy focused security solution: lockdown, tighter controls of hardware/software integration, etc. So there's that.

comment 1y ago · link · parent

This looks horrible to be honest.

This new liquid glass will lead to liquid brain, because my brain will be melting trying to process all that visual mess daily.

Now of course, I'll have to experience this new design in practice to be sure, but judging from the screenshots it looks really hard on the eyes. Hopefully they'll allow the translucency to be customized.

Apple had a good run, I've genuinely enjoyed using their platforms daily, but I'm afraid they're dropping the ball now.

I guess on a long enough timeline, every company is bound to disappoint. It's hard to get it right, consistently.

comment 1y ago · link · parent

Indeed. There’s a port for macOS though.

And yet out all these newer C-like languages, it looks like Hare probably takes the crown for simplicity. Among other things, Hare uses QBE[1] as a backend compiler, which is about 10% the complexity of LLVM.

[1] https://c9x.me/compile/

comment 1y ago · link · parent

Has anyone tried both C3 and Hare[1]. How do they fare? There seems to be quite the overlap between the two.

[1] https://harelang.org/

comment 1y ago · link · parent

I think these are key thoughts worth considering going forward:

  > Code is not an asset, it's a liability.

  > Every line must be maintained, debugged, secured, and eventually replaced. The real asset is the business capability that code enables.

  > The skill that survives and thrives isn't writing code. It's architecting systems. And that's the one thing AI can't do.

43.

The Inko Programming Language(inko-lang.org ↗)

2 points · by plainOldText · 1y ago · discuss

comment 1y ago · link · parent

The 5-part series by Fabien Sanglard is really good. Thanks for sharing!

45.

Elixir OpenChain Certification(elixir-lang.org ↗)

6 points · by plainOldText · 1y ago · discuss

46.

A decade of developing a programming language (2023)(yorickpeterse.com ↗)

1 points · by plainOldText · 1y ago · discuss

comment 1y ago · link · parent

This looks promising!

One suggestion to make it more usable:

If I hover over a word in the foreign language, I should instantly see the equivalent word(s) in English highlighted. This way I can look up the words I do not know know very quickly, w/o interrupting the listening experience.

Yes, I know I can click on a word to see what it means, but it's too slow for the purpose of identifying its English equivalent.

comment 1y ago · link · parent

Until now, the march of technology has taken place through a realm which was somewhat limited or slowed down only by our advancements in the physical and cognitive realities. This has given us ample time to catch up, to adjust.

The cognitive reality of AI, and more specifically of AI+Humans in the context of a social and globally connected world, is on a higher level of sophistication and can unfold much faster, which in turn might generate entirely unexpected trajectories.

comment 1y ago · link · parent

Yeah, there are many scenarios that could unfold now due to the sophistication and capabilities of AI.

comment 1y ago · link · parent

Indeed, our trade has changed forever, and more specifically, we might have to alter our operational workflows in the entire industry as well.

There are so many potential trajectories going forward for things to turn sour, I don't even know where to start the analysis. The level of sophistication an AI can achieve has no upper bound.

I think we've had a good run so far. We've been able to produce software in the open with contributions from any human on the planet, trusting it was them who wrote the code, and with the expectation that they also understand it.

But now things will change. Any developer, irrespective of skill and understanding of the problem and technical domains can generate sophisticated looking code.

Unfortunately, we've reached a level of operational complexity in the software industry, that thanks to AI, could be exploited in a myriad ways going forward. So perhaps we're going to have to aggressively re-adjust our ways.

comment 1y ago · link · parent

I just commented this on a related story, so I'll just repost it here:

Can’t help but wonder about the reliability and security of future software.

Given the insane complexity of software, I think people will inevitably and increasingly leverage AI to simplify their development work.

Nevertheless, will this new type of AI assisted coding produce superior solutions or will future software artifacts become operational time bombs waiting to unleash the chaos onto the world when defects reveal themselves?

Interesting times ahead.

comment 1y ago · link · parent

Can’t help but wonder about the reliability and security of future software.

Given the insane complexity of software, I think people will inevitably and increasingly leverage AI to simplify their development work.

Nevertheless, will this new type of AI assisted coding produce superior solutions or will future software artifacts become operational time bombs waiting to unleash the chaos onto the world when defects reveal themselves?

Interesting times ahead.

53.

Firebase bill is usually $50, but I was surprised to see a $70k bill in one day(twitter.com ↗)

117 points · by plainOldText · 1y ago · 158 comments

54.

Elixir 1.18 Released(elixir-lang.org ↗)

70 points · by plainOldText · 1y ago · 5 comments

55.

Mnist Neural Network Written from Scratch in Odin(github.com ↗)

2 points · by plainOldText · 2y ago · 1 comment

comment 2y ago · link · parent

Yeah, that’s impressive indeed.

Works with base16, btw.

comment 2y ago · link · parent

Your site is very well designed and easy to read btw, and the app UI looks great from the demo photos. I might try it!

comment 2y ago · link · parent

On one hand computer and information science degrees have experienced the highest growth among undergrad degrees [1], so lots of people are joining in, but on the other I'm curious to hear from the people who have left.

Is anyone who has exited the tech world still reading HN? What's it like on the outside?

[1] https://www.visualcapitalist.com/cp/charted-most-popular-u-s...

59.

Why Static Typing Came Back (2022) [video](youtube.com ↗)

2 points · by plainOldText · 3y ago · 1 comment

12345
23