Main > Free Download Search >

Free swap software for linux

swap

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 164
Puppy Linux 4.2.1

Puppy Linux 4.2.1


Puppy Linux provides you with a perfect and very useful evolutionary operating system which is based on GNU Linux. more>>

Puppy Linux 4.2.1 provides you with a perfect and very useful evolutionary operating system which is based on GNU Linux. Whats different here is that Puppy is extraordinarily small, yet quite full featured. Puppy Linux can boot into a 64MB ramdisk, and that's it, the whole caboodle runs in RAM. Unlike live CD distributions that have to keep pulling stuff off the CD, Puppy in its entirety loads into RAM. This means that all applications start in the blink of an eye and respond to user input instantly.

Major Features:

  1. Puppy Linux has the ability to boot off a flash card or any USB memory device (flash-Puppy), CDROM (live-Puppy), Zip disk or LS/120/240 Superdisk (zippy-Puppy), floppy disks (floppy-Puppy), internal hard drive (hard-Puppy).
  2. Puppy occupies about 50-60M on my USB Flash drive, CDROM, or whatever is the storage media.
  3. When Puppy boots, everything uncompressed into a RAM area that we call a "ramdisk". The live-CD will bootup on systems with only 32M RAM, but the more RAM you have the more Puppy is able to keep files permanently in ramdisk hence more speed. A PC with 128M RAM is the recommended minimum.
  4. Note that Puppy will automatically use a swap partition if it exists. When booting from a USB Flash device, Puppy tries to load all the Flash files into physical RAM, but if there is not enough RAM then Puppy is able to copy the excess to a swap partition if it exists. This eliminates writes to the Flash memory during a session, greatly extending its life span.
  5. You may need to have a swap partition to run Firefox or Mozilla on PCs with less than 64M RAM. Certainly, for a PC with only 32M RAM, a swap partition is necessary to run most of the large GUI applications.

Enhancements:

  • CUPS-1.3.10 regressed from 1.4b2 to resolve ongoing issues with CUPS printing.
  • Fixed printing from Geany, Leafpad and Gnumeric using CUPS-1.3.10
  • Abiword-2.6.3 with 2.6.6 plugins has been patched for improved .doc & .docx support (Liberation ttf fonts required for some documents)
  • Pwidgets updated to 2.0.8
  • Pcrypt updated to 17 May 2009 release and now requires Ccrypt to function. Bcrypt has been dropped in consequence.
  • Ccrypt-1.7 added as dependency for Pcrypt
  • MIME-types updated in Rox-2.6.1
  • Patches for gtk+ Xinput and b43 broadcom network driver
  • Pmusic updated to 0.6.4
  • Pschedule updated to 0.7
  • Plus previously issued patches for nbtscan, mountcifs, jwm-tray, xsane, network wizard (now at April 4 release), mtpaint-snapshot, gtk+2.12.1-Xinput-fix and pcp (Puppy control panel).
<<less
Added: 2009-05-22 License: GPL Price: FREE
1 downloads
 
Other version of Puppy Linux
Puppy Linux 2.17.1Note that Puppy will automatically use a swap partition if it exists. When booting from a USB Flash device, Puppy tries to load all the Flash files into physical RAM, but if there is not enough RAM
License:GPL (GNU General Public License)
Download (93.2MB)
525 downloads
Added: 2007-08-05
Atop 1.21

Atop 1.21


Atop is an interactive monitor for Linux-systems to view the load on system-level and process-level. more>>
Atop project is an ASCII full-screen performance monitor, similar to the top command.
At regular intervals, it shows system-level activity related to the CPU, memory, swap, disks and network layers, and it shows for every active process the CPU utilization in system and user mode, the virtual and resident memory growth, priority, username, state, and exit code.
The process level activity is also shown for processes which finished during the last interval, to get a complete overview about the consumers of things such as CPU time.
Atop only shows the active system-resources and processes, and only shows the deviations since the previous interval.
Enhancements:
- A new command, atopsar, has been added to generate detailed system activity reports (similar to the UNIX command sar) using the compressed logfiles as written by atop.
- These reports can also be generated for the current situation by specifying an interval for atopsar on the command line.
<<less
Download (0.066MB)
Added: 2007-08-20 License: GPL (GNU General Public License) Price:
796 downloads
Super Grub Disk 0.9598

