This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DomainObj(object): | |
def __init__(self): | |
self._owner = None | |
class Domain(object): | |
def request_exec_on_with(self, method_name, target, *args): | |
fun = getattr(target, method_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1c56f76bbf44] {jit-backend-dump | |
BACKEND x86_64 | |
SYS_EXECUTABLE ?? | |
CODE_DUMP @101501000 +0 48894D58488945604889556848895D70488975784889BD800000004C8985880000004C898D900000004C8995980000004C89A5A00000004C89ADA80000004C89B5B00000004C89BDB80000008F45208F45104889E848BBD0A530000100000048832B084C8BBC24900000004C8BB424880000004C8BAC24800000004C8B642478488B5C2470488B6C24684881C498000000C3 | |
[1c56f76c9275] jit-backend-dump} | |
[1c56f76d1bce] {jit-backend-dump | |
BACKEND x86_64 | |
SYS_EXECUTABLE ?? | |
CODE_DUMP @101501092 +0 48894D58488945604889556848895D70488975784889BD800000004C8985880000004C898D900000004C8995980000004C89A5A00000004C89ADA80000004C89B5B00000004C89BDB800000049BB38F23D0001000000498B1B49BB30F23D000100000049C7030000000049BB38F23D000100000049C7030000000048895D388F45208F45104889E848BBD0A530000100000048832B084C8BBC24900000004C8BB424880000004C8BAC24800000004C8B642478488B5C2470488B6C24684881C498000000C3 | |
[1c56f76d4ee5] jit-backend-dump} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r ae1f561d0a35 rpython/translator/c/test/test_typed.py | |
--- a/rpython/translator/c/test/test_typed.py Tue Sep 23 15:29:32 2014 -0400 | |
+++ b/rpython/translator/c/test/test_typed.py Wed Sep 24 11:39:30 2014 +0200 | |
@@ -487,6 +487,14 @@ | |
fn = self.getcompiled(snippet.lshift_func, [int]) | |
fn(1, expected_exception_name='OverflowError') | |
+ fn2 = self.getcompiled(snippet.lshift_func_2, [int, int]) | |
+ | |
+ assert fn2(1, 32) == 4294967296 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// scrapping the V'Lille Bicycle availability | |
$index = file_get_contents('http://www.vlille.mobi/index.php?id=158'); //('index158.html'); | |
$lines = explode("\n", $index); | |
class Item { | |
public $name; | |
public $velos; | |
public $places; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Loop 2 (FieldLoop>>$blockMethod@30@15 while <WhileMessageNode object at 0x1007672b0>: FieldLoop>>$blockMethod@31@15) : loop with 519 ops | |
[p0, p1] | |
+116: label(p0, p1, descr=TargetToken(4302785856)) | |
debug_merge_point(0, 0, 'FieldLoop>>$blockMethod@30@15 while <WhileMessageNode object at 0x1007672b0>: FieldLoop>>$blockMethod@31@15') | |
+116: i2 = instance_ptr_eq(p1, p0) | |
guard_true(i2, descr=<Guard0x1030e3440>) [p1, p0] | |
debug_merge_point(1, 1, 'FieldLoop>>#$blockMethod@30@15') | |
+136: guard_not_invalidated(descr=<Guard0x1030e33d0>) [p0] | |
+136: p3 = getfield_gc_pure(p0, descr=<FieldP som.vmobjects.block.Block.inst__outer_tmps 40>) | |
+147: p5 = getarrayitem_gc(p3, 0, descr=<ArrayP 8>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[translation:info] Error: | |
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/goal/translate.py", line 316, in main | |
[translation:info] drv.proceed(goals) | |
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/driver.py", line 531, in proceed | |
[translation:info] return self._execute(goals, task_skip = self._maybe_skip()) | |
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute | |
[translation:info] res = self._do(goal, taskcallable, *args, **kwds) | |
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/driver.py", line 276, in _do | |
[translation:info] res = func() | |
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/driver.py", line 343, in task_rtype_lltype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Arithmetics | |
import java.lang.System | |
function gcd = |x, y, repeat| { | |
var res = 0_L | |
for (var i = 0_L, i < repeat, i = i + 1_L) { | |
var a = x | |
var b = y | |
while a != b { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright © 2004-2013 Brent Fulgham | |
# | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
@License Public Domain | |
@author Carsten Dobschat <version 1.3> <http://www.dobschat.de/index.php/dobschat/entry/serendipity-s9y-importer-for-wordpress-13/> | |
@author Michael Tyson <version 1.2> <http://michael.tyson.id.au/2008/09/04/serendipity-s9y-importer-for-wordpress/> | |
@author Aaron Brazell <version 1.1> <http://technosailor.com/2007/01/02/new-version-of-serendipity-s9y-to-wordpress-importer-available/> | |
@version 1.4 | |
Changelog: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## reproduce the figures from http://www.jstatsoft.org/v28/c01/paper using ggplot2 | |
library(ggplot2) | |
## parameters | |
set.seed(2710) | |
## Figure 1 | |
d <- rnorm(50) |
OlderNewer