Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 20 21:27
    straight-shoota synchronize #11758
  • Jan 20 21:22
    straight-shoota labeled #11758
  • Jan 20 21:22
    straight-shoota opened #11758
  • Jan 20 21:22
    straight-shoota labeled #11758
  • Jan 20 20:32
    Blacksmoke16 labeled #11757
  • Jan 20 20:32
    Blacksmoke16 labeled #11757
  • Jan 20 20:28
    mohd-akram labeled #11757
  • Jan 20 20:28
    mohd-akram opened #11757
  • Jan 20 19:26
    straight-shoota labeled #11670
  • Jan 20 19:26
    straight-shoota unlabeled #11670
  • Jan 20 19:20
    straight-shoota synchronize #11714
  • Jan 20 19:17
    straight-shoota closed #11716
  • Jan 20 19:15
    straight-shoota synchronize #11741
  • Jan 20 19:15
    straight-shoota edited #11741
  • Jan 20 19:15
    straight-shoota synchronize #11579
  • Jan 20 19:15
    straight-shoota synchronize #11707
  • Jan 20 19:14
    straight-shoota synchronize #11343
  • Jan 20 19:08
    straight-shoota closed #11617
  • Jan 20 19:07
    straight-shoota closed #11675
  • Jan 20 19:07
    straight-shoota edited #11675
oprypin
@oprypin:matrix.org
[m]
Matthew Berry: that makefile contains support for MinGW-GCC
Crystal works only with cl.exe, doesnt work with MinGW-GCC
but they do also have support for cl.exe
Matthew Berry
@mattrb:matrix.org
[m]
Ah now we’re getting even further into the realm that I know absolutely nothing about :/ Are those just two different c++ compilers for windows? I’ll be able to grab my laptop in a couple hours to look a little deeper too, although I don’t have windows there either :/
oprypin
@oprypin:matrix.org
[m]
Matthew Berry: yeah they are. cl.exe is by Microsoft, where as MinGW is a collection of ports of POSIX tools to Windows; they end up being partly in an emulated environment or something weird
so yeah this is quite ugly and way harder than i made it seem
Matthew Berry
@mattrb:matrix.org
[m]
Ah, well again thank you tons for taking a look!! Maybe someday it’ll be easier to port :) Appreciate you trying :)
didactic-drunk
@didactic-drunk
@oprypin:matrix.org Attempting to improve UX (developer experience DX, is that thing?). There are 3 unix use cases. 1) Building a rpm/deb package (or personal executable) that relies on the distribution packaged libraries. 2) Building a run on any distro binary that can't rely on a system installed libsodium. 3) Same as 1 but the system libsodium is ancient and can't be used (This is very common). The build scripts check the system version (but allow overrides) and them by default if new enough otherwise download and build the version tested with sodium.cr. None of this is a concern for windows which never has a packaged libsodium
@oprypin:matrix.org shards install takes care of everything unless you want to override a value provides the best DX even if the build script is more complex. I doubt I'd have half as many users if it required: manually check your distro version. If it's >= x install else download and build it yourself.
oprypin
@oprypin:matrix.org
[m]
i see. well, maybe my main dissatisfaction comes from how rigid postinstall is. any tiniest problem and everything just bails out
and you're basically taking on a task of maintaining a fully universal build of a lib.
didactic-drunk
@didactic-drunk

Yes. If only postinstall allowed

postinstall:
  linux-musl: ./build/linux-musl.sh # needs variant for some reason
  linux: ./build/linux.sh
  windows-msvc: ./build/windows-mingw.cmd
  windows-mingw: ./build/windows-mingw.cmd
  posix-default: cd build/posix && make
  windows-default: cd build/windows && make

And tried keys in order of most specific to less specific arch trying posix-default or windows-default 2nd to last before default.