Super Grub Disk 0.9598


Super Grub Disk is a bootable floppy or CDROM that is oriented towards system rescue. more>>
Super Grub Disk is a bootable floppy or CDROM that is oriented towards system rescue, specifically for repairing the booting process.

Super Grub Disk is simply a Grub Disk with a lot of useful menus.

It can activate partitions, boot partitions, boot MBRs, boot your former OS (Linux or another one) by loading menu.lst from your hard disk, automatically restore Grub on your MBR, swap hard disks in the BIOS, and boot from any available disk device.

Super Grub Disk project has multi-language support, and allows you to change the keyboard layout of your shell.
<<less
Download (0.39MB)
Added: 2007-08-07 License: GPL (GNU General Public License) Price:
754 downloads
xen-tools 3.7

xen-tools 3.7


xen-tools is a collection of scripts which allow you to manipulate virtual images for the Xen virtualization software. more>>
xen-tools project is a collection of scripts which allow you to manipulate virtual images for the Xen virtualization software.
With the tools installed, you may create new instances of Debian, complete with networking, OpenSSH, and user accounts, with one simple command. Images may also be easily updated, listed, or deleted.
Main features:
- Create new Xen instances of Debian Sarge, in minutes. (xen-create-image)
- Duplicate an existing image, whilst updating the networking information. (xen-duplicate-image)
- List all existing images with their networking details (xen-list-images)
- Delete previously created instances. (xen-delete-image)
- Update the images youve created with apt-get, without booting them. (xen-update-image)
Creating A New Image:
The script will contains a full manual written using the perl documentation system, perldoc, which you can read by executing:
xen-create-image --manual
This manual describes the operation of the script, and the supported options. (Each of the available options may be setup in a configuration file for ease of use.)
As a very simple example the following command willcreate an image using DHCP to obtain its networking information. The primary disk will 2Gb with 128Mb memory and swap:
xen-create-image --hostname=vm01 --dir=/home/xen
--size=2Gb --swap=128Mb --memory=128Mb --dhcp
If you wish to give the instance a static IP address then provide the information with the following flags:
--ip
The IP address to give the instance.
--gateway
The IP address of the gateway machine.
--broadcast
The broadcast address to use.
--network
The network the image is upon.
--netmask
The netmask to use.
Enhancements:
- This release supports the installation of RPM-based distributions via the external rinse tool, which is more reliable than the rpmstrap utility.
- New guests will now have a random MAC address generated by default, to avoid issues with udev, and several other minor bugfixes were applied.
<<less
Download (0.10MB)
Added: 2007-08-03 License: GPL (GNU General Public License) Price:
817 downloads
Super Grub Disk Gparted System Rescue 001

Super Grub Disk Gparted System Rescue 001


Super Grub Disk is a bootable CDROM that is oriented towards system rescue, specifically for repairing the booting process. more>>
Super Grub Disk is a bootable floppy or CDROM that is oriented towards system rescue, specifically for repairing the booting process.

Super Grub Disk is simply a Grub Disk with a lot of useful menus. It can activate partitions, boot partitions, boot MBRs, boot your former OS (Linux or another one) by loading menu.lst from your hard disk, automatically restore Grub on your MBR, swap hard disks in the BIOS, and boot from any available disk device.

The ISO has multi-language support, and allows you to change the keyboard layout of your shell.

This version has Gpareted included.
<<less
Download (164.1MB)
Added: 2007-08-02 License: GPL (GNU General Public License) Price:
550 downloads
PawPaw 0.6

PawPaw 0.6


