Val

joined 2 years ago
MODERATOR OF
[–] [email protected] 3 points 2 days ago* (last edited 2 days ago) (1 children)

this is what doctor who does. Just like in the 80s. It has it's ups and down, but its always changing. That's what makes it special. The doctor regenerates, the show-runner changes and the show moves on. It's not like the other shows that just get cancelled. It's doctor who. It's the longest running sci-fi show in the world.

[–] [email protected] 3 points 6 days ago (1 children)
  • nc - ncurses
  • mpc - music player client
  • cpp - C plus plus
[–] [email protected] 4 points 6 days ago* (last edited 6 days ago)

interesting you used grep because it's a command that has a very clear origin.

in ed/vi the g command was used to run commands on some pattern. eg g/[regex pattern]/[command]

the p command was used to print current line so to print any line that matched the string "grep" you would do: g/grep/p.

when this was made into a seperate command it was called grep: g/re/p. using re to denote regex.

[–] [email protected] 1 points 2 weeks ago (1 children)

I don't know if this is that internet hyperbole thing but just want to point out that Disney bought the worldwide distribution rights for a couple dozen episodes, not the actual show itself. BBC still owns the show and has the UK distribution rights.

 

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

[–] [email protected] 5 points 1 month ago* (last edited 1 month 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

 
[–] [email protected] 6 points 2 months 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.

[–] [email protected] 5 points 2 months 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?

[–] [email protected] 57 points 2 months ago

and people complain about wayland.

[–] [email protected] 2 points 2 months 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",
  }
}
[–] [email protected] 0 points 2 months 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.

[–] [email protected] 3 points 2 months ago

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

 

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

13
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

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.

 
 

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 ›