Val

joined 2 years ago
MODERATOR OF
 

cross-posted from: https://lemm.ee/post/56400451

Started with blender but when the eraser started lagging I switched to krita.

CC0 - No Rights Reserved

 

Started with blender but when the eraser started lagging I switched to krita.

CC0 - No Rights Reserved

[–] Val@lemm.ee 5 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Was inspired by the article to draw this. Sadly It doesn't make much sense without context.

You do not own the words you say

 
[–] Val@lemm.ee 6 points 3 weeks ago

First of all: Are you assuming I'm in America? If you are then you're wrong. And moving to somewhere currently going through mass deportations is just taking a huge unnecessary risk.

Secondly: while an unstable political situation could be a good motivator to get people organizing collectively, It's also equally likely that an authoritarian state emerges that will suppress any attempt to reduce peoples dependency to the state. While it would be exciting I don't think I'm personally up for it.

I think that it is safer to begin collectivisation somewhere that's more politically stable to grow a big enough following that when hostilities start you could hold your own. Unless some place already has a lot of anarchic/syndicalist thought then It's going to be hard to start it with everyone at each-others throats.

And it's also possible I've misunderstood you're comment and you're using anarchy as a synonym for chaos. In which case I just want to point out that my use is different. When I say anarchy I mean a power structure based on mutual aid and strong interpersonal relations without any leaders or hierarchy.

[–] Val@lemm.ee 5 points 3 weeks ago (2 children)

I am an EU citizen so Ireland will probably be easier but I'm wondering by how much. I'm much more drawn to the UK as I am more connected to It's culture.

My biggest concern is finding new connections. I struggle with it here as well and I don't think moving to another country will just magically make that go away. Although I do feel more confident in English than in my native language.

 

I'm a young anarchist thinking about moving to a different country (in my case UK or Ireland). I'm wondering what the best way to begin would be.

I imagine that having some contacts in the country would be a good place to start, but how to get them? Maybe you could share some tips?

[–] Val@lemm.ee 58 points 1 month ago

and people complain about wayland.

[–] Val@lemm.ee 2 points 1 month ago

The Idea is that the enum acts as a union, capable of holding any of the member types, It's not that different from using identifiers and when transpiling to rust I will probably only support variants beginning with string literals (or maybe generate them).

The main reason is that I could use type inference to define the variants in a returned anonymous enum.

I like the pipe symbol because it is useful for distinguishing between enums and structs without keywords. And I just personally think it looks better. And allow for pretty anonymous enums like (|String |Int) for something that can accept both a string and an integer.

 

I'm making a language with a lot of inspiration from rust and was experimenting with alternative enum syntax. It relies on literals to be types in order to convey information on the different options.

I don't really get on well with Typescript but having the ability to use literals as types is something I really liked as a lot of the times I use static string literals as errors. and having all the variants upcast through types makes it easier to do pattern matching.

Plain-text transcription of the image:

// using rust like enum syntax
Option<T> (
  | "Some" T
  | "None"
)

fn match_demo() {
  let some_option = Option "Some" "text";
  let none_option = Option "None";

  match some_option {
    "Some" "hello" => print("oh hi there"),
    "Some" text => print("Option is {text}"),
    "None" => print("Option is {text}"),
  }
}

// Or maybe more experimental syntax
Option<T> (
  | T
  | ()
)

fn match_demo2() {
  let opt = Option "something";
  match opt {
    "text" => "matching directly",
    var => "bind to variable",
    () => "nothing",
  }
}
[–] Val@lemm.ee 0 points 1 month ago

I needed a way to bootstrap the tree-sitter parser. I should probably provide the bootstrapped grammar.json as well. That way you don't need to generate it.

[–] Val@lemm.ee 3 points 1 month ago

Not having a license is "All Rights Reserved". That's why I bothered with the license section in the readme at all.

[–] Val@lemm.ee 4 points 1 month ago

Thanks!

I intend for the language to have a similar borrow checker and type system. Which is why I'm targeting rust. It means I have something to check against when writing the tooling. (Although I'm not sure I'll get that far. My computer is littered with dead projects).

[–] Val@lemm.ee 1 points 1 month ago (2 children)

I don't really want to clutter the repo with something so frivolous. If they were links or an SPDX ID would that be enough?

[–] Val@lemm.ee 4 points 1 month ago (2 children)

I'm intending to use this for a custom language "OA" that I want to compile to Rust and JS to start with.

I don't know enough about LLVM to compile directly to machine code although I would like to.

 

cross-posted from: https://lemm.ee/post/52336135

0
I made a thing. (codeberg.org)
13
submitted 1 month ago* (last edited 1 month ago) by Val@lemm.ee to c/anaval@lemm.ee
 

Original in this post: https://lemmy.dbzer0.com/post/33311504

I thought it was cool and spent an hour in Inkscape trying to recreate it.

 
[–] Val@lemm.ee 1 points 1 month ago (1 children)

You can use Unicode pictures: ␜ ␝ ␞ ␟

https://en.wikipedia.org/wiki/Control_Pictures

 

After needing to find a small delimiter for my data format I started wondering if I could use 0x1E-0x1F?

They are part of the control codes so I thought they might do something weird?

https://en.wikipedia.org/wiki/C0_and_C1_control_codes#Field_separators

 

feel free to remove if it's too low quality. Just wanted to post somewhere nice for a change.

view more: next ›