PawPaw is a forth-like language except that it allows top-down development. more>>
PawPaw is a forth-like language except that it allows top-down development.
There are several stacks. As you would expect there is a data stack, a return stack. But there is also a control structure stack.
Include files are implemented with the # token, which is followed by the filename to include (up to 19 levels).
Here is a list of the words that are implemented so far:
EXIT calls exit(0) to end the interpreter.
+L add longs
.L print long
+ int add
. int print
: define a new word
niy print that a word (string arg) is not implemented, exit the interpret loop early.
; end a definition
"word" edit calls the Kwrite editor on the source file name corresponding to word.
(note the name of the file is a hex string followed by .pp)
size var name define a variable.
value const name define a constant
@C fetch from a character var
!C store to a char var
@S fetch from a short var
!S store to a short var
@ integer fetch
! integer store
- int subtract
- int multiply
% int modulus
/ int divide
& integer and
| integer or
^ integer exclusive or
~ 1s complement integer
> integer shift right
> < >= L convert int to long
L->I convert long to int
@L fetch long
!L store long
-L long subtract
*L long multiply
%L long modulus
&L long and
|L long or
^L long eor
~L ones complement long
L shift long right by int arg
L =L !=L ==L long relationals
dup int dup
dupL long dup
drop int drop
dropL long drop
rot int rot
rotL long rot
swap int swap
swapL long swap
pick int pick
pickL long pick by int arg
[]! subscripted store
/* ... */ comment
"word" compile compile a definition file
"xxx" "yyy" add_dep add a dependency for yyy to word xxx file.
control structure
if (expr) then true-part else false-part fi
or
if (expr) then true-part fi
while expr do body od
until expr do body od
Enhancements:
- Autoloading was fixed.
<<less
Download (0.040MB)
Added: 2007-07-27 License: GPL (GNU General Public License) Price:
819 downloads
CookieSwap 0.5.0

CookieSwap 0.5.0


CookieSwap provides an extension that enables you to maintain numerous sets or profiles of cookies that you can quickly. more>>
CookieSwap provides an extension that enables you to maintain numerous sets or profiles of cookies that you can quickly.
Main features:
- Changing your cookies/identity to web e-mail sites (like Yahoo, Gmail, Hotmail, etc) so that you can quickly look like different users. Nice if you maintain multiple accounts and are tired of logging out and then back in to switch accounts. Also nice if two people are using the same computer and want to switch between accounts quickly.
- Changing your cookies/identity to see how sites like Amazon and Google treat you differently depending on who you are. For example, if Amazon recognizes you as a returning shopper they give you a different looking page (and there were claims that they give you different prices also). Google has begun to use a feature called "Personalized Search", where they modify their search results based on your user identity. There is a question about this when you create your Google account. The results of Google searches are different depending on if Google knows you or not. Use CookieSwap to quickly swap between Google recognizing you and being anonymous. Run the same search and see the differences.
- If you design web sites, you can setup numerous cookie profiles to look like different types of users and swap between those users quickly and easily to test your site in numerous modes (you can hand edit the cookies to have distinct values in each profile using a nice extension like Add & Edit Cookies).
<<less
Download (0.028MB)
Added: 2007-07-25 License: MPL (Mozilla Public License) Price:
869 downloads
Common Media Input Layer 0.91 Alpha

Common Media Input Layer 0.91 Alpha


Common Media Input Layer is an C++ OO framework designed to improve the state of cross-platform input handling in games. more>>
Common Media Input Layer (CMIL) is an C++ OO framework designed to improve the state of cross-platform input handling in games and other similar applications.
CMIL was created out of the belief that the methods used in most media APIs perform input handling in a confusing, difficult, inflexible fashion. CMILs goal is to address this issue by establishing a flexible, easy to use, human readible, OO abstraction layer. This layer specifically allows for media and input device abstraction.
Main features:
- easiliy build complex input sequences, including timed inputs, which do not impose restrictive notions of what is and isnt a moderator on the user
- custom input device configurations, IE: Users can swap input device configurations on the fly and create their own representation of a custom device using the framework facilities
<<less
Download (0.087MB)
Added: 2007-07-25 License: GPL (GNU General Public License) Price:
821 downloads
Steel Bank Common Lisp 1.0.8

Steel Bank Common Lisp 1.0.8


Steel Bank Common Lisp is a common Lisp native compiler. more>>
Steel Bank Common Lisp is a development environment for Common Lisp, with excellent support for the ANSI standard: garbage collection, lexical closures, powerful macros, strong dynamic typing, incremental compilation, and the famous Common Lisp Object System (multimethods and all).

Steel Bank Common Lisp also includes many extensions, such as native threads, socket support, a statistical profiler, programmable streams, and more. These are all available through an integrated, interactive native compiler which feels like an interpreter.

SBCL is unique in being a multiplatform native compiler which bootstraps itself completely from source, using a C compiler and any other ANSI Common Lisp implementation.

Whats New in This Release:

* enhancement: experimental macro SB-EXT:COMPARE-AND-SWAP provides
atomic compare-and-swap operations on threaded platforms.
* enhancement: experimental function SB-EXT:RESTRICT-COMPILER-POLICY
allows assining a global minimum value to optimization qualities
(overriding proclamations and declarations).
* enhancement: closed over variables can be stack-allocated on x86
and x86-64.
* performance bug fix: GETHASH and (SETF GETHASH) are once again
non-consing.
* optimization: slot definition lookup is now O(1). This speeds up
eg. SLOT-VALUE and (SETF SLOT-VALUE) with variable slot names.
* optimization: STRING-TO-OCTETS is now up to 60% faster for UTF-8.
* optimization: ASSOC and MEMBER can now be open-coded for all
combinations of keyword arguments when second argument is constant
and SPEED >= SPACE. In other cases a specialized version is
selected.
* bug fix: using obsoleted structure instances with TYPEP and
generic functions now signals a sensible error.
* bug fix: threads waiting on GET-FOREGROUND can be interrupted.
(reported by Kristoffer Kvello)
* bug fix: backtrace construction is now more careful when making
lisp-objects from pointers on the stack, to avoid creating bogus
objects that can be seen by the GC.
* bug fix: defaulting of values in contexts expecting more than 7
variables now works on x86-64. (reported by Christopher Laux)
* bug fix: modifications to packages (INTERN, EXPORT, etc) are now
thread safe.
* bug fix: (SETF SYMBOL-PLIST) no longer allows assigning a non-list
as the property-list of a symbol.
* bug fix: DEFMETHOD forms with CALL-NEXT-METHOD in the method body,
in EVAL-WHEN forms with both :COMPILE-TOPLEVEL and :LOAD-TOPLEVEL
situations requested, are once again file-compileable. (reported
by Sascha Wilde)

<<less
Download (2.7MB)
Added: 2007-07-25 License: BSD License Price:
822 downloads
GKrellM 2.3.0

GKrellM 2.3.0


GKrellM is a system monitor package. more>>
GKrellM application is a GTK-based stacked monitor program that charts SMP CPUs, disks, load, active net interfaces, and internet connections.
There are also builtin monitors for memory and swap, file systems with mount/umount feature, mailbox checking including POP3 and IMAP, clock/calendar, laptop battery, sensors (temperatures, voltages, and fans), and uptime.
It has LEDs for the net monitors and an on/off button and online timer for PPP. There is a GUI popup for configuration, plugin extensions can be installed, and many themes are available. It also features a client/server monitoring capability.
Main features:
- Hostname/systemname display.
- Clock/calendar.
- SMP CPU monitor that can chart individual CPUs and/or a composite CPU.
- Temperature, fan, and voltage sensor monitors if supported by the kernel and the mainboard hardware (Linux requires lm_sensors to be installed).
- Each sensor monitor has a configurable alarm and warning.
- Process monitor with a chart for load and forks and a display of number of current processes and users.
- Disk monitor that can chart individual disks or a composite disk.
- Internet monitor (http, ftp, ...) that displays current tcp port connections and charts historical port hits for over two days.
- Net interface monitors with charts for all routed net interfaces. Data rx/tx LEDs and a timer button that can be linked to a ppp or isdn net interface and displays on line time.
- Memory and swap space usage meters, and a swap page in/out chart.
- File system meters which show capacity/free space and can mount/umount.
- A mailbox monitor which can launch a mail reader, a mail fetch/check program, and a sound notify command. Builtin new mail message checking for mbox, maildir, MH, POP3, and IMAP mailboxes.
- APM laptop battery meter with a configurable alarm and warning for low battery time left.
- Uptime display.
- Multiple monitors managed by a single process to reduce system load.
- Charts have auto scaling or fixed scaling modes.
- Commands can be configured to run when monitor labels are clicked.
- gkrellm can run in client mode and collect data from a gkrellmd server running on a remote machine.
- Both gkrellm and the gkrellmd server are plugin capable so special interest monitors can be coded.
<<less
Download (0.89MB)
Added: 2007-07-22 License: GPL (GNU General Public License) Price:
824 downloads
Qps 1.9.7

Qps 1.9.7


