workspace
stringclasses
4 values
channel
stringclasses
4 values
text
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
clojurians
clojure
yes
2017-10-24T06:19:51.000154
Corazon
clojurians
clojure
Just out of curiousity
2017-10-24T06:19:57.000002
Corazon
clojurians
clojure
oh god, so many things
2017-10-24T06:19:58.000317
Cecilia
clojurians
clojure
I take it you have apache or nginx there spawning your PHP stuff, right?
2017-10-24T06:20:20.000274
Cecilia
clojurians
clojure
no we use django and 5 web load balancers with nginx
2017-10-24T06:20:37.000205
Corazon
clojurians
clojure
he is not contributing to django codebase at the moment
2017-10-24T06:20:48.000176
Corazon
clojurians
clojure
right, doesn’t change things. Something somewhere is anyway spawning a PHP process per request
2017-10-24T06:21:05.000060
Cecilia
clojurians
clojure
now, imagine two concurrent requests coming in, both of which try to do that row locking. If this row locking logic is kept in memory these two processes won’t see the locking defined by the other process since they are separate processes
2017-10-24T06:21:57.000007
Cecilia
clojurians
clojure
if you’d have something sensible like Clojure then you could do that relatively safely - as long as you’d have only one server serving all the traffic
2017-10-24T06:22:26.000043
Cecilia
clojurians
clojure
when you add another server then it’s the same problem all over again: different processes, different memoryspaces
2017-10-24T06:22:48.000268
Cecilia
clojurians
clojure
So non-deterministic output?
2017-10-24T06:23:05.000011
Corazon
clojurians
clojure
it depends on completely what is being row locked and why
2017-10-24T06:23:17.000131
Cecilia
clojurians
clojure
if row locking is done for writes then most likely this will fuck up your database
2017-10-24T06:23:31.000253
Cecilia
clojurians
clojure
stuff that’s supposed to be unique is not
2017-10-24T06:23:38.000063
Cecilia
clojurians
clojure
fuck up how, load average?
2017-10-24T06:23:47.000285
Corazon
clojurians
clojure
process A writes “foo”, process B tries to write “foo”, manages to do it since it doesn’t see the row locking stuff
2017-10-24T06:24:13.000076
Cecilia
clojurians
clojure
Sorry i'm asking so many questions, but this guy will interogate and second guess what i know. So i need ammunition
2017-10-24T06:24:20.000413
Corazon
clojurians
clojure
in addition you’ll end up writing a lot of code which you could handle with single statement in your schema definitions for postgre
2017-10-24T06:25:06.000242
Cecilia
clojurians
clojure
code which won’t work unless you create a mechanism to handle concurrency which is ACID compliant
2017-10-24T06:26:02.000126
Cecilia
clojurians
clojure
that guy should write nginx too while he’s at it
2017-10-24T06:26:36.000097
Cecilia
clojurians
clojure
Ok. thanks, I will just say no it wont work. Don't have energy to argue with know-it-alls
2017-10-24T06:27:10.000238
Corazon
clojurians
clojure
no, you can say that he can get it to work if he writes a fully fleged ACID compliant concurrency handling
2017-10-24T06:27:58.000373
Cecilia
clojurians
clojure
good luck with that
2017-10-24T06:28:09.000285
Cecilia
clojurians
clojure
especially with PHP :smile:
2017-10-24T06:28:13.000202
Cecilia
clojurians
clojure
roflol, but phalcan is a c implementation and is fast as hell
2017-10-24T06:28:29.000274
Corazon
clojurians
clojure
it’s not about speed, it’s about what you have at language level
2017-10-24T06:28:47.000118
Cecilia
clojurians
clojure
PHP doesn’t have concurrency primitives
2017-10-24T06:28:55.000231
Cecilia
clojurians
clojure
I know, you can write bad code in any language, most people write bad code in php, hehe
2017-10-24T06:29:54.000153
Corazon
clojurians
clojure
Is there a way to avoid a know-it-all outlandish ideas?
2017-10-24T06:32:36.000335
Corazon
clojurians
clojure
yes, get experience on multiple things, realize you know jack shit and get humble
2017-10-24T06:32:55.000179
Cecilia
clojurians
clojure
I know, but i dont want to have to defend my position and knowledge all the time, its energy draining
2017-10-24T06:33:32.000334
Corazon
clojurians
clojure
I know my limitations, so i wont talk about stuff i dont know
2017-10-24T06:33:47.000161
Corazon
clojurians
clojure
been there done that. Changed jobs.
2017-10-24T06:33:48.000105
Cecilia
clojurians
clojure
or to be more exact: client, not job
2017-10-24T06:34:22.000343
Cecilia
clojurians
clojure
when I was a consultant
2017-10-24T06:34:27.000422
Cecilia
clojurians
clojure
I really like this job, don't want to work for a corporate again
2017-10-24T06:34:53.000263
Corazon
clojurians
clojure
then deal with the ugly parts of it and be happy :slightly_smiling_face:
2017-10-24T06:35:31.000237
Cecilia
clojurians
clojure
Ok, good point
2017-10-24T06:35:45.000368
Corazon
clojurians
clojure
I think i'd be happy if i can get paid writing clojure code all day
2017-10-24T06:41:07.000426
Corazon
clojurians
clojure
but south africa is behind :disappointed:
2017-10-24T06:41:46.000130
Corazon
clojurians
clojure
I’m actually writing scala these days, not exactly happy about that
2017-10-24T06:43:08.000043
Cecilia
clojurians
clojure
Why, whats wrong with scala?
2017-10-24T06:43:29.000052
Corazon
clojurians
clojure
well, my main issue with it is the `implicit` and what it brings
2017-10-24T06:43:53.000055
Cecilia
clojurians
clojure
Well, dont know any scala, so i can't say i understand :slightly_smiling_face:
2017-10-24T06:44:14.000083
Corazon
clojurians
clojure
and also the ideology that “writing code is a bad thing, minimize the amount of code you need to write even if it makes your code unreadable”
2017-10-24T06:44:26.000142
Cecilia
clojurians
clojure
which actually is part of why `implicit` exists in the language
2017-10-24T06:44:48.000030
Cecilia
clojurians
clojure
but that “writability over readibility” is more of a design choice than a feature of the language
2017-10-24T06:45:03.000078
Cecilia
clojurians
clojure
and still most stuff written in scala takes more code than equivalent clojure :stuck_out_tongue:
2017-10-24T06:45:36.000083
Cecilia
clojurians
clojure
oh, can you migrate to clojure?
2017-10-24T06:46:23.000036
Corazon
clojurians
clojure
company is using clojure, team isn’t
2017-10-24T06:48:09.000292
Cecilia
clojurians
clojure
trying to educate them :slightly_smiling_face:
2017-10-24T06:48:14.000088
Cecilia
clojurians
clojure
so we’ll see
2017-10-24T06:48:16.000369
Cecilia
clojurians
clojure
the absurdity of it is that we are actually using datomic but not clojure…
2017-10-24T06:48:31.000309
Cecilia
clojurians
clojure
odd
2017-10-24T06:49:39.000078
Weston
clojurians
clojure
Heh, we have the opposite opinion in this team
2017-10-24T06:50:15.000327
Mallie
clojurians
clojure
Make it readable, even if it makes it a bit longer
2017-10-24T06:50:23.000011
Mallie
clojurians
clojure
yeah, I agree with that. But Scala peeps do not apparently
2017-10-24T06:50:37.000042
Cecilia
clojurians
clojure
Makes it easier to onboard new team members, and easier to understand and bugfix when you come back to code you've not touched in mnths :wink:
2017-10-24T06:50:48.000215
Mallie
clojurians
clojure
anyone tried kubernetes?
2017-10-24T06:57:04.000261
Corazon
clojurians
clojure
we use it at work
2017-10-24T07:10:16.000291
Cecilia
clojurians
clojure
very expensive?
2017-10-24T07:11:15.000303
Corazon
clojurians
clojure
in what regard?
2017-10-24T07:11:24.000148
Cecilia
clojurians
clojure
lets say i need 100 instances?
2017-10-24T07:11:38.000207
Corazon
clojurians
clojure
kubernetes is opensource, no licensing fees
2017-10-24T07:11:50.000301
Cecilia
clojurians
clojure
so, it’s up to the price of your servers
2017-10-24T07:12:00.000006
Cecilia
clojurians
clojure
So, how many instances can you have on decent server?
2017-10-24T07:12:13.000296
Corazon
clojurians
clojure
there is no clear answer to that since it totally depends on your containers
2017-10-24T07:12:29.000002
Cecilia
clojurians
clojure
create distroless containers which contain just a hello world written in C: then the answer would be “millions” I think
2017-10-24T07:13:03.000273
Cecilia
clojurians
clojure
ah, like alpine
2017-10-24T07:13:16.000016
Corazon
clojurians
clojure
alpine linux
2017-10-24T07:13:20.000229
Corazon
clojurians
clojure
no, distroless
2017-10-24T07:13:22.000087
Cecilia
clojurians
clojure
oh
2017-10-24T07:13:26.000025
Corazon
clojurians
clojure
alpine linux is a distro
2017-10-24T07:13:28.000071
Cecilia
clojurians
clojure
<https://github.com/GoogleCloudPlatform/distroless>
2017-10-24T07:13:38.000102
Cecilia
clojurians
clojure
Very interesting
2017-10-24T07:13:55.000270
Corazon
clojurians
clojure
I think “millions” is a bit over the board, but “thousands” easily
2017-10-24T07:14:57.000425
Cecilia
clojurians
clojure
but create a ubuntu container with weblogic behemoth inside and you can put your server to it’s knees pretty easily with just one container
2017-10-24T07:15:41.000371
Cecilia
clojurians
clojure
I still need to learn kubernetes :slightly_smiling_face:. Have to plan a project where a basic html page can handle 100k concurrent sessions
2017-10-24T07:16:58.000128
Corazon
clojurians
clojure
you do not need kubernetes for that: <http://www.http-kit.org/600k-concurrent-connection-http-kit.html>
2017-10-24T07:17:35.000024
Cecilia
clojurians
clojure
i would not recommend http-kit
2017-10-24T07:17:48.000352
Jena
clojurians
clojure
yeah, well most of the stuff there is about other stuff than http-kit
2017-10-24T07:18:09.000011
Cecilia
clojurians
clojure
I guess you’d suggest aleph instead?
2017-10-24T07:18:38.000248
Cecilia
clojurians
clojure
yes
2017-10-24T07:18:42.000421
Jena
clojurians
clojure
Ok, just concertned about socket limit on servers and bottleneck on databases then
2017-10-24T07:18:45.000237
Corazon
clojurians
clojure
if it’s serving just html page you do not need a database
2017-10-24T07:19:07.000115
Cecilia
clojurians
clojure
of course if you add databases into the mix it gets way more complicated
2017-10-24T07:19:16.000281
Cecilia
clojurians
clojure
then kubernetes isn’t such a bad idea
2017-10-24T07:19:29.000039
Cecilia
clojurians
clojure
Hmm, think they need databases, since it does api calls
2017-10-24T07:19:35.000107
Corazon
clojurians
clojure
ok
2017-10-24T07:19:38.000171
Corazon
clojurians
clojure
ok, so it’s not just a basic html page then :slightly_smiling_face:
2017-10-24T07:19:45.000153
Cecilia
clojurians
clojure
yeah, sorry, got ahead of myself
2017-10-24T07:34:18.000387
Corazon
clojurians
clojure
a side-effect of multi-tasking, hehe
2017-10-24T07:34:57.000002
Corazon
clojurians
clojure
but anyway, Kubernetes is a container orchestration platform like Docker Swarm or Apache Mesos (although that is actually more than just container platform)
2017-10-24T07:36:40.000074
Cecilia
clojurians
clojure
so basically all it costs you is the servers where Kubernetes itself is running
2017-10-24T07:36:59.000093
Cecilia
clojurians
clojure
rest is just your normal containers on top of VMs stuff, it’s just being managed by Kubernetes
2017-10-24T07:37:23.000274
Cecilia
clojurians
clojure
I have yet another interop question, I'm pretty sure that the method `.addExtensions` exists for my imported `org.openqa.selenium.chrome.ChromeOptions` class. ``` (user/all-methods (new ChromeOptions)) (.addArguments .addEncodedExtensions .addExtensions .amendHashCode .asMap .getExperimentalOption .lambda$asMap$0 .setBinary .setExperimentalOption .setHeadless .setPageLoadStrategy .setUnhandledPromptBehaviour .toCapabilities) ``` but when useing it, I get a strange error ``` (doto (new ChromeOptions) (.addExtensions (java.io.File. "chrome/my-extension.xpi"))) ;; =&gt; CompilerException java.lang.IllegalArgumentException: No matching method found: addExtensions for class org.openqa.selenium.chrome.ChromeOptions ``` <https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html>
2017-10-24T07:37:45.000267
Lily
clojurians
clojure
what feature are you using that makes aws lambda / google compute functions inadequate ?
2017-10-24T07:37:46.000423
Berry
clojurians
clojure
<@Berry> asking me?
2017-10-24T07:38:42.000236
Cecilia
clojurians
clojure
<@Cecilia>: yes, I'm recently moved from EC2 + Elastic Bean Stalk to AWS Lambda + CloudFront + API Gateway + DynamoDb ... and am loving serverless.
2017-10-24T07:39:36.000158
Berry
clojurians
clojure
well, we are talking about a huge microservice ecosystem here, hundreds of engineering teams
2017-10-24T07:40:00.000278
Cecilia