Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
tef
May 30, 2004

-> some l-system crap ->

gibbed posted:

Are you reading the entire file into memory? Because if you are, even 256MB won't help with the files I'm trying to open.

If you are on OS X, then Hex Fiend might be useful.

Adbot
ADBOT LOVES YOU

tef
May 30, 2004

-> some l-system crap ->

BillWh0re posted:

Wouldn't a memory mapped file help here or does Java not have any way of doing them?

Java supports mmap'ed files:

http://java.sun.com/j2se/1.4.2/docs/api/java/nio/MappedByteBuffer.html
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/ByteBuffer.html
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/FileChannel.html

tef
May 30, 2004

-> some l-system crap ->
After fixing a number of weird bugs I decided to tidy up the application a bit.



I have also replaced the exe's icon with a picture of the ceo - and renamed the release 'Galloping Gareth' as it is his fault we are using vb.

tef
May 30, 2004

-> some l-system crap ->

Factor Mystic posted:

By the way, who's in charge of that? The main page links to a thread that's been archived.

reporting in!

I know the thread is archived, but I have nothing better to link to.

tef
May 30, 2004

-> some l-system crap ->

Factor Mystic posted:

By the way, who's in charge of that? The main page links to a thread that's been archived.

I saw you tried to catch me on irc - if you dump me an email to tef at printf.net I can add your rss/atom feed.

tef
May 30, 2004

-> some l-system crap ->

wolf_man posted:

Even though its web-based (therefor in browser) I tried to make it as much like a desktop app as possible (drop down menus, floating windows that are draggable, no page loads except for login/logout).


A fun as it must have been to re-implement a windowing system in dhtml, breaking the browser metaphor is a cardinal sin of ui design.

If you do continue down this route, ensure that the back button works, and you can open any link in a new tab.

tef
May 30, 2004

-> some l-system crap ->
I'm writing a logo interpreter in java script:

tef
May 30, 2004

-> some l-system crap ->

tef posted:

I'm writing a logo interpreter in java script:

I've added variables, if, ifelse, infix operators (numerical and boolean), and it even interprets tail recursive functions properly.



It is still very rough, and the turtle draws it all at once, but I'm still working on a number of improvements.

Here are some fractals:

code:
to tree :arms :length :count
if :count < 1 [stop]
repeat :arms [lt 360/:arms
pd fw :length
tree :arms 2 * :length / :arms :count - 1
pu bw :length]
end
reset
tree 7 128 4
code:
 to line :count :length
ifelse :count = 1 [fw :length] [
make "count :count -1 
line :count :length
lt 60 line :count :length
rt 120 line :count :length
lt 60 line :count :length]
end

to koch :count :length
rt 30 line :count :length
rt 120 line :count :length
rt 120 line :count :length
end

reset
setxy  10 400
koch 3  10
It is at http://logo.twentygototen.org/ if you want to have a play with it

tef fucked around with this message at 15:14 on Sep 16, 2008

tef
May 30, 2004

-> some l-system crap ->
I've written a tiny functional (logical) language interpreter:

code:
$ cat append 
append [] list :- list 
append h,t list :- h,{append t list}

say {append [1 2] [3 4]}

say { append [1+2 2+3] [3+4 4+5] }


$ ./eval.pl append 
[1, 2, 3, 4] 
[[add, 1, 2], [add, 2, 3], [add, 3, 4], [add, 4, 5]] 

$ cat in 
say {every  x in [1 2]}

$ ./eval.pl in
[1, 2]
It's a prolog dialect with functions instead of predicates and explicit backtracking. The syntax is more like tk than haskell.


It's about 200 lines in total. :toot:

tef
May 30, 2004

-> some l-system crap ->

Mista _T posted:

The start and end are easily found while reading the code.

it is a good thing that questions of style and taste in language are down to cold hard facts.

See if we used whitespace s-expressions xml none of this would be a problem oh gently caress it
for fucks sake gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress gently caress

tef
May 30, 2004

-> some l-system crap ->

Da Gaspodin posted:

I've been working on a Processing.js prototyping page lately.

It's basically a test bench for graphical effects featuring the whole Processing.js API and a gallery feature for saving your work / improving on somebody else's code. It's all anonymous and uncredited. :)

http://low.fi/~visy/processing_js/proto

Example effects:

http://low.fi/~visy/processing_js/proto/index.php?gallery=b57f52f7353bc6c1a85930d456d63e46
http://low.fi/~visy/processing_js/proto/index.php?gallery=910adbddfafd25157a840311733233de
http://low.fi/~visy/processing_js/proto/index.php?gallery=60b2106a641d4beb1cdaadb8af3a3e2e
¨



A friend of mine did a similar hack, bolting processing.js to etherpad http://ethasketch.com/hNIviqLlWs

tef
May 30, 2004

-> some l-system crap ->
it's on github, too http://github.com/Norgg/etherprocessing

tef
May 30, 2004

-> some l-system crap ->
I made this last night http://secretvolcanobase.org/~tef/mandel.html :3:

