Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Henry Story
@bblfish
I am now about to write my 2nd year report, have to move house, and go to the UK this month to see my supervisor, so it's busy. But after that it will be good to start a rewrite using Akka-Http (which is really cool library). (Unless you have know something better).
The sad thing is that Akka does not have support for HTTP tls renegotiation.
(I think - they may have added it. There was a patch a year or so ago on that)
But one can do a WebID over JS login to replace the TLS. I think they HTTP teams are working on better integrating TLS into HTTP, so that is the thing to look out for.
Here's what I am doing at the moment https://twitter.com/bblfish/status/1036869187061338114
Tim McIver
@tmciver
Awesome. I'll read that over.
So, should Play20 be a git submodule? I'm a bit confused by this.
Henry Story
@bblfish
Actually I am not sure. It probably should. I am not sure why that does not work, or if I thought it was a bit heavy to add there.
That is why I put the compiled version online on my server
and that is probably what is being called when you try to run.
Tim McIver
@tmciver
OK. So it seems that build should be called at some point then?
Henry Story
@bblfish
if I remember correctly $ sbt
then compile
or build
then run
Tim McIver
@tmciver
I'm no Scala/SBT expert and so it's not clear to me how that ends up as a dependency in the correct place.
Henry Story
@bblfish
how what end up as a dep...?
Tim McIver
@tmciver
Play20. My understanding is that deps end up in .ivy2 directory and so SBT expects them to be there. I may be wrong . . .
I can just try it out. I guess I have to start by building it. As I said above, the one on your server seems to be corrupt . . .
Henry Story
@bblfish
that download Play
actually it looks like they are still there https://bblfish.net/work/repo/builds/Play2/
Tim McIver
@tmciver
Oh, it's not corrupt. I see now that what gets downloaded is the html file from a 301 redirect. d'Oh!
Henry Story
@bblfish
ah
Tim McIver
@tmciver
OK, I'll try to get this going and report back. :)
Henry Story
@bblfish
I moved to debian and so got a new Apache server. Perhaps some of the config has changed on my end...
Tim McIver
@tmciver
Concerning http libraries: I have a little experience with akka-http but I've heard that http4s (https://http4s.org/) is more functional than akka-http so I'd be inclined to go with that on my own projects just for that reason. It is put out by Typelevel, so I suppose the claim is probably true. :)
Henry Story
@bblfish
I don't know how it has evolved http4s. I looked at it. Akka has backpressure support and lots of very useful things. I'd like to essentially make the new server so good that I can run my web server on it.
and have it stream video and deal with huge loads (not just mine, but even for large companies)
so that would need to be looked at
Tim McIver
@tmciver
:thumbsup:
Tim McIver
@tmciver
@bblfish I submitted a PR for rww-play: read-write-web/rww-play#173. I've gone down a bit of a rabbit hole. I'm currently having problems resolving dependencies and I'm a bit lost. I think I may have gotten it to resolve the Play20 dependency but then it started trying to resolve a dependency on sbt-run-support_2.10;2.3.11-TLS which it cannot find and I'm at a loss as to where this is coming from. Is this something familiar to you?
Anton Kulaga
@antonkulaga
guys, are you still at antient 2.10?
Henry Story
@bblfish
Have not updated the server
Henry Story
@bblfish
@tmciver you may want to try Scala 2.11 or even 2.12... It looks to me like all the banana libs are on those. Perhaps that will help
the later the better.
Tim McIver
@tmciver

@bblfish Have you seen my comment here https://github.com/read-write-web/rww-play/pull/173#issuecomment-420419588 concerning TLS dependencies like routes-compiler with a version of 2.3.11-TLS? This seems to be required as I'm currently seeing a compile error in conf/routes:

Compilation error[HTTP Verb (GET, POST, ...), include (->) or comment (#) expected]

on the line that starts with SEARCH here: https://github.com/read-write-web/rww-play/blob/dev/conf/routes#L36.

Henry Story
@bblfish
I am sorry this is so much work. It used to be quite straightforward...
Have you made sure you downloaded the Play tgz version and are have that set up as your default Play ?
The library I am using should just work with that, and I am surprised that all the dependencies are not in there already.
What we have written is a play app, that turns it into an LDP server. IT's really a bit heavy handed, as play is already a web server in a way, but it was interesting at the time for people who may have wanted to use play to run normal apps.
Tim McIver
@tmciver
NP. It's more due to my lack of understanding of Play and the way SBT handles dependencies. I asked some questions in the Play gitter channel but did not receive an answer. I'll next try in the Scala channel.
Henry Story
@bblfish
ah. yes, it is worth learning SBT (unless something is replacing it right now)
A year ago I heard someone influencial start working on a replacement, but I don't know how much success that has had.
Sorry for the state of the docs there...
see if you can get Play-TLS as downloaded to work with a basic demo app to start with
Nick Bell
@newmedicine
.
Anton Kulaga
@antonkulaga
@bblfish regarding sbt, mill is better in terms of usability, the problem is that it is a bit buggy
Henry Story
@bblfish
thanks. Will look at it https://github.com/lihaoyi/mill
Shoaib Sarfraz
@ssho_gitlab
Any react-native developer here?
Henry Story
@bblfish
I have used scala-js-react in the 3-4 years ago (and will likely use it again). The library developer may have added support for react-native in the mean time.