Qps is a visual process manager,an X11 version of top or ps. more>>
Qps is a visual process manager, an X11 version of "top" or "ps" that displays processes in a window and lets you sort and manipulate them.
Main features:
- change nice value of a process
- alter the scheduling policy and soft realtime priority of a process
- display the TCP/UDP sockets used by a process, and names of the connected hosts (Linux only)
- display the memory mappings of the process (which files and shared libraries are loaded where)
- display the open files of a process, and the state of unix domain sockets
- kill or send any other signal to selected processes
- display the load average as a graph, and use this as its icon when iconified
- show (as graph or numbers) current CPU, memory and swap usage
- sort the process table on any attribute (size, cpu usage, owner etc)
- on SMP systems running Linux 2.1 or later (or Solaris), display cpu usage for each processor, and which CPU a process is running on
- display the environment variables of any process
- show the process table in tree form, showing the parent-child relationship
- execute user-defined commands on selected processes
- display MOSIX-specific fields and migrate processes to other nodes in a cluster
<<less
Download (MB)
Added: 2007-07-19 License: GPL (GNU General Public License) Price:
829 downloads
Phasi 0.2

Phasi 0.2


Phasi is another tool for system info written in PHP. more>>
Phasi project is another tool for system info written in PHP, with graphical report displaying several devices info, show memory status , SWAP use , and mounted disk partitions.
Main features:
- CPU Info
- Devices info
- Memory Status
- SWAP Status
- Disk partitions
<<less
Download (0.013MB)
Added: 2007-07-17 License: GPL (GNU General Public License) Price:
829 downloads
BeleniX 0.6.1

BeleniX 0.6.1


BeleniX is an OS distribution based on OpenSolaris codebase. more>>
BeleniX is an OS distribution based on OpenSolaris codebase. At present BeleniX is a basic LiveCD distribution that boots directly off the CD into a multiuser shell. The name BeleniX is derived after the Sun God Belenos in Celtic Mythology (Do you read Asterix ?).
This distribution includes all the OpenSolaris bits in addition to other GNU/OSS software. At present the distro only supports 32 bit x86 platforms even though OpenSolaris supports AMD64 as well. Support for booting the LiveCD with AMD64 is in the works.
Main features:
- Boots into a 32bit multiuser console login prompt. Support for GUI via Xorg and a desktop environment is coming shortly.
- UserName: root, Password: belenix
- It is based on the OpenSolaris build 20 source base.
- Since it only boots into a shell without GUI, it can run in about 200MB RAM though a minimum of 256MB is good.
- It will scan the harddisk for recognizable partitions and automatically mount them. This will Not mess with any data on the harddisk. This is basically a recovery feature.
- It will try to use physical swap if the harddisk already has a formatted Solaris partition. This helps reduce RAM usage for swap.
- It automatically starts DHCP and will configure DNS/NIS via the eventhook mechanism if the DHCP server supports it.
- It allows the user to configure the Keyboard layout via a simple UI during bootup.
- Uses a 60MB space optimised ramdisk for the root filesystem.
It includes various software packages like:
- Dan Micks prtpci script that dumps PCI info in human readable format. Somewhat like lspci in Linux.
- Casper Diks acpi, AMD powernow drivers and powernow utility for CPU frequency scaling.
- Masayuki Murayamas open source network drivers.
- Juergen Keils audio drivers for Solaris.
- Includes a Grub splash screen derived from one of Chandans excellent collection.
Includes the following GNU/OSS software:
- gcc 3.4, GNU assembler (from binutils)
- Bison, Flex
- GNU Gettext, Gmake, Gtar
- Gzip and Bzip2
- Less
- Layer 4 Traceroute (an enhanced traceroute utility)
- Libiconv, Libpcap, Ncurses
- Lynx, Vim, Wget
- Top process status utility
- GNU Screen (Terminal Multiplexor)
- The aperture driver which is required to eventually get X11 working on this distro.
- Perl 5.8.4 which comes default with OpenSolaris
- Fontconfig, Freetype2, Expat: These will be required by Xorg X11 server.
- The FreeBSD math library ported to work with OpenSolaris. This is essential for a self-hosting OpenSolaris distribution
<<less
Download (694.7MB)
Added: 2007-07-11 License: GPL (GNU General Public License) Price:
838 downloads
PDL::Ops 2.4.3

PDL::Ops 2.4.3


PDL::Ops Perl module contains fundamental mathematical operators. more>>
PDL::Ops Perl module contains fundamental mathematical operators.

This module provides the functions used by PDL to overload the basic mathematical operators (+ - / * etc.) and functions (sin sqrt etc.)

