leanpub, to rust
@leanpub@mastodon.social avatar

Rust In Practice, Second Edition: A Programmers Guide to Build Rust Programs, Test Applications and Create Cargo Packages https://leanpub.com/rustinpractice2 is the featured book on the Leanpub homepage! https://leanpub.com

leanpub, to ArtificialIntelligence
@leanpub@mastodon.social avatar

C++ Programming Cookbook: Proven solutions using C++ 20... https://leanpub.com/cprogrammingcookbook is the featured book on the Leanpub homepage! https://leanpub.com

weilawei, to cpp
@weilawei@mastodon.online avatar

Most of common functions from C++17 std::unordered_map have been implemented as a wrapper around Userspace RCU. Getting there, one bit at a time.

A screenshot of the API documentation for urcucpp's lf::map class template. Most of the common parts of the C++17 std::unordered_map API are implemented.

okennedy, to datascience
@okennedy@social.sdf.org avatar

New server, who dis.

Hi, I'm a CS prof, focusing on #Databases, #DataStructures, #Compilers (https://git.odin.cse.buffalo.edu/Astral), and #Reproducibility in #DataScience (#Mimir : https://mimirdb.info and #Vizier : https://vizierdb.info). I occasionally find time to dabble in wildlife and landscape #photography and #homeautomation. One of these days, I'll get back to doing #HEMA or #Fencing. I also #Pun frequently.

#introduction

Moosader, to ComputerScience
@Moosader@mastodon.gamedev.place avatar

Wrote some text for a reading assignment in class to introduce thinking about data to my students.

(You can read it here if you really want:
https://moosadee.gitlab.io/courses/202401_Spring/book_datastructurescpp.html#orga3aa344
📖️ Unit 01 Reading - Exploring data (U01.READ.202401CS250))

#ComputerScience #Education #DataStructures

editor, to php

🚀 Dive into the world of data structures with our latest video, 'Stacks With SplStack.' Perfect for PHP devs looking to up their game! Watch now: https://www.phparch.com/p/2024/01/stacks-with-splstack/ #PHP #DataStructures @scottkeckwarren

synlogic, to programming
@synlogic@toot.io avatar

I'm writing a new big book on software performance and scalability

If you'd like to see early chapter drafts from it, and potentially give me a little feedback (or answer a few simple questions I ask of you, about your impressions), in private? please let me know

I would give you a free copy of final ebook

#programming
#software
#performance
#scale
#scalability
#latency
#throughput
#optimization
#algorithms
#datastructures
#hardware
#compute
#efficiency
#speed
#rates
#load
#cpu
#resourceusage

GregMorenz, to random
@GregMorenz@hachyderm.io avatar

#datastructures question about B+ Tree deletion.

All the documentation I see says on underflow to first check if I can redistribute from both siblings before merging nodes. Why?

It seems like if I can't redistribute with the first sibling I check, I might as well merge immediately.

Is there some pathological example where merging too frequently leads to terrible performance?

Google isn't turning up any justifications.

jared, to random
@jared@mathstodon.xyz avatar

For all the students out there: I used #trigonometry and queue #DataStructures to solve two different real world problems at work today. Don’t forget the basics!

sidereal, to python
@sidereal@kolektiva.social avatar

deleted_by_author

  • Loading...
  • Stark9837,
    @Stark9837@techhub.social avatar

    @sidereal

    I used it when I was busy with my course. All of the software has advanced debugging tools.

    So I used for , for C++ and for . It allowed me to debug connections and relationships in data structures.

    Today, I wouldn't personally use it because I know those stuff now, and I have my own workflow now. I never step through code anymore, I don't even use the debugging in anymore.

    When required, I am a degenerate "console.log" debugger.

    @Python

    joshuagrochow, to ArtificialIntelligence
    @joshuagrochow@mathstodon.xyz avatar

    4-min interview w/ Tarjan on his inverse-Ackermann upper bound for the union-find data structure . Turns out he got a matching lower bound on that algorithm first - I didn't know about the lower bound before! Interesting story behind the path of research.

    https://www.youtube.com/watch?v=Hhk8ANKWGJA

    #DataStructures #Algorithms #Complexity

    lsmith, to python
    @lsmith@mastodon.green avatar

    any #python reading recommendations to optimize memory use of a dict containing lists which in turn contain lots of small dicts? once build up they can be read-only.

    Stark9837,
    @Stark9837@techhub.social avatar

    (1/8) #Optimizing nested #datastructures in #Python:

    Reduce nesting: Avoid unnecessary layers of nesting. Flatten the structure or use simpler data types like tuples when inner dictionaries have few keys.
    Example: Instead of List[Dict[Any, List[Dict[Any, Any]]]], consider List[Tuple[Key, Value]].

    Stark9837,
    @Stark9837@techhub.social avatar

    (2/8) #Optimizing nested #datastructures in #Python:

    Custom classes: Create specific classes for inner dictionaries with fixed keys to improve efficiency, readability, and maintainability.
    Example: Instead of {'name': 'John', 'age': 30}, use a Person class with attributes name and age.

    Stark9837,
    @Stark9837@techhub.social avatar

    (3/8) #Optimizing nested #datastructures in #Python:

    Use NumPy or Pandas: For numerical computations or tabular data, utilize NumPy arrays or Pandas DataFrames for faster operations.
    Example: Convert a nested list into a NumPy array for mathematical operations.

    Stark9837,
    @Stark9837@techhub.social avatar

    (4/8) #Optimizing nested #datastructures in #Python:

    Dictionaries with fixed keys: If inner dictionaries have constant keys, consider using named tuples or custom classes for better performance.
    Example: Replace {'x': 1, 'y': 2} with a named tuple or class Point(x=1, y=2).

    Stark9837,
    @Stark9837@techhub.social avatar

    (5/8) #Optimizing nested #datastructures in #Python:

    Appropriate data structures: Choose data structures based on access patterns. Use dictionaries when accessing elements by specific keys.
    Example: Use a dictionary to store items with unique identifiers.

    Stark9837,
    @Stark9837@techhub.social avatar

    (6/8) #Optimizing nested #datastructures in #Python:

    Data compression: Reduce memory usage by compressing data with repetitive patterns using gzip or zlib.
    Example: Compress large text data with gzip.

    Stark9837,
    @Stark9837@techhub.social avatar

    (7/8) #Optimizing nested #datastructures in #Python:

    Generators or lazy evaluation: Use generators or lazy evaluation techniques to process data incrementally, saving memory and improving performance.
    Example: Use a generator to read large files line-by-line.

    Stark9837,
    @Stark9837@techhub.social avatar

    (8/8) #Optimizing nested #datastructures in #Python:

    Profiling: Before optimizing, profile your code to identify resource-intensive areas and focus on the most impactful improvements.
    Example: Use Python's cProfile module to analyze code performance.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • magazineikmin
  • ethstaker
  • ngwrru68w68
  • slotface
  • khanakhh
  • osvaldo12
  • Youngstown
  • kavyap
  • thenastyranch
  • DreamBathrooms
  • tacticalgear
  • mdbf
  • rosin
  • provamag3
  • everett
  • modclub
  • cisconetworking
  • normalnudes
  • Durango
  • GTA5RPClips
  • cubers
  • InstantRegret
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines