What are you working on? - Programming On Unix

Users browsing this thread: 3 Guest(s)
pizzaroll1
Long time nixers
I've been a bit bored recently, I don't have any ideas on what to program, rice, write on my blog, or anything. So I haven't been working on much.

Are you working on a project at the moment? The next big window manager? A CLI program that solves a problem everyone has? A shell script that does something vaguely useful? Post it here and get some feedback!
my website: kaashif.co.uk
chc4
Members
I've been working on a window manager in Rust off and on for a while. It currently supports gaps, padding, switching between windows, and a tall layout for windows. It doesn't yet do workspaces though, which is the next big thing I need to implement. https://github.com/chc4/gallium
venam
Administrators
pizzaroll1
Long time nixers
(13-06-2015, 12:56 PM)venam Wrote: You could help with https://github.com/nixers-projects/tty-week-timer.
'll definitely be taking part in that challenge, so maybe I will help out with that. I do have a question, though. Instead of specifying the type in the docstrings, why not use PEP 484 type hints? As it is, the docstring types look a bit odd, and using type hints means you could actually check the types using something like mypy, if you wanted.

(13-06-2015, 12:14 PM)chc4 Wrote: I've been working on a window manager in Rust off and on for a while. It currently supports gaps, padding, switching between windows, and a tall layout for windows. It doesn't yet do workspaces though, which is the next big thing I need to implement. https://github.com/chc4/gallium

The README says don't even think about using it...but I thought about it, it looks pretty cool so far.
my website: kaashif.co.uk
venam
Administrators
(13-06-2015, 04:00 PM)pizzaroll1 Wrote:
(13-06-2015, 12:56 PM)venam Wrote: You could help with https://github.com/nixers-projects/tty-week-timer.
'll definitely be taking part in that challenge, so maybe I will help out with that. I do have a question, though. Instead of specifying the type in the docstrings, why not use PEP 484 type hints? As it is, the docstring types look a bit odd, and using type hints means you could actually check the types using something like mypy, if you wanted.
Type hints are for python3 and I've been using python2. In all cases, I put the type in the docstring just as a reminder to what the function does.
Also, like I said, the project is pretty messy.
fayesafe
Long time nixers
@venam, what resources did you use to learn/master python in particular?
cjm
Long time nixers
I am working on a static markdown parser in C. I just dont like most of the Haskell dependencies and would rather have something smaller. (Which I am sure that there is, but you know any time you get to write C is a good time :)
z3bra
Grey Hair Nixers
I working on an "address book" in lua. Just for learning purpose (this is a simple project I like to get me started with new languages).

I'm also learning how to cross-compile softwares using an alternative libc (musl in this case). There is not a lot on the topic sadly...
kirby
Long time nixers
I'm finishing up a Perl wrapper for the Challonge! API, a web service for creating and running tournaments. It's pretty much working and on CPAN but I need to write tests and change function names.
greduan
Long time nixers
Been making a text editor in 100% pure v0.10 Node.js, i.e. in JavaScript. https://github.com/noedit

Since JS is a high-level language, like the last month has been spent on coding up the FS layer, cause Node.js comes with an FS layer but editing a file is hell if you want to avoid reading the entire file and/or writing the whole file to make an edit.

So far I've figured out how to read certain bytes from a file without reading the whole thing, actually it's quite simple. Writing to a certain part of a file is also simple, BUT, editing part of a file, like a simple "replace these 5 bytes with these 10 new bytes" is hard as crap cause just doing that would delete the old 5 bytes, put in 5 of the new bytes, and then it's essentially gonna overflow into the text I didn't want to eddit and delete 5 bytes I didn't want to delete, replacing them with the remaining 5 bytes. Make sense?

Anyway it's hell, you guys in C have it easy. lol

So that's me, everybody probably already knows about the editor, but now you know why there hasn't been progress on it.
Eduan / greduan
https://greduan.com
me@greduan.com
z3bra
Grey Hair Nixers
(16-06-2015, 11:31 AM)greduan Wrote: Anyway it's hell, you guys in C have it easy. lol

