Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jamesdutc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
jamesdutc
6y ago
I think audit hooks were a great idea and are part of a defence-in-depth strategy. In fact, I even implemented the variant of audit hooks that informed PEP-551 and deployed those to production for a major platform. I think that if you were
32.
▲
by
jamesdutc
7y ago
> Where can I pip install this from? A couple of signatures have changed, but the general approach looks like: https://gist.github.com/dutc/eba9b2f7980f400f6287 or https://gist.github.com/dutc/2
33.
▲
by
jamesdutc
7y ago
Embedding Python 2 inside of Python 3 (or vice-versa) is not very hard to do on Linux. Simply `dlmopen` the .so in a new linker namespace and write a little bit of bridging code to interface the two object layouts. Python has a very rich ru
34.
▲
by
jamesdutc
8y ago
I would love to find a comparable device from a vendor that prioritises Linux support. As far as I can tell, none such exist. There are many companies making "detachable"/"type cover" tablet devices, but I can'
35.
▲
by
jamesdutc
8y ago
There are, as far as I can tell, no Linux drivers for the OV2740 and IMX136 cameras (yet.) It's unfortunate that the Qualcomm WiFi does not work out of the box. However, the fix is fairly easy, and day-to-day WiFi performance is solid:
36.
▲
by
jamesdutc
8y ago
Here's my review of (Arch) Linux on the Surface Go: https://www.reddit.com/r/SurfaceLinux/comments/94hjxv/surfac... The results are similar. Support is slightly better on Linux (e.g., Bluetooth &
37.
▲
by
jamesdutc
8y ago
I own the following devices: Surface 3 (non-Pro,) Surface Pro 3, and a Surface Pro 2017: - Surface 3: Atom x7, 4 GB RAM, 128 GB HDD - Surface Pro 3: i7, 8 GB RAM, 256 GB HDD - Surface Pro 2017: i7, 16 GB RAM, 1 TB HDD I use
38.
▲
by
jamesdutc
9y ago
Some environments use code-signing as a security mechanism. Arbitrary execution via pickle creates holes in this mechanism, requiring additional mitigations. PEP-551 briefly discusses security motivations and potential mechanisms for enviro
39.
▲
by
jamesdutc
9y ago
Shell-code attacks using pickled objects have been around for some time. A pickle bytestring can execute completely arbitrary code. I have used them in my work. An easy introduction: https://www2.cs.uic.edu/~s/musings&
40.
▲
by
jamesdutc
9y ago
But tuples (and cells) are mutable in pure CPython if you believe strongly enough. See: https://gist.github.com/llllllllll/b1ac68a6b77535a64c0b13bfd... https://gist.github.com/dutc/d2ff9f17a0520d23
41.
▲
by
jamesdutc
9y ago
Absolute child's play compared to: https://gist.github.com/llllllllll/b1ac68a6b77535a64c0b13bfd... (Python's LOAD_FAST bytecode does `fastlocals[i]`: how can we abuse the lack of bounds checking on this array
42.
▲
by
jamesdutc
9y ago
I can do this in Python with my `rwatch` module. >>> from datetime import datetime >>> x = lambda: f'{datetime.now()}' >>> x <function <lambda> at 0x7f9f435e4510> >&g
43.
▲
by
jamesdutc
9y ago
I'm one of the lead organisers of the meetups that Aaron mentions, and I'd like to offer an additional perspective. I think that both Aaron and myself (and, indeed, all of the organisers) use the meetup as an opportunity to meet p
44.
▲
by
jamesdutc
10y ago
Brett, thanks for contributions to Python. (... and thanks to the other contributors, https://github.com/python/cpython/blob/master/Misc/ACKS , and to all people who volunteer their by contributing t
45.
▲
by
jamesdutc
10y ago
I had a personal conversation with Larry Hastings (the presenter) at PyCon. Here are a couple of notes from that chat, phrased neutrally. Some of these points may be reïterated in the linked video: - We can view this work is as a revisiting
46.
▲
by
jamesdutc
10y ago
Sort of. Note that Python has support for shared memory: https://docs.python.org/2/library/multiprocessing.html#shari... In fact, `numpy` has its own mechanisms to support shared memory between processes: https:&
47.
▲
by
jamesdutc
10y ago
Awesome keynote today by NumFOCUS ( http://numfocus.org ) board member Dr Lorena Barba ( http://lorenabarba.com ): "Beyond 'Learning to Program' — Education, Open-Source Culture, and Structured Collaborati
48.
▲
by
jamesdutc
10y ago
There's interesting overlap between tools like `cffi` and `cython`. This is one of the approaches I am pursuing to polish off something I put together recently: rapid prototyping of LD_PRELOADs in Python. I presented an early approach
49.
▲
by
jamesdutc
10y ago
Python's site module contributes a lot to this. It attempts to load a lot of other modules, many of which may not exist for a given install. Using your example: $ strace python3 -c 'print("hello world", end="&
50.
▲
by
jamesdutc
10y ago
For some background on the direction of the Jupyter project, check out this recent talk at PyData Amsterdam ( http://pydata.org/amsterdam2016 ) by Min Ragan-Kelley & Thomas Kluyver. They talk about how Jupyter has "e
51.
▲
by
jamesdutc
11y ago
This is an odd perspective on inclusivity, but I understand where it comes from. I would think it would be well within the mandate of the conference organisers to pick talks that reflect the material they want to see presented and the conve
52.
▲
by
jamesdutc
11y ago
I wore a suit when I interviewed at Reddit. I didn't get the job. (Vanity compels me to share: I was probably going to ask for more money than they would have been willing to pay. But before a former CEO pops in this thread to reveal t
53.
▲
by
jamesdutc
11y ago
"Consulting" or "contracting" can refer to different kinds of work arrangements. One of these is what's called "staff augmentation." Large companies with huge teams of full-time employed software programme
54.
▲
by
jamesdutc
11y ago
A simple example of how import hooks use for module relocation/deprecation: https://gist.github.com/dutc/0f7498451d98e3114268
55.
▲
by
jamesdutc
11y ago
The mechanism is called "import hooks": https://docs.python.org/3/reference/import.html#import-hooks https://www.python.org/dev/peps/pep-0302/ You can see the import hook
56.
▲
by
jamesdutc
11y ago
Oh, I should also mention that I found a way to embed Python interpreters within themselves. I have a couple of different ways to do it. Here's one: https://gist.github.com/dutc/eba9b2f7980f400f6287 Here's an
57.
▲
by
jamesdutc
11y ago
You'd have to pay a lot. Jokes of mine like https://github.com/dutc/rwatch and https://github.com/dutc/didyoumean and https://bitbucket.org/dutc/astexpr are examples of
58.
▲
by
jamesdutc
11y ago
Linkers are very much like hyperdrives. They're one of those ancient but ubiquitous technologies; no one knows how they work, but no one cares. The basics of dynamic linking is actually pretty simple, but it's tricky to find refer
59.
▲
by
jamesdutc
11y ago
This is great news for Julia! As a long time Python user, I disagree with the insinuation of competition between the two communities. In fact, I've met all of the core developers of Julia and of the major Python data science projects,
60.
▲
by
jamesdutc
11y ago
I also posted this below as a reply. Python uses David Gay's algorithm for printing the shortest equivalent floating point representation. Implementation details and discussion are available from the Python bug tracker: https:/&#
More ›