This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-04
Channels
- # aleph (24)
- # beginners (60)
- # cider (20)
- # clara (4)
- # cljs-dev (13)
- # cljsrn (4)
- # clojure (66)
- # clojure-italy (32)
- # clojure-nl (4)
- # clojure-serbia (1)
- # clojure-uk (207)
- # clojurescript (115)
- # cursive (3)
- # datomic (36)
- # defnpodcast (1)
- # duct (15)
- # fulcro (14)
- # graphql (8)
- # lein-figwheel (1)
- # leiningen (4)
- # off-topic (140)
- # pedestal (40)
- # portkey (3)
- # reagent (40)
- # remote-jobs (1)
- # ring (11)
- # shadow-cljs (31)
- # spacemacs (6)
- # sql (65)
- # tools-deps (67)
- # yada (1)
@borkdude it's a ton of fun
@pesterhazy how are you using it?
there's four ways you can use it - nixos on a laptop - nixos on a server - using nix on Ubuntu/Fedora/MacOS as an overlay to install some tools - using nix to build a dev env
surprisingly to me the most useful option is to install it a a Linux distro on a laptop, the declarative configuration style is super useful
personally for Clojure/Java nix is really not as significant, given that Maven repos work well
the downside of NixOS is that you need to adapt every program to make it work (even if the adaption is often a simple patch)
it's a bit exhausting
right, but even then you need a nix expression to get it to run
well, that can be the same one for every program, you just add dependencies, as you would with any other PM
don't get me wrong, the project is super impressive
@pesterhazy do you mean install NixOS on a laptop?
we organized the first nixos conference here in Berlin a few years back
I remember reading the Nix paper and being blown away by it
@borkdude yeah as the main distro
on the server it depends on what you need, but Debian has a lot more resources out there
yep, I definitely want to make it to next nix conf. I've been using it exclusively for 3 years now, after I didn't get what I wanted from Gentoo or Arch and I'm happy now
or maybe Ubuntu since this server doesn’t have to be very stable, it’s for personal use
to me it's not worth it, in this day and age of containers
I'm also helping maintain NixOS, so if anybody wants to do stuff with Nix and Clojure, I'd like to be involved ..
@borkdude if you want to learn the ins and outs of Unix, bash scripting and build systems, I recommend nix
if that's not something you're interested in, Ubuntu + Docker is probably easier
@pesterhazy three options: 1) NixOS, 2) Ubuntu + nix, 3) Ubuntu + Docker. Right now I’m thinking of 2, since there’s only one thing to learn and I’m not restricted by NixOS (I’m not yet sure what it involves, need to study it more).
I already use Docker, but I like the idea of nix after playing around with it this morning
conceptually nix is superior to docker but unfortunately it doesn't have the hype factor
it's been around since 2007 and it's been super stable for me, where as with docker, I've run into weird networking bugs ...
Nix also has containers built in, but it's not based on docker, but systemd-container. see nixos-container
you can also build docker containers based on nix
I agree that nix is pretty stable (and nixos is surprisingly complete)
if you want to do a nix-shell foo.nix
with a shell hook, but you want it to execute just one thing, just add exit
to the hook?
@borkdude maybe nix-shell shebangs are right for that use case? http://iam.travishartwell.net/2015/06/17/nix-shell-shebang/
@borkdude otherwise, that's what the --run
and --command
flags on nix-shell
are for ..
there is also a property, to specify the command right in the shell.nix
expression (replacing bash
), but I don't know it from the top of my head ...
I need to do e.g. this:
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p nodejs-9_x yarn
yarn install
How do I tell nix-shell
to use this package? https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/tools/yarn
I’m looking at this: https://stackoverflow.com/questions/40532798/loading-dependencies-from-nixpkgs-unstable-with-nix-shell
let
unstable = import <nixos-unstable> {};
....
environment.systemPackages with pkgs; [ unstable.yarn ...
Microsoft is buying GitHub. 🙀 I really hope the talks that M$ has changed are true and they don’t destroy it.
If it was still under Balmer I would understand the sentiment. I believe it’s more prudent to adopt a wait and see stance in this case
@hlolli I probably need to spend more time how to configure these packages, I only did a short tutorial this morning, but was already impressed 🙂
I'm very much a newb in alternatives to github, sourceforge was dying as I started to program. I know mecurial tough. But I'm confused that the link says gitea but you say gitlab, is it the same thing? @victor.cleja
and they have a simple “import from github” functionality, which is under heavy use right now
Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.
this isn't gitlab tough ? @tatut
@hlolli as I understand it, basically you have git, and then you have various hosting providers who host your “master” repos + add extra sugar around that (like profiles, stats, access restrictions, ticketing systems and whatnot)
exacly, and I think many free software hackers will want to ditch the provider "GitHub Inc." today 😛 or anyone who doesn't like microsoft.
we’ll see. it provides the value of a social network, so there will need to be a critical mass of people migrating away.
even if im not exactly against Microsoft, I am against a FAANG* having access to code repos
(obviously public repos are a different story, but i use the private repos on github extensively)
I've hated MS for years, but that mostly stopped when they got their latest CEO. The MS of today is way different from the way it was 15 years ago
Gitlab, Bitbucket, etc are still great, but I doubt people will switch enmass yet.
sure but random startup has a lot less power to do something abusive with those code repos
We’ll see 🙂 too early to tell, not worth panicking. But I will take a look at gitlab because why not?
Except when a small company gets sued it just dies and some VCs move on. With MS the stock falls and then a lot of people get really mad
accusing microsoft of stealing hosted code would open a flood gate of lawsuits and end microsoft as well. there are 58 million repos on github
Yeah, and let's remember who MS is in this situation. They OSSed a lot of .NET under a very permissive license.
And they recently worked with Github to get the point where it can handle the entire Windows codebase
https://blogs.msdn.microsoft.com/bharry/2017/05/24/the-largest-git-repo-on-the-planet/
again it's not so much about MS as it is any of the giant tech conglomerates. I guess MS is actually one of the better options out of the lot. At least it isn't Facebook.
I know people who've used Bitbucket, Beanstalk, Gitlab, etc for years.
I guess I don't see that much has changed.
bitbucket is ok, ill probably give gitlab a go. Still looking for the import tool though.
I've liked Bitbucket in the past because they have free private OSS repos
BitBucket is nice for private repos but if you have a VPS running somewhere it’s not that hard to setup something and you can already push code using ssh when git is installed. It’s the social aspect of Github that is important for OSS, and alternatives should have something comparable in that area
Monopolies always stifle innovation and carry the risk of sudden change if the owning company changes. I just find it funny that no one cared until the past few days.
Well, if things go south and peeps move away from github, I will still miss the time, when just searching for github repo ment finding the source code, distopian future, searching many source control sites. But if we don't want to suffer a bit for freedom, we don't deserve it, like someone wise said.
I take issue with "dystopian future". We're in the dystopian present, thank you very much.
true 😄, the conveinence of monopoly. You can see conveinence living North-Korea, the government take care of everything for you. totally not justifyable or worth the conveinence.
I feel a new startup coming… something that can index a plethora of public git repos and provides great search on top of it and adds more social features like Trello, Slack-ish chat, etc.
https://bithublab.org/ only search but no social features 🙈
what does it matter, facebook knows what we will think and what ideas we will have anyway
I seem to recall there was something a while back about how bing was the best search engine for porn, for some reason. Had a lot more specifically explicit images indexed and tagged than anyone else or something
https://threadreaderapp.com/thread/1002696910266773505.html bit easier to read 🙂
Later on the OP admits that things have changed in the code and the case is a lot harder to prove.
and as someone else pointed out a DCMA notice would probably get the attention of MS.
I mean sure MS has lawyers, but large corporations (including MS when I worked there) are pretty wary of violating OSS licenses, the last thing they want was someone being able to claim ownership of some product. IDK, seems like something that could be cleared up by a few phone class and a PR saying "please mention my name under prior work"
But hey, this stuff happens all the time in OSS. How many projects technically rip-off Clojure's data structures and fail to copy in bits of the EPL attributing the code to Rich?
well if they just copy the way the functionality of the data structures i doubt copyright would cover that as a derivative work
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentHashMap.java
@lee.justin.m That's pretty much the problem of the twitter example. "There were similarities in algorithms and function names"
obviously copyright isn’t everything. rich wasn’t required to mention bagwell, but he did and that’s the Right Thing To Do.
remixing in and of itself isn't a bad thing (quite the opposite; everything is a remix), it's when it becomes plagiarism through lack of attribution that it becomes a dick move (and sometimes illegal)
with-redefs
?