tef
May 30, 2004

-> some l-system crap ->

Sonnekki posted:

Holy christ.

http://secretvolcanobase.org/~tef/mandel.html#-1.9963768142314133,-1.9963766044978806,-0.0000036023430031992544,-0.0000037289745700944963




I added coordinates and fixed some bugs.

Up and down should work to zoom in most browsers, but try scrolling :2bong: to zoom quickly in and out

tef
May 30, 2004

-> some l-system crap ->

Hoborg posted:

Nice job, but I managed to break it by zooming in pretty far in the purple region to the right, eventually I stopped getting detail and it only rendered big blocky shapes. When I zoomed out it was just broken: things only appeared in lines.

wooo, floating point.

I'm not sure how i'll deal with this :v:

tef
May 30, 2004

-> some l-system crap ->
nope. there is no memoization, everything is recomputed :v:

the zoom function is probably the retarded bit. (I imagine that rounding errors get magnified somewhat)

tef fucked around with this message at 04:03 on Aug 18, 2010

tef
May 30, 2004

-> some l-system crap ->

tef posted:



I got it under 1k, it uses a hilbert curve to draw the mandelbrot now :3:

http://secretvolcanobase.org/~tef/mandel2.html

tef
May 30, 2004

-> some l-system crap ->

Factor Mystic posted:

Still cant click to download desktop dimension images :colbert:

I can't fit it in 1k, but I might be able to do something cool. Downloading pngs from canvas is trivial.

tef
May 30, 2004

-> some l-system crap ->

tef posted:

I got it under 1k, it uses a hilbert curve to draw the mandelbrot now :3:




It was accepted :toot: :woop: http://js1k.com/demo/506

tef
May 30, 2004

-> some l-system crap ->

tripwire posted:

Congrats!

Typically, the moment I finish I change something. So I added keybindings for up and down arrow, and re-centered it around something a little more interesting.

http://secretvolcanobase.org/~tef/js1k.html

I should stop posting about this now.


Edit

http://js1k.com/demo/570 now online

tef fucked around with this message at 14:25 on Aug 30, 2010

tef
May 30, 2004

-> some l-system crap ->

Your Computer posted:

e: With slight fear of posting too many pictures, here's a Sierpinski Triangle as well. This is way too much fun! :neckbeard:

Do a hilbert curve!

tef
May 30, 2004

-> some l-system crap ->

clockwork automaton posted:

So I participated in a 24-hour game coding competition (OSGCC) this weekend and me and my teammates got 1st with this DDR-clone done with ASCII art. Of course it was coded in D (because me and one of my teammates are insane) and we had one teammate that was entirely in charge of the music and the ASCII art (she did amazing).


are you gonna port it to js/html5 :3:

tef
May 30, 2004

-> some l-system crap ->

Tw1tchy posted:

Yes but you're playing a game based on hexagons, you can move in six directions from any tile. Then you land on a pentagon, what now? You can only move five directions? It just doesn't work as a game, it works as a picture or a model, but not as a game.

http://en.wikipedia.org/wiki/Deltoidal_hexecontahedron :2bong:

tef
May 30, 2004

-> some l-system crap ->

firehawk posted:

This is Komposter, a small modular "virtual analog" synth and sequencer I've been working on. It's mainly geared towards generating music from really tiny executables like 4K and 64K demoscene intros but can just as well be used for generating analog-like sounds. The previous version was downright user-hostile, so I made this to enable actual musicians to compose tunes for our intros.


drat!

that's awesome

tef
May 30, 2004

-> some l-system crap ->
i cloned a game: http://secretvolcanobase.org/~tef/cave.html imgur is down and it's hard to get a shot of it in action

tef
May 30, 2004

-> some l-system crap ->
https://github.com/tef/cave fwiw if you fancy hacking on it.


it was the product of a lazy morning and I have been too lazy to use other browsers beyond chrome to test it.


the 100% cpu thing is because I don't turn off the rendering loop :v:

MEAT TREAT posted:

That is loving awesome tef!

thanks :shobon:

tef fucked around with this message at 14:38 on Apr 6, 2011

tef
May 30, 2004

-> some l-system crap ->
actually tufte would likely be cruel about the bar graph with shading, a loud grid & lack of units :shobon:

tef
May 30, 2004

-> some l-system crap ->

bear shark posted:

One afternoon a few months ago I thought it would be funny if there was a buttbot for Twitter. I recently got bored of the fact that it follows like 10 people so, after some tweaking, I think it's time to open it up to the public timeline :3:



:3:

there has been a few buttbots on twitter, but for some reason they keep getting disabled

tef
May 30, 2004

-> some l-system crap ->

clockwork automaton posted:

Dealing with gender and sexuality issues always seems to create a poo poo storm.

Some people don't like to compartmentalise things and no matter what you do their ~snowflake~ way will never be expressed. besides shouldn't it be an x-y graph with male vs female - your 'all/none' thing doesn't really give a sense of proportion, and then people could put multiple points in because they are special etc etc :v:

