Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »

Andrew Gwozdziewycz › Comments

Andrew Gwozdziewycz
apgwoz on [9/05/2014] Challenge #178 [Hard] Regular Expression Fractals - http://www.reddit.com/r...
"Python version. Doesn't support coloring via capture size. No recursion, but excessive use of generators. Overall, pretty happy with it. import re import itertools from PIL import Image def str2pt(s): L = len(s) - 1 x, y = 1, 1 for n in s: y += 2**L if n in '34' else 0 x += 2**L if n in '14' else 0 L -= 1 return x-1, y-1 def generate(n): accum = list('1234') for i in range(n - 1): accum = map(lambda x: ''.join(x), itertools.product(accum, alpha)) return accum def fractal(r, n): return map(str2pt, (c for c in generate(n) if re.match(r, c))) def draw(r, n=10, filename='/tmp/fractal.png'): im = Image.new('RGB', (2**n, 2**n), "black") for x, y in fractal(r, n): im.putpixel((x, y), (255, 255, 255,)) im.save(filename, 'PNG')" - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Wildcard Matching (Java, ) - http://www.reddit.com/r...
"This looks like Rob Pike's code add seen here: http://www.cs.princeton.edu/courses..." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: Man Rescued Girl From Subway Tracks While Everyone Else Took Photos - http://gothamist.com/2014...
"But you can only do that if you're on a numbered train! All hope (or life) is lost otherwise." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: Video: Fake Banksy Stand In Central Park Sells Out Of Pieces In One Hour - http://gothamist.com/2013...
"This sounds like something Banksy would do to criticize hype, public personas and the value of art." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Is immutability good for GC performance? - http://www.reddit.com/r...
"They no longer use this collector, but: http://citeseerx.ist.psu.edu/viewdoc..." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
"So, this is sort of a real "water" color, then?" - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: Hacker Andrew Auernheimer Sentenced To 41 Months Stealing iPad Subscriber Emails - http://gothamist.com/2013...
"> For example: Under California law, people must be notified their info has been hacked. That's the responsibility of AT&T, not the person who happens to get the data." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Fabric not Uniforms - http://www.reddit.com/r...
"What's wrong with a little bit of metaphor? Sorry that you were disappointed." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Andrew Gwozdziewycz
reddit is offline in protest of PROTECT IP and SOPA - http://www.reddit.com/
"submitted by reddit to blog." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on node-fib: Fast non-blocking fibonacci server - http://www.reddit.com/r...
"You sir, win 1st prize for completely missing the point (despite thinking you're not--your clever "why?" won't save you here)." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"> A lot of people have never heard of many languages, so your mileage may vary. Of course, but regarding your other point, you can say the same about Scala (which of course has been around a bit longer) and even Clojure. They have very strong communities with lots of contributors. I'd still argue though that Scala is closer to critical mass than Go. Maybe I'm wrong though." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"which is precisely why I'm saying that they haven't reached critical mass. Maybe I'm setting the quantity for critical mass too high, but I don't believe so. Either way, I recognize your point that Go has lots of contributors and lots of buzz, and so have many other languages. I like the trend, but we're not there yet." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"And yet, 90% of the people I work with have no idea..." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"I think you have a severely inflated definition of "Critical mass."" - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"I take it you work with smart people like Torvalds all day, huh?" - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"What does what have to do with anything? The fact that most people don't use Limbo, nor have they heard of it? There are many languages that get concurrency right. None of them have critical mass and thus will never see the light of day by *main street programmers*. That's my point." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"Sure, but that doesn't make C good at concurrency. It does mean that you can create powerful abstractions in C (sometimes very painfully) which can be included as easy to use features / libraries in another programming language written in C or targetting C. But, what's stopping you from writing these powerful abstractions once in C and then using them over and over again without embedding them in another programming language you ask? Your new programming language can enforce the semantics that are necessary for those abstractions to work correctly; the C compiler is bound only by the C standard it implements, which largely means a programmer using your precisely defined, implemented and amazing abstractions can do whatever she wants with them, including using them inappropriately which breaks them (and everything else). This is the power (downfall) of abstraction." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Your favorite language probably sucks at concurrency too - http://www.reddit.com/r...
"And how many people have used Limbo, let alone know what Limbo is? He makes the point that there *are* languages that do a good job, but you probably aren't using one of them. *edit:* "have used, let alone used" made no sense." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Off The Grid: A paper based password encryption algorithm - http://www.reddit.com/r...
"not only that, but should you be required to change your password, there is a way to generate many more for the same domain." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Zed Shaw: The Petrichor Protocol Primitives - http://www.reddit.com/r...
"But, that's just a horrible idea. It's fine, if say the values of the switch branches are constants, but python function calls + creation is pretty expensive...." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: My Last Name is a CAPTCHA; Therefore, I'm Screwed on Social Sites That Require Real Names - http://www.xojane.com/tech...
"I feel like I should chime in. I gave up trying to not be found by search engines long ago, since my name is ridiculously unique." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: My Last Name is a CAPTCHA; Therefore, I'm Screwed on Social Sites That Require Real Names - http://www.disqus.com/people...
"I feel like I should chime in. I gave up trying to not be found by search engines long ago, since my name is ridiculously unique." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on New, Undeletable, Web Cookie - http://www.reddit.com/r...
"Well, the obvious way to do this is to make GET requests for assets without ETags. The only problem there is, then they'll setup an asset with a unique identifier for you to grab with a Content-Length: 0. You either request an asset with information, or you don't. Whatever is variable in the request the path, Cookie: , ETag: etc can be used in this way." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on New, Undeletable, Web Cookie - http://www.reddit.com/r...
"Choosing between privacy and page load speed shouldn't be a choice. We *should* be able to get both, but the NAI is doing a shitty job of ensuring this." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on New, Undeletable, Web Cookie - http://www.reddit.com/r...
"I don't remember evercookie (https://secure.wikimedia.org/wikiped...) doing ETag stuffing when I first read about it, but it apparently does now/did. It's likely that many of the other tracking companies are doing the same thing so, we're pretty much all screwed if we want real privacy on the web. RMS's technique of downloading articles via wget seems likely to be our only hope." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: SIGUSR2 > Code Blogging: Call With Current Continuation for Python - http://sigusr2.net/2011...
"Yes, as I've written it I equate one-shot and escape continuations, which is as you stated incorrect. I wrote this rather quickly this morning and didn't give it a very good proof read. Thanks for catching it!" - Andrew Gwozdziewycz
Andrew Gwozdziewycz
Re: SIGUSR2 > Code Blogging: Call With Current Continuation for Python - http://www.disqus.com/people...
"Yes, as I've written it I equate one-shot and escape continuations, which is as you stated incorrect. I wrote this rather quickly this morning and didn't give it a very good proof read. Thanks for catching it!" - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Type code like they do in the movies - http://www.reddit.com/r...
"See also http://code.google.com/p... for Python which has real world use cases, namely interactive testing in front of an audience." - Andrew Gwozdziewycz
Andrew Gwozdziewycz
apgwoz on Node.js – How to Write a For Loop With Callbacks - http://www.reddit.com/r...
"ZOMG I JUST HAD AN EPIPHANY! recursion = looping!! NODE JS IS SO AWESOME AT INVENTING THINGS. /sarcasm." - Andrew Gwozdziewycz
Other ways to read this feed:Feed readerFacebook