Actually, it's fairly complicated, as the "open()" system call only has 3 modes: read, write, append.
read doesn't matter in this case, but the "write" mode will wipe the original file entirely, so you can write your text in it. so basically, removing an \n at the end of the file means rewriting the file entirely. No matter what. As for append mode, it keeps the original file intact, and you can only add bytes at the end, so not pretty useful for modifyin the initial content :P
srp
Long time nixers
I've been getting irc-osric cleaned up. I completely rewrote the character system, and it's near completion entirely.
~Seraphim R.P.
the artistnixer formerly known as vypr formerly known as sticky
strang3quark
Members
I just did my blog.
I'm also working on simpleRSS, is a Python+curses RSS reader, it still lacks color support but it's ready to use.

http://github.com/strang3quark
greduan
Long time nixers
I've been working on a text editor[1]. The FS stuff is proving to be a huge pain in the ass. Mostly the applyChangesToFile.js[2] functionality. BTW it is a text editor in pure Node.js.

[1]: https://github.com/noedit
[2]: https://github.com/greduan/applyChangesToFile.js

What I've learnt is that writing a text editor will teach you HUGE amounts of stuff about whichever language you make it in. So text editors are an interesting project in any language.
Eduan / greduan
https://greduan.com
me@greduan.com
nounoursheureux
Members
greduan: have you heard of [Atom](https://atom.io) ? It is also Node.js editor, but it relies on [Electron](https://electron.atom.io) for the desktop stuff. You might be interested in how they solve their problems :P
Webtm
Members
(06-07-2015, 12:05 PM)greduan Wrote: I've been working on a text editor[1]. The FS stuff is proving to be a huge pain in the ass. Mostly the applyChangesToFile.js[2] functionality. BTW it is a text editor in pure Node.js.

[1]: https://github.com/noedit
[2]: https://github.com/greduan/applyChangesToFile.js

What I've learnt is that writing a text editor will teach you HUGE amounts of stuff about whichever language you make it in. So text editors are an interesting project in any language.
How fast is development with node.js? A friend and I are trying to pick a language neither of us know at all for a project and node.js is one of the options.
greduan
Long time nixers
(06-07-2015, 03:26 PM)nounoursheureux Wrote: greduan: have you heard of [Atom](https://atom.io) ? It is also Node.js editor, but it relies on [Electron](https://electron.atom.io) for the desktop stuff. You might be interested in how they solve their problems :P

Yes. And I have looked at some of their code. My text editor is in the CLI, while theirs is pure GUI, so the UI stuff will not match up, sadly.

Otherwise, IMO their code is way too complex. I looked at their `text-buffer` package, that's thousands of lines for a buffer implementation.

Their FS code is sloppy from what I could tell, they just `fs.writeSync`, and store the whole file in memory, which is not good for >50MB files IIRC. This may have changed recently cause I remember them mentioning larger files are supported now.

Right now I'm stuck with the FS stuff, in this case applyChangesToFile.js[1]. I'm coding up a way to apply changes to a file without having to store the whole file in memory to know what the changes are. So you just tell it "this is the file I want you to change, these are the changes" and so it reads the whole file and writes it while applying the changes. Using streams or something in order to make sure that crap doesn't overload.

[1]: https://github.com/greduan/applyChangesToFile.js

(06-07-2015, 08:40 PM)Webtm Wrote: How fast is development with node.js? A friend and I are trying to pick a language neither of us know at all for a project and node.js is one of the options.

The hardest part for a new person to Node.js will be learning JS. JS is not a hard language, but it allows you to do incredibly dumb and stupid stuff (like re-define `true` and `false`, lol), and I'd say like 90% (perhaps less) of people that code in JS don't actually understand JS, so their code is not optimal.

So yeah, it's a great language but you gotta know how to use it, in other words understand the language. In terms of speed, I mean it's as quick as other languages? I dunno what to tell you.
Eduan / greduan
https://greduan.com
me@greduan.com
xero
Long time nixers
(06-07-2015, 08:40 PM)Webtm Wrote: How fast is development with node.js?

it's a runtime lang, so it's very fast for development. you save it and run it.

(07-07-2015, 12:06 PM)greduan Wrote: The hardest part for a new person to Node.js will be learning JS. JS is not a hard language, but it allows you to do incredibly dumb and stupid stuff...

^ so much this.
here's a great site overviewing some of js's more "quirky" aspects: http://bonsaiden.github.io/JavaScript-Garden/
deadgone
Long time nixers
a forth-like language in ruby
ashen
Members
(17-06-2015, 09:45 AM)vypr Wrote: I've been getting irc-osric cleaned up. I completely rewrote the character system, and it's near completion entirely.

I'd never actually heard of OSRIC before. I need to look into that.
z3bra
Grey Hair Nixers
I'm on the process of moving my home server online. That will make it more reliable on the long-term. So I need to move my services to it. For now, www.z3bra.org, dl.z3bra.org and chat.z3bra.org point to the new server, while all other links still point to the old machine.

It will take some time to get it done at 100%, but I think I'll be done by the end of september, max mid-october.

I'm still wondering wether I should revamp my blog. Like making shorter links or whatever...
neeasade
Grey Hair Nixers
(21-08-2015, 10:39 AM)z3bra Wrote: I'm on the process of moving my home server online. That will make it more reliable on the long-term. So I need to move my services to it. For now, www.z3bra.org, dl.z3bra.org and chat.z3bra.org point to the new server, while all other links still point to the old machine.

It will take some time to get it done at 100%, but I think I'll be done by the end of september, max mid-october.

I'm still wondering wether I should revamp my blog. Like making shorter links or whatever...
are you doing this via vps? what service are you going with? curious.
z3bra
Grey Hair Nixers
It's not a VPS, it's a physical server. The provider is a french one (cocorico!), and offers really attractive prices: http://online.net.

I have a dedibox SC atm, which is pretty cheap, so I can try their services and test their reliability without paying that much. That box has better perfs than my current home server anyway :P

then when I'll need something better, I'll certainly get an XC box.
neeasade
Grey Hair Nixers
Awesome, sounds good :)

I had some extra $$ about a year back and bought 2 VPS's from cloutatcost(canada host) which have been doing good for the price(1 time pay $25 on sale) - been using to host my website/misc activity. Probably not what I'd pick if I was hosting something I cared about, but it's convenient.
movq
Long time nixers
Now that xiate works quite well, I started hacking on some very simple physics simulations which run in your terminal. Like that fountain in the lower right terminal: moving webm. I've got some more ideas, like colliding boxes or other n-body simulations. No rocket science, no "purpose", just for fun. :-)
venam
Administrators
(07-10-2015, 03:52 PM)vain Wrote: Now that xiate works quite well, I started hacking on some very simple physics simulations which run in your terminal. Like that fountain in the lower right terminal: moving webm. I've got some more ideas, like colliding boxes or other n-body simulations. No rocket science, no "purpose", just for fun. :-)
Your console programs are really something.
I truly enjoy and respect your work.
Great job!
ashen
Members
(07-10-2015, 03:52 PM)vain Wrote: Now that xiate works quite well, I started hacking on some very simple physics simulations which run in your terminal. Like that fountain in the lower right terminal: moving webm. I've got some more ideas, like colliding boxes or other n-body simulations. No rocket science, no "purpose", just for fun. :-)

I've actually started using xiate now. I absolutely love it! Thanks for introducing me to the project.

As for me, I'm unfortunately not working on anything right now. Looking to pick up a new project, though.
z3bra
Grey Hair Nixers
@ashen: Try out wmutils! Help improving it, and make it more reliable
venam
Administrators
These days I don't have any real new projects so I'm going to dig some of my old projects and polish them.
There are a lot of cool old projects I made that were so much fun.

I'm also still doing hacking challenges so I might do something related to that.
darthlukan
Members
I'm slowly working on a project generator tool called Progeny as well as some customization of the scripts included in wmutils that I keep in my dotfiles repo. Those are the two "big" ones so far as personal projects go, the rest of my personal projects are in various states of flux while I think about them some more.

So far as job-related projects, I'm cleaning up and extending the functionality of my employer's closed-source CMS platform.
Github: https://github.com/darthlukan
CRUX Ports: http://ports.brianctomlinson.com
GPG: 3694569D
"We're all human, act accordingly." -- Me