niko,
@niko@mk.absturztau.be avatar

My language has changed a bit since it was first created so I dunno if Lang fits but basically it's a text processing language and specialized for things like parsing data like CSV, JSON and other programming languages and making compilers. Originally my only goal was for it to be very good for compilers, assemblers, etc so that's why I called it "Language for Languages" so just Lang

steffo,
@steffo@junimo.party avatar

@niko can the current draft be seen somewhere? 👀

i'm curious!

18+ niko,
@niko@mk.absturztau.be avatar

@steffo I dont know if I should spend the effort publishing scraps when I could work to finish it. Basically it will be similar to C in syntax kinda but it's pretty different and specialized. It basically adds buffers, tokens and processes as well as objects now which can implement linked lists and thus symbols tables, etc... . Everything works with a buffer in Lang, even the code being executed is inside a buffer and you can compile things in real time and you get back a buffer which you can execute. Buffers can be iterated through with tokens/processes, for example, you can have a rule like ;'A'-'Z':C -> exp8{32 + C[0]} and you can apply this to the entire input buffer. This specific rule just takes all letters from A to Z and turns them into lowercase by adding 32. ;:C makes a selection called C and then [0] will expect an array which will typecast the selection/buffer to a uint8* and you know the rest. Anyways I can't do a full explanation here but it's a pretty useful system in my opinion and trivializes a specific set of problems like compilers but it's still a WIP

steffo,
@steffo@junimo.party avatar

@niko You judge what to do in the end!

Getting external feedback might be helpful, as often other people will spot things that you didn't while designing... but also requires some time, and if it's something you've poured a lot of passion in, also the ability to handle well criticism, as not everyone is always nice on the Internet...

The buffer thing sounds very peculiar! Reminds me a bit of Lisp and Perl, but approaching functional programming with a focus on the processing chains themselves instead of the operations they're composed of, kind of like what Bash does with pipes!

niko,
@niko@mk.absturztau.be avatar

@steffo I'm basically just trying to optimize as much as possible, the solution to these text processing problems. My language will probably be sacrificing a bit of performance for that but this will get better over time. The interesting thing is that since this is a "language language", you can just come up with your own syntax that's suited for solving a specific problem and since my language can do just in time, you can just place that custom code in a buffer and process it while compiling into valid Lang syntax. This optimizes some problems like assemblers with their big tables. I have this and many many more features in mind that will hopefully help optimize development time by a huge factor. I may need to go through quite a few iterations when making the v1 standard document and ill probably ask people on here for their time

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • Durango
  • thenastyranch
  • ngwrru68w68
  • InstantRegret
  • DreamBathrooms
  • modclub
  • magazineikmin
  • Youngstown
  • everett
  • ethstaker
  • slotface
  • mdbf
  • kavyap
  • JUstTest
  • osvaldo12
  • GTA5RPClips
  • cisconetworking
  • provamag3
  • khanakhh
  • tacticalgear
  • cubers
  • Leos
  • normalnudes
  • megavids
  • tester
  • anitta
  • lostlight
  • All magazines