npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tlnccuwagnf

v0.3.2

Published

A (silly) functional programming language.

Downloads

1

Readme

The Language Nobody Could Come Up With A Good Name For

Pronounced "Tul-un-qweh-wag-nuf", call it Tulun for short.

Build Status Join the chat at https://gitter.im/liam4/tlnccupwagf

This is just another programming language we're making for fun. It's mildly based on another project @liam4 made, PLT, and JavaScript.

It's one of those silly interpret-on-the-go programming languages that doesn't compile to bytecode. This means it's probably much less efficient than, like, any other programming language.

It's a functional programming language (i.e. functions are first class).

It doesn't make sense. Please ignore the fact that it doesn't make sense? Also, hide, far, far away from the source code. It might lash out and hurt somebody's brain.

Installation / Usage

# installation
npm install -g tlnccuwagnf

# usage, see
tulun help

Syntax Highlighting

Atom: Install the language-tulun package.

Other Editors: Tulun has a similar syntax to JavaScript, so just use your editor's JS highlighting instead.

Documentation

Examples

Hello world

print("Hello, world!");

Comments

# python-style #
#: multiline :#
print("Hi!");

Variables

my_var => 42;
print(my_var);

Functions

my_fn => fn(x) {
  return(+(x, 3));
};

print(my_fn(4));

Conditionals

if(true, fn() {
  print("Called for true");
}, fn() {
  print("Called for false");
});

Syntax

There are basically no control structures. In one command (each separated by semicolons) you can do the following:

  • Assign or change a variable. (variable_name => value, variable_name -> new_value)
  • Evaluate an expression.
    • Call a function (function(arg1, arg2, arg3))
    • Get a variable (variable_name)
    • Do something related to object properties
    • Evaluate a special token, like a string, number or function

But.. where are things like if? Well, if is a function. So you'll want to evaluate a call a function expression:

if(true_or_false, call_for_true[, call_for_false]);

Here's an example of a program using all the things we showed above. Please excuse Liam's terrible ASCII labelling.

# Variable assign.                              #
#  v--- Variable identifier                     #
#  v    vvvv--- A boolean literal.              #
   x => true;

#  vv-- Get a variable using identifier "if",   #
#  ||  this is built-in so all programs will    #
#  ||  automatically have "if" as a variable.   #
#  || v--- Get a variable using identifier "x", #
#  || |    which we assigned earlier.           #
#  || |  v--- A function literal.               #
   if(x, {

#    vvvvv--- Get a variable using identifier   #
#    |||||    "print", which is also built-in.  #
#    ||||| vvvvvvvv--- A string literal.        #
     print("Hello!");

   });

Should I use it?

No. Its syntax is pretty similar to JavaScript, so why aren't you using JavaScript?

On the other hand, if you're just looking at it as a fun project we made as an experiment, go ahead and use it. I have nothing against you using it - I'd enjoy it if you used it! - but it's not a very good programming language, so don't expect something amazing.

Can I have a specification?

No. Cool languages have specifications. But we're not sure making a specification for this simple(?) experimental project is either worth it or our style.