oprypin
@oprypin:matrix.org
[m]
@didactic-drunk: well it looks like you're already miles ahead of the rest in terms of thinking this through. I'd support this
From IRC (bridge bot)
@FromIRC
<yxhuvud> i could see platform dependent dependencies too.
Giorgi Kavrelishvili
@grkek
I am a bit inactive here sorry guys
How have you all been?
Kaia Leahy
@tenebrousedge
this "life" thing is pretty weird, imo
Giorgi Kavrelishvili
@grkek
What life thing?
Kaia Leahy
@tenebrousedge
all of it, but particularly the bits that concern me
so if I fail to get a dev role, but the CEO wants me to interview for a data engineer role because they "think I can pick it up quickly", how should I prepare for an interview for that?
j8r
@jrei:matrix.org
[m]
for a internal promotion? Or CEO suppose you'll interview someone for free?
Kaia Leahy
@tenebrousedge
neither? I think you misread
From IRC (bridge bot)
@FromIRC
<yxhuvud> i have never in my life prepared for an interview except for a quick browse of the company web pages. shrug
j8r
@jrei:matrix.org
[m]
I didn't understood then
Giorgi Kavrelishvili
@grkek
Life doesn't really matter, be good to everyone and do what you like to do and just pass away in peace
Thats all of it
Other things are useless distractions which were forced upon you for torture
@yxhuvud Same!
j8r
@jrei:matrix.org
[m]
by preparing, you also mean some exercises they want you to do before the interview?
Giorgi Kavrelishvili
@grkek
Nah, just an interview
If they plan on doing some exercises I just say
Kaia Leahy
@tenebrousedge
I mean I have only a loose idea of what a "data engineer" does, and don't know what I'm going to be expected to know
Giorgi Kavrelishvili
@grkek
Send it over the E-Mail and Ill send it over to you once done
j8r
@jrei:matrix.org
[m]
Pretty sure they have an even looser idea of why they want a "data engineer"
the solution can just be to have a precise job sheet
From IRC (bridge bot)
@FromIRC
<yxhuvud> jrei: no, if they want me to solve a reasonably sized problem that is fine. that is different
didactic-drunk
@didactic-drunk

@oprypin:matrix.org I have a few shards (example) that run on limited platforms. Some are POSIX only. One is OpenBSD only. Future ones may be window only. What say you of 2 additional options for shard.yaml?

A platform flag. If it matches the shard is included. If not the shard is automatically pruned.

# For mmap
  platforms: 
  - !windows
  - posix (or)

# For mostly posix shards
  platforms: 
  - !macos
  - posix

A 2nd platform flag with identical semantics should be available for dependencies

  dependencies:
    generic-file-polling.cr:
      platforms:
      - !linux
    inotify.cr:
      platforms:
      - linux

Why both? These options aren't mutually exclusive.

Sometimes the shard author knows it won't work on specific platforms and they can specify them.

Other times the author may choose a more specific solution and wish to exclude a generic shard (see inotify example above). Or they could be working on an newer/older system where a shard specified dependency doesn't work in their particular situation.

oprypin
@oprypin:matrix.org
[m]
@didactic-drunk: it's funny that you're against specifying crystal <2.0 but for specifying unsupported platforms. i guess the difference is that in most cases the author does actually know it won't work on those platforms. however, consider a large number of shards that exist now, -- how often would people be tempted to specify "nope doesnt work on Windows" and then eventually that specification will be the only actual reason why it doesn't work on Windows
didactic-drunk
@didactic-drunk
@oprypin:matrix.org I'd be against specifying !any_platform_unless_the_api_is_broken_or_doesn't_exist
oprypin
@oprypin:matrix.org
[m]
uh sorry I didn't understand that. there are like 4 negations there
didactic-drunk
@didactic-drunk
@oprypin:matrix.org Here's what I have planned (yes a real example). 1) Create mmap (done) which can be used for anonymous memory or mapping a file or a few other uses with platform: posix. Create a windows anonymous memory shard (No mmap equivalent that handles all functions) with platform: windows. Create a generic anon memory wrapper shard that includes both. Create a guard page key holding shard similar to sodium_malloc using the anon memory shard.
oprypin
@oprypin:matrix.org
[m]
well the first three could be just one shard. but that's only for your particular example
there are very many missing features but it seems that for most of the parts of the specification you can't just go adding features onto the existing spec, perhaps a greater overall look at the design would be better
didactic-drunk
@didactic-drunk
I'm against < crystal 2 because it's a guess, probably false and breaks applications for no apparent reason when 2.0.0 is released or forces them to upgrade which may involve API changes or other unpleasantries
oprypin
@oprypin:matrix.org
[m]
I am not convinced of any particular approach at the moment and sorry I won't dive into that topic
I just felt that the postinstall thing in particular would be not controversial
didactic-drunk
@didactic-drunk
The platform flag would be limited use. See the inotify example. Btw this is also based on a real example from ruby gems.
didactic-drunk
@didactic-drunk
While I could make one shard I'd prefer not to. I don't want to maintain the windows version. I may make a windows version if no one else does. Also, platform specific features are sometimes needed (mmap in particular). The anon memory wrapper and guard pages need simple functionality that both platforms support. If I were doing something else with mmap like mapping a file, I can't do that on windows as it uses a completely different API