It also includes the function log10, which should be a perl function so that we can overload it!

Matrix multiplication (the operator x) is handled by the module PDL::Primitive.

$doc
$c = $name $a, $b, 0; # explicit call with trailing 0
$c = $a $op $b; # overloaded call
$a->inplace->$name($b,0); # modify $a inplace

It can be made to work inplace with the $a->inplace syntax. This function is used to overload the binary $optxt operator. Note that when calling this function explicitly you need to supply a third argument that should generally be zero (see first example). This restriction is expected to go away in future releases. EOD } # sub: biop()

#simple binary functions sub bifunc { my ($name,$func,$swap,$doc,%extra) = @_; my $funcov = ref $func eq ARRAY ? $func->[1] : $func; my $isop=0; if ($funcov =~ s/^op//) { $isop = 1; } my $funcovp = protect_chars $funcov; $func = $func->[0] if ref $func eq ARRAY; if ($swap) { $extra{HdrCode} .= 1, NoBadifNaN => 1, Pars => a(); b(); [o]c();, OtherPars => int swap, Inplace => [ a ], # quick and dirty solution to get ->inplace do its job Code => "$c() = $func($a(),$b());", BadCode => if ( $ISBAD(a()) || $ISBAD(b()) ) $SETBAD(c()); else . "n $c() = $func($a(),$b());n", CopyBadStatusCode => if ( $BADFLAGCACHE() ) { if ( a == c && $ISPDLSTATEGOOD(a) ) { PDL->propogate_badflag( c, 1 ); /* have inplace op AND badflag has changed */ } $SETPDLSTATEBAD(c); }, %extra, Doc => $name($b,0); # explicit function call
$ovcall
$a->inplace->$name($b,0); # modify $a inplace

It can be made to work inplace with the $a->inplace syntax. This function is used to overload the binary $funcovp function. Note that when calling this function explicitly you need to supply a third argument that should generally be zero (see first example). This restriction is expected to go away in future releases. EOD } # sub: bifunc()

# simple unary functions and operators sub ufunc { my ($name,$func,$doc,%extra) = @_; my $funcov = ref $func eq ARRAY ? $func->[1] : $func; my $funcovp = protect_chars $funcov; $func = $func->[0] if ref $func eq ARRAY;
# handle exceptions

my $badcode = $ISBAD(a());
if ( exists $extra{Exception} ) {
# $badcode .= " || $extra{Exception}";
# print "Warning: ignored exception for $namen";
delete $exists{Exception};
}

# do not have to worry about propogation of the badflag when
# inplace since only input piddle is a, hence its badflag
# wont change
# UNLESS an exception occurs...
pp_def($name,
Pars => a(); [o]b(),
HandleBad => 1,
NoBadifNaN => 1,
Inplace => 1,
Code =>
"$b() = $func($a());",
BadCode =>
if ( . $badcode . )
$SETBAD(b());
else . "n $b() = $func($a());n",
%extra,
Doc => inplace->$name; # modify $a inplace

It can be made to work inplace with the $a->inplace syntax. This function is used to overload the unary $funcovp operator/function. EOD } # sub: ufunc()
######################################################################
# we trap some illegal operations here -- see the Exception option # note, for the ufunc()s, the checks do not work too well # for unsigned integer types (ie < 0) # # XXX needs thinking about # - have to integrate into Code section as well (so # 12/pdl(2,4,0,3) is trapped and flagged bad) # --> complicated # - perhaps could use type %{ %} ? # # ==> currently have commented out the exception code, since # want to see if can use NaN/Inf for bad values # (would solve many problems for F,D types) # # there is an issue over how we handle comparison operators # - see Primitive/primitive.pd/zcover() for more discussion #
## arithmetic ops # no swap biop(plus,+,0,add two piddles); biop(mult,*,0,multiply two piddles);

