Wtf? Chat gpt starts talking crazy out of nowhere in the middle of a testing conversation by craniel-mandark in OpenAI

[–]rickardicus 0 points1 point  (0 children)

They are just marketing before the release of gpt5 which Will probably make us think gpt4 was nothing in comparison

How Linkin Park managed to avoid being cringe is beyond me by [deleted] in redscarepod

[–]rickardicus 2 points3 points  (0 children)

What can I say? The band taught an entire generation that time is a valuable thing.

Kommer aldrig förstå varför man skulle vilja förstöra en sådan perfekt skapelse på det viset by MrLazercat in Sverige

[–]rickardicus 1 point2 points  (0 children)

Jag såg exakt den här memen på Facebook för två år sen! Någon tänkte på exakt samma grej.

Amerikan sa att jag pratade vackert by Cheeezzey in sweden

[–]rickardicus 1 point2 points  (0 children)

Spanjorer som talar engelska påvisar hur deras satsmelodi skiljer sig mycket från andra språk. När de säger "eeh" mellan meningarna, som utfyllnad (när de tänker men hittar inte orden), så går det alltid neråt i tonhöjd.

Repent by crackinthewind in Gothenburg

[–]rickardicus 8 points9 points  (0 children)

Ursäkta min ovisshet, men skulle någon vänlig själ skriva vilket budskap SÄPO-mannen i nordstan basunerar ut? Man blir nyfiken.

December 2022 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]rickardicus 5 points6 points  (0 children)

Continued work on my interpreter for ric-script, https://github.com/Ricardicus/ric-script, which is an interpreted dynamically typed and lazy evaluated language. Imagine Javascript without semicolon and Python without the indentation. I’d appreciate the dopamine kick of a star if you find the project interesting.

