Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 02 23:58
    @SethTisue banned @fakubishes:nerdsin.space
  • Dec 15 2021 05:01
    som-snytt commented #12516
  • Dec 15 2021 04:38
    SethTisue edited #1312
  • Dec 15 2021 04:38
    SethTisue opened #2273
  • Dec 15 2021 04:31
    jackkoenig opened #12516
  • Dec 15 2021 04:29
    SethTisue edited #1312
  • Dec 15 2021 04:28
    SethTisue edited #1312
  • Dec 15 2021 04:27
    SethTisue labeled #9831
  • Dec 15 2021 04:27
    scala-jenkins milestoned #9831
  • Dec 15 2021 04:27
    SethTisue labeled #9831
  • Dec 15 2021 04:27
    SethTisue opened #9831
  • Dec 15 2021 03:35
    som-snytt commented #11339
  • Dec 15 2021 03:27
    som-snytt labeled #12494
  • Dec 15 2021 03:07
    SethTisue edited #1312
  • Dec 15 2021 03:07
    SethTisue edited #1312
  • Dec 15 2021 03:05
    SethTisue edited #1312
  • Dec 15 2021 03:05
    SethTisue edited #1312
  • Dec 15 2021 03:05
    SethTisue edited #1312
  • Dec 15 2021 02:58
    SethTisue edited #1312
  • Dec 15 2021 02:58
    SethTisue synchronize #1312
Jose C
@jmcardon
like building a mud hut where you find some structural weakness somewhere and you patch it by slapping more mud into it.
trepidacious
@trepidacious
@SystemFw I disagree on OO meaning nothing, I think there is one useful syntactic thing that always seems to go with objects - being able to associate a function f with a type, and call f a b as a.f b
Rich
@Rich2
Is there even a single major game that's been written without mutation?
Jose C
@jmcardon
I Don't think so. FP isn't prevalent in game programming
trepidacious
@trepidacious
@SystemFw I'm probably wrong because I know so little about Haskell, but it seems for example like having a top-level function for accessing fields of a record type is really really annoying. Purescript seems to have decided to just have the dot notation for fields thing anyway.
Jose C
@jmcardon
there's also the duality that all the thunking in FP makes it hard to reason about performance
which is in particular why performance critical applications aren't written in haskell most of the time
haskell can be quite performant
but reasoning about it can definitely be difficult
@Richtype that said, games are terrible examples of this. Most game code is so bug-filled it's unreal
trepidacious
@trepidacious
Unreal is probably quite bug-free after all these years :)
Fabio Labella
@SystemFw
@trepidacious you are talking about records and namespacing. I don't think having those makes your language OO, I wouldn't call SML OO, for example
Jose C
@jmcardon
only took them 19 years
Fabio Labella
@SystemFw
btw, you can do a `f` b in Haskell
trepidacious
@trepidacious
@SystemFw For me though that's the useful bit of the grab bag of stuff that makes OO
Fabio Labella
@SystemFw
right, sure
trepidacious
@trepidacious
@SystemFw Yes but your "f" needs to be called something like noNotThatRecordWithANameThisOneName
Fabio Labella
@SystemFw
that's a specific wart of Haskell's record system
Rich
@Rich2
Show me the Functional equivalents of Civilisation, Rome Total War, Europa Universalis?
Fabio Labella
@SystemFw
it's not true in SML, purescript, or Frege, to name the firsts that spring to mind
trepidacious
@trepidacious
@SystemFw How do they handle it?
Jose C
@jmcardon
@Richtype games are not made in FP languages
or at least not many
Fabio Labella
@SystemFw
@trepidacious Purescript has first class records with . syntax. SML has records and modules. Frege looks like haskell but the data constructors are scoped
Rich
@Rich2
No but as there oodles of money to be made in games and fp makes things so easy why not?
Fabio Labella
@SystemFw
Garbage collection, for once
same reason why not a lot of games are written in Java either
(plus other reasons, but this one is a big one)
trepidacious
@trepidacious
@SystemFw There's minecraft
Martijn Hoekstra
@martijnhoekstra
many games also do horrible unspeakable things intertwining game logic with display and network stuff, due to the real time requirements. If you accept doing that, you lose most (all?) advantages of FP anyway.
Fabio Labella
@SystemFw
yeah, not a lotnone
trepidacious
@trepidacious
Maybe it will be like GC - as compiler/vm support gets better the performance will be acceptable, then about 10 years later people will start admitting that fact and using FP for games :)
Rich
@Rich2
Well my request would be until such time as FPers start delivering a full range of games could they stop trying to abolish imperative programming.
trepidacious
@trepidacious
You just need to wait for enough people with a misconception to retire or get promoted :)
Martijn Hoekstra
@martijnhoekstra
I'm not sure anyone is trying to abolish imperative programming in computer games
I think nobody is
Fabio Labella
@SystemFw
@Richtype would you say the same of Java-ists trying to abolish manual memory management?
Jose C
@jmcardon
My request would be until people writing garbage collected languages can deliver real time operating systems, they could stop trying to abolish manual memory management
Rich
@Rich2
I'm no fan of Java and I think Scala Native has the long term potential to replace C++. I like the imperative / functional choice in Scala.
Jose C
@jmcardon
My request would be until people writing high level languages can write an efficient XSalsa20 implementation, they could stop trying to abolish inline assembly
(repeat ad infinitum)
Fabio Labella
@SystemFw
Scala Native is still garbage collected
trepidacious
@trepidacious
@jmcardon Good real-time operating systems are a very specialised area, I mean I love GC, Scala, I would dearly love to write everything in them, but you more or less have to use C or something based on the same kind of model to get down to us-scale latency
Jose C
@jmcardon
so are games
games are a very specialized area as well
Eric K Richardson
@ekrich
@jmcardon I think that is true. Realtime Java had the ability to manage memory and of course Scala Native does.
Fabio Labella
@SystemFw
games are soft-realtime systems
Rich
@Rich2
@jmcardon No problem with that.
trepidacious
@trepidacious
@jmcardon Good enough latency for games is in ms, it's say 2-3 orders of magnitude less stringent
Stefan Zeiger
@szeiger
There's always Rust for the cases where you can't afford a gc