# all those need swapping biop(minus,-,1,subtract two piddles); biop(divide,/,1,divide two piddles, Exception => $b() == 0 );
## note: divide should perhaps trap division by zero as well
## comparison ops # need swapping biop(gt,>,1,the binary > (greater than) operation); biop(lt,,1,leftshift a$ by $b,GenericTypes => $T); biop(or2,|,0,binary or of two piddles,GenericTypes => $T); biop(and2,&,0,binary and of two piddles,GenericTypes => $T); biop(xor,^,0,binary exclusive or of two piddles,GenericTypes => $T);
# really an ufunc ufunc(bitnot,~,unary bit negation,GenericTypes => $T);
# some standard binary functions bifunc(power,[pow,op**],1,raise piddle $a to the power b,GenericTypes => [D]); bifunc(atan2,atan2,1,elementwise atan2 of two piddles,GenericTypes => [D]); bifunc(modulo,[MOD,op%],1,elementwise modulo operation); bifunc(spaceship,[SPACE,op],1,elementwise ~ operation);

# some standard unary functions ufunc(sqrt,sqrt,elementwise square root, Exception => $a() < 0 ); ufunc(abs,[ABS,abs],elementwise absolute value,GenericTypes => [D,F,S,L]); ufunc(sin,sin,the sin function); ufunc(cos,cos,the cos function); ufunc(not,!,the elementwise not operation); ufunc(exp,exp,the exponential function,GenericTypes => [D]); ufunc(log,log,the natural logarithm,GenericTypes => [D], Exception => $a() [D], Exception => $a() sub PDL::log10 { my $x = shift; if ( ! UNIVERSAL::isa($x,"PDL") ) { return log($x) / log(10); } my $y; if ( $x->is_inplace ) { $x->set_inplace(0); $y = $x; } elsif( ref($x) eq "PDL"){ #PDL Objects, use nullcreate: $y = PDL->nullcreate($x); }else{ #PDL-Derived Object, use copy: (Consistent with # Auto-creation docs in Objects.pod) $y = $x->copy; } &PDL::_log10_int( $x, $y ); return $y; }; );

# note: the extra code that adding HandleBad => 1 creates is # unneeded here. Things could be made clever enough to work this out, # but its very low priority. # It does add doc information though, and lets people know its been # looked at for bad value support # DJB adds: not completely sure about this now that I have added code # to avoid a valgrind-reported error (see the CacheBadFlagInit rule # in PP.pm) # # Cant this be handled in Core.pm when .= is overloaded ? # pp_def( assgn, # HandleBad => 1, Pars => a(); [o]b();, Code => $b() = $a();, # BadCode => # if ( $ISBAD(a()) ) { $SETBAD(b()); } else { $b() = $a(); }, Doc => Plain numerical assignment. This is used to implement the ".=" operator, ); # pp_def assgn

#pp_export_nothing();

pp_done();

<<less
Download (2.1MB)
Added: 2007-06-29 License: Perl Artistic License Price:
847 downloads
Template::Alloy 1.004

Template::Alloy 1.004


Template::Alloy is a TT2/3, HT, HTE, Tmpl, and Velocity Engine. more>>
Template::Alloy is a TT2/3, HT, HTE, Tmpl, and Velocity Engine.

SYNOPSIS

Template::Toolkit style usage
my $t = Template::Alloy->new(
INCLUDE_PATH => [/path/to/templates],
);

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

# print to STDOUT
$t->process(my/template.tt, $swap)
|| die $t->error;

# process into a variable
my $out = ;
$t->process(my/template.tt, $swap, $out);

### Alloy uses the same syntax and configuration as Template::Toolkit
HTML::Template::Expr style usage
my $t = Template::Alloy->new(
filename => my/template.ht,
path => [/path/to/templates],
);

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

$t->param($swap);

# print to STDOUT (errors die)
$t->output(print_to => *STDOUT);

# process into a variable
my $out = $t->output;

### Alloy can also use the same syntax and configuration as HTML::Template
Text::Tmpl style usage
my $t = Template::Alloy->new;

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

$t->set_delimiters(#[, ]#);
$t->set_strip(0);
$t->set_values($swap);
$t->set_dir(/path/to/templates);

my $out = $t->parse_file(my/template.tmpl);

my $str = "Foo #[echo $key1]# Bar";
my $out = $t->parse_string($str);


### Alloy uses the same syntax and configuration as Text::Tmpl
Velocity (VTL) style usage
my $t = Template::Alloy->new;

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

my $out = $t->merge(my/template.vtl, $swap);

my $str = "#set($foo 1 + 3) ($foo) ($bar) ($!baz)";
my $out = $t->merge($str, $swap);

<<less
Download (0.14MB)
Added: 2007-06-28 License: Perl Artistic License Price:
849 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5