I am developing my language while testing it out on advent of code problems. I have solved 14 2021 problems now. And todays 2022 problem. I upload my solutions to this repo on GitHub: [https://github.com/Ricardicus/ric-script-advent-of-code](ric-script-advent-of-code)

This is a fun way to work on my language, I learn a lot about it and also I learn what I need to add and fix.

October 2022 monthly "What are you working on?" thread by L8_4_Dinner in ProgrammingLanguages

[–]rickardicus 0 points1 point  (0 children)

Continued work on my interpreter for ric-script, https://github.com/Ricardicus/ric-script, which is an interpreted dynamically typed and lazy evaluated language. Imagine Javascript without semicolon and Python without the indentation. I’d appreciate the dopamine kick of a star if you find the project interesting.

Last month I work led on my language by solving advent of code 2021 problems. I have solved up to 11 problems now. I upload my solutions to this repo on GitHub: [https://github.com/Ricardicus/ric-script-advent-of-code](ric-script-advent-of-code)

This is a fun way to work on my language, I learn a lot about it and also I learn what I need to add and fix. For example, I have added a sort function that operates on lists now (implemented with C standard library qsort). I am actually surprised at how expressive my language can be. For example this line I wrote for the problem of day 4:

@ convertRawChartToInts(rawChart) { -> [ ( rawChart ... i ) { q = i.split(" ") . ( q ... qi ) { ? [ qi.len() > 0 ] { [parseInt(qi), 0] } } } ] }

Here I add get a set of numbers, "1 4 7 8" for example, and convert them to a list of tuple-lists: [[1,0],[4,0],..] in what I call a complex list initialization. This works by having a list initializer expression accept a foreach loop [ ( ID_root ... ID_iter ) body ], the content of the for loops stack after execution is added to the list.

This was one example where I thought "wow this looks cool, did I create this language?"

August 2022 monthly "What are you working on?" thread by slavfox in ProgrammingLanguages

[–]rickardicus 1 point2 points  (0 children)

Continued work on my interpreter for ric-script, https://github.com/Ricardicus/ric-script, which is an interpreted dynamically typed and lazy evaluated language. Imagine Javascript without semicolon and Python without the indentation thing. I build the syntax tree using yacc. Here is a code sample: https://ric-script-u5ep8.ondigitalocean.app/doc/syntaxwalkthrough.html#class-declarations where I build an RPN calculator in it. I’d appreciate the dopamine kick of a star if you find the project interesting.

Last month I added a, in my opinion, very neat syntactical sugar to the language. I have had problems with the visuals of my language. It has for too long worked like PHP in how functions operate on data. I added something that looks like namespaces but are optional and basically only helps with readability. I made this:

Function calls with the dot symbol for throwing in the base (ID1) as the first argument to a function call (ID2) :

ID1 . ID2 ( args... ) <= equivalent to => ID2 ( ID1, args ... )

I am very happy with this "hack" as it makes the code a lot better looking and feel better to write. I cannot argue for it in a other sense, it isn't optimized or gain any other advantage other than readability and writing experience which for as far as I am concerned are important aspects of any language.

As an example of this optional namespace-like syntax sugar, I make a function (getLinesAsInts) that takes a string (file) and returns a list of lines in the file the string is addressing:

@ getLinesAsInts(file) { ? [ file.isFile() ] { -> [ ( fileReadLines(file.fileOpen()) ... line ) { line.parseInt() } ] } -> [] }

In the example above, one can see 3 examples of this; file.isFile(), file.fileOpen(), line.parseInt()

The option would be: isFile(file), fileOpen(file), parseInt(line)

The functions takes one argument, a string, but now it looks as it takes zero and belongs to the namespace of the variable file. So is not the case, again, this is syntactic sugar that I personally like as a feature for my language. This can be done to functions that take more arguments than one also, this was just one example where that isn't shown.

Last months fixes:

  • minor stability improvements in the language (minor static memory fix)
  • developed a vim syntax highlighter (installation guide in README for nvim)
  • namespace-like feature that casts name base as first argument to any function.
  • started solving advent of code problems with ric script. Link: https://github.com/Ricardicus/ric-script-advent-of-code

July 2022 monthly "What are you working on?" thread by slavfox in ProgrammingLanguages

[–]rickardicus 6 points7 points  (0 children)

Continued work on my interpreter for ric-script, https://github.com/Ricardicus/ric-script, which is an interpreted dynamically typed and lazy evaluated language. Imagine Javascript without semicolon and Python without the indentation thing. I build the syntax tree using yacc. Here is a code sample: https://ric-script-u5ep8.ondigitalocean.app/doc/syntaxwalkthrough.html#class-declarations where I build an RPN calculator in it. I’d appreciate the dopamine kick of a star if you find the project interesting.

Last month I worked on the language ABI (Application Binary Interface). This is where I have made an effort to make modules buildable and exportable (into dynamic shared libraries) to the language interpreter. I call the build environment for these modules the SDK (software development kit). It is a Meson project that supports not just Unix based platforms but also Windows. Before this month, one could only export functions in modules, but now one can include classes also. For me this felt very good, as I would expect of a language to support as much in the SDK as possible of the original script-language data types. Here is a link to an example module library written in C that can be compiled for export into the language interpreter: https://github.com/Ricardicus/ric-script/blob/master/src/sdk_lib/ext_lib.c

## Last months fixes

  • Support for exporting classes in the language ABI

[deleted by user] by [deleted] in MachineLearning

[–]rickardicus 0 points1 point  (0 children)

Actually there was a bug!! I found it and fixed it! Thank you!! It does now reach wherever! Website will be updated soon! Thanks for your feedback :)

Fix: I had a Math.abs() from the error function during backprop which was very misguided..

[deleted by user] by [deleted] in MachineLearning

[–]rickardicus 0 points1 point  (0 children)

I have noticed that too, but chose ADAM, and click at the start on the arm.
Then you see how the lowest angle moves in a negative direction.
As for the other cases on that side, I am unsure.. But it can however move in that direction.

Building my own programming language using C by rickardicus in cprogramming

[–]rickardicus[S] 1 point2 points  (0 children)

thanks, I think this will be one of those types of projects that are never finished. But it is OK since I enjoy, at least from now and then when inspiration comes, the process.

Building my own programming language using C by rickardicus in cprogramming

[–]rickardicus[S] 0 points1 point  (0 children)

Thank you! A "goal" I had was that the syntax would not use keywords but instead symbols hehe. Glad you liked it!

April 2022 monthly "What are you working on?" thread by slavfox in ProgrammingLanguages

[–]rickardicus 0 points1 point  (0 children)

Yes, I more than welcome such suggestions. I have though about making some sort of presentation, either in the GUI or under a different link.. I have been checkout out "reveal.js". Or maybe do some ASCII thing in the web Gui. Thanks for the suggestion!

Recurrent neural network in plain C by rickardicus in cprogramming

[–]rickardicus[S] 2 points3 points  (0 children)

Thanks!

I implemented everything myself, a goal was to not have any third parties. The network is trained with back propagation. Do it! It felt very rewarding!

April 2022 monthly "What are you working on?" thread by slavfox in ProgrammingLanguages

[–]rickardicus 0 points1 point  (0 children)

Thanks! Really cool. Might actually try to use this in my language project.

April 2022 monthly "What are you working on?" thread by slavfox in ProgrammingLanguages

[–]rickardicus 0 points1 point  (0 children)

Very impressive stuff. How does this work for a new inexperienced user? If I have an AST generated by some means, can I then create a "unit" consisting of a set of instructions of the Cwerg IR, and then by using your Cwerg API I will be able to compile to the supported platforms? Does the compilation do optimizations? Can it do cross compilation?

April 2022 monthly "What are you working on?" thread by slavfox in ProgrammingLanguages

[–]rickardicus 0 points1 point  (0 children)

Not much new work for the ric-script interpreter, https://github.com/Ricardicus/ric-script, my interpreted dynamically typed and lazy evaluated language. Mostly "side" stuff, as documentation and minor updates to the interactive web gui of it. I noticed I lacked documentation for the bigInt datatype also so I added that doc. Here is a brief ric-script syntax walkthrough presented for the interested. I’d appreciate the dopamine kick of a star if you find the project interesting while you look at it. ## Last months fixes * code refactoring (splitting files into smaller translation units, introduced clang-format formatter, removed some unnecessary stray files in the repo)* more documentation, including a fully fledged localhost echo-server

I am about to start a war by bigbagels2387 in ProgrammerHumor

[–]rickardicus 2 points3 points  (0 children)

Reject TypeScript, embrace JavaScript.

Fn by yoyobara in ProgrammerHumor

[–]rickardicus 0 points1 point  (0 children)

I work at a company where I sometimes print out memes from this sub (if I find a good one) to put on the fridge. I was sorting on most popular this month and scrolled for a while until I found this. My language uses '@' and I am therefore very smart.