maybe you should just have a tickybox [ ] heteronormative [ ] other :3:

tef
May 30, 2004

-> some l-system crap ->

Ferg posted:

I wanted to gain a deeper understanding of the JVM so I built a language that runs on top of it. It doesn't do much right now (in fact I've aptly named the language "Stoopid"), but after less than a week I've got the compiler to a point that's worth mentioning. Here's the reference code for that screenshot:

Suspicious Dish posted:

This inspired me to do my own take on it. I don't quite have if statements done, yet (to do it right, I'd have to start implement a basic graph algorithm, and I don't feel like doing that right now), but "Hello, world!" works!

I'd love to see how you tackled the problem.

toy languages :keke:

I've been meaning to write something myself, but I have a terrible habit of writing one part of the compiler and changing the design as a result.

tef
May 30, 2004

-> some l-system crap ->
I got to release some terrible code I made for work under the MIT license. Someone asked me to put it on pypi. So I did

http://pypi.python.org/pypi/hanzo-warc-tools/0.2

I'm somewhere between proud and embarrassed.


edit: if anyone asks about the dearth of tests, I am blaming the licensing issues that prevent me distributing test data :smith:

tef
May 30, 2004

-> some l-system crap ->
I wrote some code to glue our processes at work together. It evolved enough to warrant splitting off and rewriting chunks. I got permission to MIT license it and stick it on github.

http://github.com/tef/hate-rpc

I'll hopefully carve out more time to work on it, but it is just a little beyond the prototype stage and the documentation makes it look like english is not my first language.

tef
May 30, 2004

-> some l-system crap ->
json doesn't handle outside the bmp well.

quote:

To escape an extended character that is not in the Basic Multilingual
Plane, the character is represented as a twelve-character sequence,
encoding the UTF-16 surrogate pair. So, for example, a string
containing only the G clef character (U+1D11E) may be represented as
"\uD834\uDD1E".

the rfc also says things like this

quote:

Encoding considerations: 8bit if UTF-8; binary if UTF-16 or UTF-32

JSON may be represented using UTF-8, UTF-16, or UTF-32. When JSON
is written in UTF-8, JSON is 8bit compatible. When JSON is
written in UTF-16 or UTF-32, the binary content-transfer-encoding
must be used.

tef
May 30, 2004

-> some l-system crap ->
throw in morricone-esque 8-bit music and i'm there :3:

tef
May 30, 2004

-> some l-system crap ->
I wrote one of them too http://logo.twentygototen.org with the help of Scaevolus - https://github.com/rmmh/papert

I didn't do it for university, I did it because I hated my job. I was thinking of making a light-bike game where you programmed the bikes to avoid each other, rather than controlling them directly. It turns out logo is a pretty horrible language to use though, so I went back to procrastinating.

tef
May 30, 2004

-> some l-system crap ->

MononcQc posted:

Not a screenshot, but my website/tutorial on Erlang, Learn You Some Erlang has officially got its page to be published by No Starch Press as a dead tree book.

Pretty happy about it, although I'm fighting a bit to get the book cover to look a bit more like the site. That will be the conclusion of roughly 4 years of hard work during weeknights and week-ends, very eager to hold a real copy in my hands :3:

Congrats! One day I hope to have something to write about.

tef
May 30, 2004

-> some l-system crap ->
It isn't as pretty as everyone else's, but today I learned ruby and ported my rpc-esque library to it

Ruby code:
require "glyph"
s = Glyph.open('http://localhost:123456/')
q= s.make_queue('butt')
q.push('butts')
puts q.pop()
given a python server

Python code:
import glyph
import collections

queues = {}

m = glyph.Router()
@m.add()
def make_queue(name):
    if name not in queues:
        queues[name]=collections.deque()
    return Queue(name)    

@m.add()
class Queue(glyph.r):
    def __init__(self, name):
        self.name = name
    def push(self, msg):
        queues[self.name].appendleft(msg)

    def pop(self):
        if self.name in queues:
            return queues[self.name].popleft()

s = glyph.Server(m, port=12345)
s.start()
it's a sort of duck-typed rpc using hypermedia to describe methods on objects :2bong:

tef
May 30, 2004

-> some l-system crap ->
hypermedia is just forms and links and stuff

when you make a call, you get a serialised object back - for the methods, it returns forms (like html), which include url and verb. when you call a method on the client side, it submits the form, and it in turn can return
more stuff.

tef
May 30, 2004

-> some l-system crap ->

tef posted:

it's a sort of duck-typed rpc using hypermedia to describe methods on objects :2bong:


I gave a talk, about that thing that I wrote, at a mini ruby conference: http://vimeo.com/45474360

Adbot
ADBOT LOVES YOU

tef
May 30, 2004

-> some l-system crap ->

Fruit Smoothies posted:

Is that in a pub?

Sorta. It's in the back room of one.

quote:

EDIT: With a Bristolian accent?

I have no idea what my accent is. I've only been in bristol for a weekend.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply