unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: major mode for fpscalc + some meta
Date: Sun, 22 Sep 2013 16:45:04 +0200	[thread overview]
Message-ID: <87mwn4j4om.fsf@nl106-137-194.student.uu.se> (raw)

I'm giving this group a third shot. I have a new
strategy for not getting into flame wars. That's meta,
so I won't go into details, but trust me, I'll not get
into another flame war as true as the Earth makes one
revolution around the sun in 365.25 days.

Another side note: I changed my mind, Juanma was right
in saying that C++ in all honesty cannot be described as
"straightforward".

OK, not dwelling on the past ...

I wanted to share this with you: I made a major mode for
the tool fpscalc. fpscalc (fps = fixed priority
schedulability) is a tool that computes response times
and workloads for tasks and real time systems, in order
to do schedulability analysis (i.e., will all tasks
complete prior to their deadlines?).

Have a look at the dump [1] to get a feeling what it is
all about.

The mode includes:

1. Very ambitious font lock - looks like a circus at
   first, but once you get used to it, it is very
   useful. (I didn't use the font-lock faces because I
   want everything to be configurable on a
   per-mode/-application/whatever basis.)
2. Comment and uncomment with M-;
3. Indentation (very easy - I just used the C mode ditto
   - but nonetheless, it is there)
4. A defun ("compute") to run the tool from a script
   (shown in Emacs), and then have Emacs show the result
   of fpscalc crunching that script.

I didn't had any "professional" material to guide me, so
I just made it work as I always do, by being active,
making it work by outworking the opposition. Therefore,
there might be some formal stuff missing to make it a
"real" major mode. If so, please make me aware of it.

Unlike all my other Emacs hacking, this is something
that will be used not just by me but by dedicated,
serious people, so I would be very appreciative if you
gave me feedback.

Note on the dump: It turns out, fbcat produces PPM
files, and not PNG. I used ppmtobmp to make a BMP of
it. It really doesn't matter; I say it just so you won't
be confused by the inconsistency of the filename and the
shell command extensions.

[1 - dump]
http://user.it.uu.se/~embe8573/fps/fpscalc_mode.bmp

[source]
http://user.it.uu.se/~embe8573/fps/fpscalc.el

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


             reply	other threads:[~2013-09-22 14:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22 14:45 Emanuel Berg [this message]
2013-09-22 18:32 ` major mode for fpscalc + some meta Stefan Monnier
2013-09-22 23:07   ` Suvayu Ali
     [not found] ` <mailman.2705.1379874790.10748.help-gnu-emacs@gnu.org>
2013-09-22 23:20   ` Emanuel Berg
2013-09-23  0:15     ` Stefan Monnier
     [not found]     ` <mailman.2719.1379895349.10748.help-gnu-emacs@gnu.org>
2013-09-23  1:11       ` Emanuel Berg
2013-09-23  3:08         ` Stefan Monnier
     [not found]         ` <mailman.2723.1379905744.10748.help-gnu-emacs@gnu.org>
2013-09-23  3:23           ` Emanuel Berg
2013-09-23  3:25             ` Emanuel Berg
2013-10-02  0:19           ` Emanuel Berg
2013-10-02  0:58             ` Stefan Monnier
     [not found]             ` <mailman.3228.1380675623.10748.help-gnu-emacs@gnu.org>
2013-10-02  1:05               ` Emanuel Berg
2013-10-02  2:05                 ` Stefan Monnier
     [not found]                 ` <mailman.3233.1380679539.10748.help-gnu-emacs@gnu.org>
2013-10-02  2:10                   ` Emanuel Berg
2013-10-02  4:07                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwn4j4om.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).