Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
iogf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
Show HN: A minimalist event driven framework for python.
(github.com)
19 points
by
iogf
9y ago
|
2 comments
92.
▲
by
iogf
9y ago
It seems a good thing to do, indeed. i'll consider that.
93.
▲
by
iogf
9y ago
untwisted is pure python. it uses either select/epoll for scaling sockets.
94.
▲
by
iogf
9y ago
Untwised is meant to solve all problems twisted solves but it does it in quite a different way. They are two different tools that would solve the same problems using different approaches. Untwisted doesnt share code nor architecture with tw
95.
▲
by
iogf
9y ago
It is py2 now, however, i'm gonna port it to py3 soon. I'm planning to write some better docs for it tomorrow.
96.
▲
by
iogf
9y ago
The throtting can be set directly from untwisted reactor(planning to implement soon once i get untwisted on py3). I think the support for caching is really good too, i plan to implement it this week.
97.
▲
by
iogf
9y ago
I would like to see that in scrapy. I think you may have a point about the generators, yea.
98.
▲
by
iogf
9y ago
These ones are slower in most cases, it seems for some situations the ones that dont execute js would better do the job.
99.
▲
by
iogf
9y ago
Try to imagine how to solve the second example of the sukhoi README.md using scrapy, you'll notice you'll end up with some kind of obscure logic to achieve that json structure thats outputed by the second example in sukhoi's
100.
▲
by
iogf
9y ago
The way of how you construct your json structures in scrapy it is different, scrapy has a longer learning curve too. It seems sukhoi has got better results in performance too.
101.
▲
Show HN: Sukhoi – A flexible and extensible Webcrawler in Python
(github.com)
131 points
by
iogf
9y ago
|
34 comments
102.
▲
Show HN: (rubtex) Write ruby then output latex
(github.com)
1 points
by
iogf
9y ago
|
0 comments
103.
▲
Show HN: AST explorer for HTML/XML in python
(github.com)
3 points
by
iogf
9y ago
|
0 comments
104.
▲
by
iogf
9y ago
I'm working on a nice tutorial with crocs for that, it remains implementing backtracking when generating valid input.
105.
▲
by
iogf
9y ago
This one doesnt look to support lookahead/lookbehind nor it outputs valid inputs for the matches though. However, it is interesting the way of how you chain the VerEx to build the patterns.
106.
▲
by
iogf
9y ago
I have been adding more docs to: https://github.com/iogf/crocs/wiki It would be interesting to hear comments :)
107.
▲
by
iogf
9y ago
When i thought of Include and Exclude i had in mind it as a shorthand for IncludeFromTo and ExcludeFromTo. About the Repeating/Repeat it could be just an idiomatic way of writing Include which stands for just one char thats fetched fro
108.
▲
by
iogf
9y ago
I think so i would ask you to open issues in crocs at github, so i can better keep track of suggestions and implement them.
109.
▲
by
iogf
9y ago
hmm, I think it is good, maybe p0 = X('a', 'z'). I like it.
110.
▲
by
iogf
9y ago
Seq stands for a-z or 0-9 which can be used only in Include and Exclude. When you write Include(Seq('a', 'm')) it means you are including a character from that sequence in a given position of your pattern. So if you have
111.
▲
by
iogf
9y ago
I may add synonyms for those classes, so, it is just a matter of adding: Repeat = Times etc. you wouldnt use these structures in python code, you use them to build your regex then compile it and use the regex in your programs. It is possibl
112.
▲
by
iogf
9y ago
It can be ported to py3 with no difficult though it is meant to be used as a tool to construct regex, it shouldnt be put in your programs for a matter of performance at all(mainly those that are critical). About some examples being long, i
113.
▲
by
iogf
9y ago
The main benefit about crocs it is purely epistemological in the sense it eases learning and consequently improves reasoning when implementing filters for content instead of using regex approach one would use crocs approach and get benefits
114.
▲
by
iogf
9y ago
Yes, there are interesting benefits about type safety consequently it improves debugging as well.
115.
▲
by
iogf
9y ago
The example is longer than the regex itself however it is simpler to explain to a beginner what crocs's example does than explaning the regex itself. Based on that assumption using crocs's syntax should favour reasoning somehow si
116.
▲
by
iogf
9y ago
This is the official regex to check for mail validity. \A(?:[a-z0-9!#$%&' +/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&' +/=?^_`{|}~-]+)* | "(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f] | \\[\x01-\x09\x0
117.
▲
by
iogf
9y ago
The idea is having a set of entities on which one could reason better to implement more complex filters(regex) as well as debugging them. It is sort of a way of reasoning on filtering results it merely uses regex as an underlying tool. One
118.
▲
by
iogf
9y ago
Interesting suggestion.
119.
▲
Show HN: Using functions to construct Regex in Python
(github.com)
105 points
by
iogf
9y ago
|
55 comments
120.
▲
Show HN: (crocs) Write regex using python function syntax and test it better
(github.com)
3 points
by
iogf
9y ago
|
0 comments
More ›